Add Persistent Knowledge RAG Service and API

- Add IXAiRAGService and XAiRAGService for Extract -> Chunk -> Embed -> Store;
- Add synchronous and streaming RAG answers with sources;
- Add Knowledge models and KnowledgeController endpoints;
- Register IXAiRAGService as scoped;
- Keep current identifier: {ownerId}/{fileName}#{chunkIndex}.
This commit is contained in:
2026-10-26 17:51:39 +03:30
parent fef38cad1b
commit 9e82e05bfe
6 changed files with 1154 additions and 1 deletions
+6
View File
@@ -23,5 +23,11 @@ namespace xAiApi.Constants
//
public const string XOpenAINoKey = "no-key-required";
//
// Knowledge (Persistent RAG) ...
public const string XAiKnowledgeOwnerSeparator = "/";
public const string XAiKnowledgeMetadataOwnerId = "ownerId";
public const string XAiKnowledgeMetadataIngestedAtUtc = "ingestedAtUtc";
}
}