mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
33c8fcb9dc
Updated Program.cs to use TinyHelpers.AspNetCore.OpenApi and Microsoft.Extensions.Caching.Hybrid. Refactored ChatService.cs to use HybridCache for chat history management. Removed MessageLimit property from AppSettings.cs and appsettings.json. Updated SqlDatabaseVectorSearch.csproj to include new caching package and replace Swagger with Swagger UI.
15 lines
352 B
C#
15 lines
352 B
C#
namespace SqlDatabaseVectorSearch.Settings;
|
|
|
|
public class AppSettings
|
|
{
|
|
public int MaxTokensPerLine { get; init; } = 300;
|
|
|
|
public int MaxTokensPerParagraph { get; init; } = 1024;
|
|
|
|
public int OverlapTokens { get; init; } = 100;
|
|
|
|
public int MaxRelevantChunks { get; init; } = 5;
|
|
|
|
public TimeSpan MessageExpiration { get; init; }
|
|
}
|