- 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}.
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
namespace xAiApi.Constants
|
|
{
|
|
public struct XAiApiConstants
|
|
{
|
|
//
|
|
// Database Descriptor ...
|
|
public const string XAiApiDbIdentifier = "xAiApiDb";
|
|
public const string XAiApiMigrationsAssemblyIdentifier = "xAiApi";
|
|
|
|
//
|
|
public const string XDILogTag = "XAiApi";
|
|
|
|
//
|
|
public const string XAiApiIntroductionPromptName = "Introduction";
|
|
public const string XAiApiContentExtractionPromptName = "ContentExtraction";
|
|
|
|
//
|
|
public const string XAiDefaultModelName = "Gemma";
|
|
public const string XAiEmbeddingModelName = "Embed";
|
|
public const string XAiDefaultVisionModelName = "Qwen";
|
|
public const string XAiDefaultThinkingModelName = "Qwen";
|
|
public const string XAiEmbeddingPromptName = "Embedding";
|
|
|
|
//
|
|
public const string XOpenAINoKey = "no-key-required";
|
|
|
|
//
|
|
// Knowledge (Persistent RAG) ...
|
|
public const string XAiKnowledgeOwnerSeparator = "/";
|
|
public const string XAiKnowledgeMetadataOwnerId = "ownerId";
|
|
public const string XAiKnowledgeMetadataIngestedAtUtc = "ingestedAtUtc";
|
|
}
|
|
} |