Add dimensions parameter for embeddings; reformat SQL

Updated Program.cs to include dimensions parameter for AddAzureOpenAITextEmbeddingGeneration sourced from aiSettings.Embedding.Dimensions. Reformatted SQL command texts in VectorSearchService.cs for better readability. Introduced EmbeddingServiceSettings class in AzureOpenAISettings.cs to allow optional dimensions configuration. Updated appsettings.json to include new Dimensions property under Embedding section.
This commit is contained in:
Marco Minerva
2024-09-30 17:53:59 +02:00
parent 3e95251485
commit 2dff0aae55
4 changed files with 47 additions and 14 deletions
+2 -1
View File
@@ -11,7 +11,8 @@
"Embedding": {
"Endpoint": "",
"Deployment": "",
"ApiKey": ""
"ApiKey": "",
"Dimensions": null
}
},
"AppSettings": {