microsoft/semantic-kernel · error · NotSupportedException

Vector Store type '{config.Rag.VectorStoreType}' is not supp

Error message

Vector Store type '{config.Rag.VectorStoreType}' is not supported.

What it means

Error "Vector Store type '{config.Rag.VectorStoreType}' is not supported." thrown in microsoft/semantic-kernel.

Source

Thrown at dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.AppHost/Program.cs:125

        throw new NotSupportedException($"AI Embedding service '{config.Rag.AIEmbeddingService}' is not supported.");
    }

    return [chatResource, embeddingsResource];
}

static IResourceBuilder<IResourceWithConnectionString> AddVectorStore(IDistributedApplicationBuilder builder, HostConfig config)
{
    switch (config.Rag.VectorStoreType)
    {
        case AzureAISearchConfig.ConfigSectionName:
        {
            return builder.ExecutionContext.IsPublishMode ?
                builder.AddAzureSearch(AzureAISearchConfig.ConnectionStringName) :
                builder.AddConnectionString(AzureAISearchConfig.ConnectionStringName);
        }
        default:
        {
            throw new NotSupportedException($"Vector Store type '{config.Rag.VectorStoreType}' is not supported.");
        }
    }
}

View on GitHub (pinned to c028a0c7dc)

Solutions

  1. Set Rag:VectorStoreType to a supported vector store value in the AppHost appsettings.
  2. Consult Program.cs in the AppHost project for the supported vector store types and correct the setting.

When it happens

Trigger: Thrown at dotnet/samples/Demos/AgentFrameworkWithAspire/ChatWithAgent.AppHost/Program.cs:125 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of microsoft/semantic-kernel@c028a0c7dc (2026-08-13). Data as JSON: /api/errors/fc4358168b148420. Report an issue: GitHub.