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.
8 lines
104 B
C#
8 lines
104 B
C#
namespace SqlDatabaseVectorSearch.Models;
|
|
|
|
public enum StreamState
|
|
{
|
|
Start,
|
|
Append,
|
|
End
|
|
} |