5307fe4d2f
add support filling policy handler ...
saherelm2026-11-05 23:19:14 +03:30
ae7f5920c1
- Apply Using XUserInfoClaims to RefreshAsync on McpServers ... - Adding DateTime Prompt Handling in XAiServiceBase ... - Adding Support for Function Tools Attachment into ChatOptions when Asking Ai ... - Adding XDateTimeDescriptor class for Configuring DateTime attaching in Prompt Context, attached it on XAiApiConfiguration and also Configure it in appSettings File ...
saherelm2026-11-05 18:17:30 +03:30
97acf0a123
Add Support for Default Swagger Parameters Values in appSetting and Add Support for MCPServers Connecting and Handling Function Tooling ...
saherelm2026-11-05 14:54:05 +03:30
a870d61e61
Refactor Chat Pipeline into PrepareChatRequirementsAsync and Harden RAG Services - XAIServiceBase: add PrepareChatRequirementsAsync as the single entry point for chat prerequisites (normalize RAG params, resolve default project/conversation, ingest attachments, retrieve RAG context, build history, persist prompt message) and return the new XPreparedChatContext; - XAIServiceBase: add NormalizeRagParams (topK / minScore / type) and use it in all Ask* methods instead of duplicated inline normalization; - XAIServiceBase: rework GetHistory - the single GetHistory(ChatMessage, bool) signature is replaced by two overloads GetHistory(prompt, forcePrompt) and GetHistory(prompt, context); the latter is used by the non-persisted chat path; - XAIServiceBase: remove AskLLMAsync; LLM invocation is now inlined in each Ask* method over prep.History; - XAIServiceBase: rewrite AskAsync and AskAsEnumerable on top of PrepareChatRequirementsAsync; streamed responses now use Role = Assistant, RespondTo = prep.PersistedPromptMessage.Id and Sequence++; - XAIServiceBase: use XAiApiConstants.XAiApiRagPromptName instead of configuration.RAGDescriptor.PromptName; - XAIServiceBase.LoadConversations: call the renamed GetDafaultProject; - Add Models/XPreparedChatContext.cs (Project, Conversation, History, Context, PersistedPromptMessage) as the shared context between actions; - XAiRAGService: wrap each file ingest in its own try/catch with logger.LogError so one bad file no longer aborts the whole ingest; - XAiRAGService: upload the file and add a scope reference (providedFor / forProvidedId) for the ingested scope; - XAiRAGService: remove stale vectors of the same document via RemoveVectorsAsync(identifierPrefix) when replaceExisting is set; - XInMemoryVectorStore: make session retrieval thread-safe via lock (found.SyncRoot) and ReferenceEquals check against concurrent removal; - XAiServiceControllerBase.Ask: pass the attached files to the AI service (was files: null) so RAG works on attachments; - XModelsExtensions: relax ChatWithDocuments ask validation - TopK and MinScore are optional again (defaults come from RAGDescriptor); - XAiModelProxyMiddleware: use logical OR instead of bitwise OR in the authentication check; - XAiEmbeddingServiceBase: do not dispose the embedding generator (removed using to avoid premature disposal); - ChatWithDocumentsController: reorder EmbedChunks parameters; - Remove Interfaces/IXAiEmbeddingServiceControllerBase.cs.
saherelm2026-11-02 16:37:57 +03:30
9e82e05bfe
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}.
saherelm2026-10-26 17:51:39 +03:30
fef38cad1b
Fix Jinja Conversation Role Alternation in RAG Context History
saherelm2026-10-26 10:43:17 +03:30
fa92763baa
fix issue in appsettings ...
saherelm2026-10-25 22:27:55 +03:30
429b97cded
add TextChunker Service for AI Project ...
saherelm2026-10-25 17:23:03 +03:30
4b857de518
- Add Proxy Configuration in AppSettings; - Remap Proxy Configurations in AiApiConfiguration; - Implement AiModelProxy Middleware for Proxifing Requests to Models; - ad DI Extensions Method for Handling Proxy Middleware Usage in AiApi; - Implement Proxy Middleware for Handling Proxifying Requests to Models for Test;
saherelm2026-10-23 19:58:35 +03:30
0e3d6249a2
refactor AddXCommons for Support File Type Detector ...
saherelm2026-10-23 00:13:20 +03:30