mirror of
https://github.com/marcominerva/SqlDatabaseVectorSearch.git
synced 2026-06-20 12:23:10 +00:00
1ef2d384ec
- Updated `Response` record class to allow nullable `Question` and `Answer` properties; moved `StreamState` enum to a new file. - Added `JsonStringEnumConverter` in `Program.cs` for better enum serialization. - Corrected terminology in document upload endpoint description. - Introduced `/api/ask-streaming` endpoint for streaming question responses. - Added `AskStreamingAsync` method in `VectorSearchService` for handling streaming logic. - Created `StreamState.cs` to define `StreamState` enum with `Start`, `Append`, and `End` values.
4 lines
208 B
C#
4 lines
208 B
C#
namespace SqlDatabaseVectorSearch.Models;
|
|
|
|
// Question and Asnwer can be null when using response streaming.
|
|
public record class Response(string? Question, string? Answer, StreamState? StreamState = null); |