mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
db4646330f
- Modified `ApplicationDbContext.cs` to correct the `.IsVector()` method placement for `DocumentChunk`. - Removed `MemoryResponse.cs` class, indicating a move away from this model. - Enhanced `Program.cs` with Azure AI services integration for text embeddings and chat completions. Updated OpenAPI descriptions and reintroduced `/api/ask` with vector search. - Adjusted `ChatService.cs` to improve question-asking functionality using document chunks. - Updated `VectorSearchService.cs` with a new `AskQuestionAsync` method for advanced search and response capabilities. Made `GetContentAsync` static. - Formatted `SqlDatabaseVectorSearch.csproj` and managed NuGet package inclusions. - Simplified `appsettings.json` by removing unused keys. - Added a new `Response` record class for standardized service responses.
32 lines
678 B
JSON
32 lines
678 B
JSON
{
|
|
"ConnectionStrings": {
|
|
"SqlConnection": ""
|
|
},
|
|
"AzureOpenAI": {
|
|
"ChatCompletion": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ApiKey": "",
|
|
"MaxTokens": 32768
|
|
},
|
|
"Embedding": {
|
|
"Endpoint": "",
|
|
"Deployment": "",
|
|
"ApiKey": "",
|
|
"MaxTokens": 8191
|
|
}
|
|
},
|
|
"AppSettings": {
|
|
"MessageLimit": 20,
|
|
"MessageExpiration": "00:05:00"
|
|
},
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"https_port": 443,
|
|
"AllowedHosts": "*"
|
|
}
|