Files
SqlDatabaseVectorSearch/SqlDatabaseVectorSearch/appsettings.json
T
Marco Minerva 5b43031251 Add TokenizerService and update settings configuration
Updated Program.cs to use ConfigureAndGet method for settings,
changed ChatService to singleton, and added TokenizerService
singleton. Modified ChatService to use TokenizerService for
token counting. Updated AppSettings and AzureOpenAISettings
with new properties. Added new package references in
SqlDatabaseVectorSearch.csproj. Updated appsettings.json with
new properties. Added TokenizerService class for token counting.
2024-11-06 17:20:05 +01:00

41 lines
1.1 KiB
JSON

{
"ConnectionStrings": {
"SqlConnection": ""
},
"AzureOpenAI": {
"ChatCompletion": {
"Endpoint": "",
"Deployment": "",
"ApiKey": "",
"ModelId": ""
},
"Embedding": {
"Endpoint": "",
"Deployment": "",
"ApiKey": "",
"ModelId": "",
// 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": {
"MaxTokenPerLine": 300,
"MaxTokensPerParagraph": 1024,
"OverlapTokens": 100,
"MaxRelevantChunks": 10,
"MaxInputTokens": 16385,
"MaxOutputTokens": 800,
"MessageLimit": 20,
"MessageExpiration": "00:05:00"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"https_port": 443,
"AllowedHosts": "*"
}