mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
f15f387510
- Clarified comment in `ChatService.cs`. - Added `TokenizerService` and `ILogger` parameters to `VectorSearchService` constructor. - Updated paragraph splitting to use `tokenizerService.CountTokens`. - Added logging for token count of each paragraph in `VectorSearchService`. - Updated `ModelId` comment in `appsettings.json` to include "gpt-4o-mini". - Changed `MaxTokensPerParagraph` in `appsettings.json` from 1024 to 1000.
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"ConnectionStrings": {
|
|
"SqlConnection": ""
|
|
},
|
|
"AzureOpenAI": {
|
|
"ChatCompletion": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ModelId": "", // o1, gpt-4o, gpt-4o-mini, gpt-4, gpt-3.5
|
|
"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": {
|
|
"MaxTokensPerLine": 300,
|
|
"MaxTokensPerParagraph": 1000,
|
|
"OverlapTokens": 100,
|
|
"MaxRelevantChunks": 10,
|
|
"MaxInputTokens": 16385,
|
|
"MaxOutputTokens": 800,
|
|
"MessageExpiration": "00:05:00"
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"https_port": 443,
|
|
"AllowedHosts": "*"
|
|
}
|