Implement Chat With Documents (In-Memory RAG) ...
- Add XAiDocumentModels (IngestResult, AskRequest, Answer, AnswerChunk, Source, SessionInfo, RAGDescriptor DTOs); - Add AskWithContextAsync and AskWithContextAsEnumerable (Context Actions) to IXAiServiceBase and XAIServiceBase; - Add GetContextHistory and BuildContextBlock Helpers for Building RAG Chat History without Persisting; - Rewrite ChatWithDocumentsController with Ingest, Ask, AskStream (SSE), Get Session and Delete Session Endpoints; - Add XInMemoryVectorStoreCleanupService (BackgroundService) for Removing Expired Sessions Periodically; - Add AddXAiChatWithDocuments DI Extension, Register Cleanup HostedService and use it in Startup; - Add RAGDescriptor Property to XAiApiConfiguration and its Section to appsettings.Development.json; - Add ChatWithDocuments System Prompt to Prompts in appsettings.Development.json; - Add IsValid Extension Method for XAiDocumentAskRequest; - Optimize XInMemoryVectorStore.Search (Query Embedding Converted once) and Refactor Formatting; - Remove Unused Usings in XAIServiceBase and IXAiServiceBase; - ...
This commit is contained in:
+3
-3
@@ -186,14 +186,14 @@ namespace xAiApi
|
||||
//
|
||||
// Register File Content Extractor Services ...
|
||||
services.AddXAiFileContentExtractors();
|
||||
|
||||
|
||||
//
|
||||
// Register Text Chunker Service ...
|
||||
services.AddXAiTextChunker();
|
||||
|
||||
//
|
||||
// Register In-Memory Vector Store Service ...
|
||||
services.AddXAiInMemoryVectorStore();
|
||||
// Register Chat With Documents Services (Text Chunker + In-Memory Vector Store) ...
|
||||
services.AddXAiChatWithDocuments();
|
||||
|
||||
//
|
||||
// Register Default AI Services ...
|
||||
|
||||
Reference in New Issue
Block a user