mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-08-04 09:48:57 +00:00
a39a81166a
Replaced SemanticKernel with Microsoft.Agents.AI and agent-based abstractions for chat and RAG workflows. Removed ChatService in favor of AIAgent instances for question reformulation and answering. Added agent registration/configuration in Program.cs, new RagResponse record, and ContextProvider for context search. Introduced HybridCacheSessionStoreService for session persistence. Switched to direct OpenAIClient usage with request tracing. Reduced max relevant context chunks to 30. Removed SemanticKernel from project references and suppressed MEAI001 warning. Refactored code for improved style and DI alignment.
42 lines
1.3 KiB
JSON
42 lines
1.3 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"SqlConnection": ""
|
|
},
|
|
"AzureOpenAI": {
|
|
"ChatCompletion": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ModelId": "", // gpt-4o, gpt-4, gpt-3.5, etc. Note that for gpt-4.1 and gpt-5 models, the ModelId must be set to gpt-4o.
|
|
"ApiKey": ""
|
|
},
|
|
"Embedding": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ModelId": "", // text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002
|
|
"ApiKey": "",
|
|
// Set this value only if you're using a model that allows to specify the dimensions of the embeddings
|
|
// (e.g. text-embedding-3-small or text-embedding-3-large). Currently, a maximum value of 1998 is supported.
|
|
"Dimensions": null
|
|
}
|
|
},
|
|
"AppSettings": {
|
|
"EmbeddingBatchSize": 32,
|
|
"MaxTokensPerLine": 300,
|
|
"MaxTokensPerParagraph": 1000,
|
|
"OverlapTokens": 100,
|
|
"MaxRelevantChunks": 30,
|
|
"MaxInputTokens": 32768,
|
|
"MaxOutputTokens": 800,
|
|
"MessageExpiration": "00:05:00",
|
|
"MessageLimit": 20
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"https_port": 443,
|
|
"AllowedHosts": "*"
|
|
}
|