mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
fa58e02709
Refactored code to centralize configuration access through a single `AppSettings` instance in `ChatService` and `VectorSearchService`, improving maintainability and reducing verbosity. Introduced new configuration settings (`MaxTokensPerLine`, `MaxTokensPerParagraph`, `OverlapTokens`, `MaxChunksCount`) in `AppSettings.cs` and `appsettings.json` for enhanced flexibility in content processing. Adjusted existing settings usage (`MessageLimit`, `MessageExpiration`) to align with the new access method, and removed obsolete settings (`StoragePath`, `VectorDbPath`, `QueuePath`). These changes simplify the codebase, make the application more configurable and adaptable to different content characteristics, and allow for more controlled vector search operations.
34 lines
745 B
JSON
34 lines
745 B
JSON
{
|
|
"ConnectionStrings": {
|
|
"SqlConnection": ""
|
|
},
|
|
"AzureOpenAI": {
|
|
"ChatCompletion": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ApiKey": ""
|
|
},
|
|
"Embedding": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ApiKey": ""
|
|
}
|
|
},
|
|
"AppSettings": {
|
|
"MaxTokenPerLine": 300,
|
|
"MaxTokensPerParagraph": 1024,
|
|
"OverlapTokens": 100,
|
|
"MaxChunksCount": 5,
|
|
"MessageLimit": 20,
|
|
"MessageExpiration": "00:05:00"
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"https_port": 443,
|
|
"AllowedHosts": "*"
|
|
}
|