OpenAIEmbeddingSample
1.0.0
An example that shows how to use Semantic Kernel and Kernel Memory to work with embeddings in a .NET application using SQL Server as Vector Database.
The embeddings are stored in a SQL Server database and the Vector Search is efficiently performed thanks to COLUMNSTORE indexes.
To execute the application:
await kernelMemory.ImportDocumentAsync in the Program.cs fileRefer to Program.cs to see how document chunking is performed and how embeddings are calculated, stored and retrieved from the database using Kernel Memory.
If you want to see a manual (explicit) approach to embedding and Vector Search using SQL Server, refer to the manual-approach branch.