-
I'm going through the VectorStoreRAG demo, and using Azure AI Search for the vector store and Azure OpenAI for the chat and embeddings. I cannot successfully search, though. When I attempt to actually ask questions of SK, I get this:
(note the spelling error; the message should say "its" instead of "it's") Looking through the source, it seems to me that two strategies have been set up here in For what it's worth, my What am I missing? How do I configure my |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Tagging @westey-m |
Beta Was this translation helpful? Give feedback.
-
@godefroi, thank for raising this issue. We have been making quite a lot of improvements to the vector store area, and we missed updating this sample. I have updated it now with some changes to fix any issues. See pr #11903. Specifically, we now support embedding generation inside of the vector store classes. The You can read more about the built in embedding generation we now support here: You can also read more about the April 2025 changes we made here: https://learn.microsoft.com/en-us/semantic-kernel/support/migration/vectorstore-april-2025?pivots=programming-language-csharp |
Beta Was this translation helpful? Give feedback.
@godefroi, firstly on adding the embedding generator during DI. If you register an IEmbeddingGenerator before you register your record collection, the IEmbeddingGenerator will automatically be added to your options.
See https://github.com/microsoft/semantic-kernel/blob/main/dotnet/src/Connectors/Connectors.Memory.AzureAISearch/AzureAISearchServiceCollectionExtensions.cs#L140
You of course also don't have to use the DI registration helper methods we provide and can easily do something like the following yourself if you want to further customize the registration. There's no secret source in our registration helpers, they are just convenience methods.