Commit Graph

  • 3a228439a5 add config for cache ttl ... master saherelm 2026-11-15 21:26:41 +03:30
  • 13cd0745c6 last ... saherelm 2026-11-14 08:34:10 +03:30
  • 5bccce3475 apply fix on Create Conversation Validations ... saherelm 2026-11-11 11:56:11 +03:30
  • cddf2650f5 fix Create Conversation to Handle Default Project Id ... saherelm 2026-11-11 11:42:55 +03:30
  • fba69b274c adding allowed origin for Live Server ... saherelm 2026-11-10 18:35:11 +03:30
  • 0077008105 last ... saherelm 2026-11-10 17:29:59 +03:30
  • 3dc54332c2 fix ask with files ... saherelm 2026-11-10 11:56:55 +03:30
  • dab384ea37 adding cors origins ... saherelm 2026-11-10 10:40:00 +03:30
  • f6a916fa83 make it use global ip ... saherelm 2026-11-09 15:41:23 +03:30
  • 5656ec07d5 - .gitignore: +Logs - Program.cs: +xLoggingService، +AddXTelemetryLogger، +AddXTelemetry - Startup.cs: +UseXRequestLogger (non-development) - xAiApi.csproj: +xLoggingService reference saherelm 2026-11-09 12:50:22 +03:30
  • c24c14eb74 add using XLoggingService ... saherelm 2026-11-08 22:55:56 +03:30
  • b58f1dd736 last ... saherelm 2026-11-08 17:59:31 +03:30
  • 31add513bc add support for File Content Extraction, use Data Bytes for Multi Modal or add them to Knowledge ... saherelm 2026-11-06 20:53:26 +03:30
  • 16fb715926 last ... saherelm 2026-11-06 19:14:02 +03:30
  • 5307fe4d2f add support filling policy handler ... saherelm 2026-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 ... saherelm 2026-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 ... saherelm 2026-11-05 14:54:05 +03:30
  • c7efdd5525 last ... saherelm 2026-11-03 22:53:48 +03:30
  • 937e30dd9d last ... saherelm 2026-11-03 18:56:42 +03:30
  • c61f8aec98 add MCP Serer Descriptor ... saherelm 2026-11-02 23:16:20 +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. saherelm 2026-11-02 16:37:57 +03:30
  • 726d6ce827 Try to Fix Embeding RAG Persisted Issues ... saherelm 2026-11-01 23:12:12 +03:30
  • fa1014bf20 Refactoring Services ... saherelm 2026-11-01 22:36:20 +03:30
  • ce4e5927dd last ... saherelm 2026-11-01 18:13:49 +03:30
  • 51dddb4b68 last ... saherelm 2026-11-01 18:11:26 +03:30
  • ce5db9e349 last ... saherelm 2026-10-31 17:19:17 +03:30
  • c1173042d4 last ... saherelm 2026-10-31 05:49:17 +03:30
  • ad8ea9c1dd Integrate RAG into Chat Pipeline and Decouple Embedding Service - AskAsync: accept Guid? projectId / conversationId; resolve defaults; - AskAsync: ingest attached files into Conversation scope (replaceExisting) via IXAiRAGService instead of Upload + Extract + raw content attachment; - AskAsync: retrieve context (Conversation -> Project -> User -> Global) and build a single System message: Introduction + ChatWithDocuments prompt + Context block (+ Project prompt); - XAIServiceBase / XDefaultAiService / XDefaultThinkingAiService: inject IXAiRAGService instead of IXFileProvider; - Add IXAiEmbeddingService + XAiEmbeddingService; remove IXDefaultEmbeddingService + XDefaultEmbeddingService; - XAiEmbeddingServiceBase no longer inherits XAIServiceBase; IXAiEmbeddingServiceBase / IXAiEmbeddingServiceControllerBase no longer extend chat interfaces; XAiEmbeddingServiceControllerBase derives from XBaseIdentityApiV1Controller; - XAiRAGService: drop IXDefaultAiService dependency (removes circular dependency); remove AskWithRAGAsync / AskWithRAGAsEnumerable; add file reference (AddReference) for scoped ingests; - KnowledgeController: remove POST Ask and POST AskStream; - DI: add AddXRagService() and call it from Startup before AddXAiServices(); - Add XAiApiRagPromptName = "ChatWithDocuments"; - Knowledge scope factories default Type to XAiDefaultKnowledgeType; - ChatWithDocuments ask request: TopK and MinScore are now required. BREAKING: /Knowledge/Ask and /Knowledge/AskStream removed; IXDefaultEmbeddingService replaced by IXAiEmbeddingService. saherelm 2026-10-30 19:46:20 +03:30
  • 37d4e622e9 Implement RAG Scopes, Remove ProxyController, Fix Pipeline Order and SSE Format - RAG: real scopes with identifiers conversation/{id}/, project/{id}/, user/{ownerId}/, global/; - RAG: ownership checks via GetProject/GetConversation; Global write requires admin role; - RAG: tiered retrieval Conversation -> Project -> User -> Global (single embedding, dedup, TopK fill); - RAG: apply Type filter, sanitize file names, enforce MaxFilesPerIngest/MaxFileSizeBytes/MaxDocumentsPerScope; - RAG: store scope/scopeId/type/ownerId metadata; return it in documents and sources; - RAG: add MigrateLegacyVectorsAsync + POST /Knowledge/MigrateLegacy ({ownerId}/... -> user/{ownerId}/...); - Knowledge API: scope/scopeId on Ingest, Documents, DELETE Documents; - Remove ProxyController (root route "{modelName}/{path}" + AllowAnonymous hijacked all 2-segment paths); - Startup: ExceptionHandler("/error") + HSTS outside Development; Swagger only in Development; static files before routing; CORS before model proxy; add /error endpoint; - SSE: all stream endpoints use xHttpService XSseExtensions; validate before streaming; pre-stream errors return proper HTTP status; remove "Connection: keep-alive"; - Use xAiModels.Constants for XAiKnowledgeScope / Knowledge constants / XOpenAINoKey; - Register XAiVectorEntityRegisterar in XAiApiDbContext; - XCodeFileContentExtractor: actually read stream content; drop hard-coded "book.epub". BREAKING: AskTextStream emits data: {"text":"..."}; AskStream emits data: {json}; both end with event: done. saherelm 2026-10-29 19:59:18 +03:30
  • d3ecc8feea Last Refactor Works for Improvement ... saherelm 2026-10-29 14:17:11 +03:30
  • 07a3caa98f last ... saherelm 2026-10-28 14:27:06 +03:30
  • d68c1367b6 review and fix changelogs overview, uncomplete ... saherelm 2026-10-28 00:07:56 +03:30
  • 058d8da780 last ... saherelm 2026-10-27 05:56:08 +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}. saherelm 2026-10-26 17:51:39 +03:30
  • fef38cad1b Fix Jinja Conversation Role Alternation in RAG Context History saherelm 2026-10-26 10:43:17 +03:30
  • fa92763baa fix issue in appsettings ... saherelm 2026-10-25 22:27:55 +03:30
  • 47da04a594 Implement Chat With Documents (In-Memory RAG) ... saherelm 2026-10-25 22:24:39 +03:30
  • 47d8a19423 last ... saherelm 2026-10-25 17:58:05 +03:30
  • 429b97cded add TextChunker Service for AI Project ... saherelm 2026-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; saherelm 2026-10-23 19:58:35 +03:30
  • 0e3d6249a2 refactor AddXCommons for Support File Type Detector ... saherelm 2026-10-23 00:13:20 +03:30
  • 0f92c54fb5 adding Code Content Extractor ... saherelm 2026-10-22 23:31:20 +03:30
  • f39cde0d09 add Epub, Html, PowerPoint, RTF File Content Extractor and etc ... saherelm 2026-10-22 19:06:51 +03:30
  • 877627714c fix ... saherelm 2026-10-22 12:03:04 +03:30
  • 907926b0f7 Fix Windows Relation on Audio and PDF Content Extraction ... saherelm 2026-10-21 22:30:02 +03:30
  • ddfa7979a5 last ... saherelm 2026-10-21 17:55:12 +03:30
  • 20f1c7fb2f last ... saherelm 2026-10-04 18:10:44 +03:30
  • e6e5369b95 Complete Audi Transcript using NAudio and Whisper ... saherelm 2026-10-04 11:42:27 +03:30
  • 70c2d5a649 add support for OCR ... saherelm 2026-10-03 22:26:03 +03:30
  • 7cad889cd0 last ... saherelm 2026-10-03 17:42:36 +03:30
  • c30d93be0b last ... saherelm 2026-10-02 22:12:46 +03:30
  • 4521a53734 fix file content extractor mechanism ... saherelm 2026-10-02 00:07:58 +03:30
  • f32972b55f adding File Content Extraction Services ... saherelm 2026-10-01 01:16:24 +03:30
  • aac3eb92c1 Start Add File Support in Messages Feature ... saherelm 2026-09-30 23:13:32 +03:30
  • efaf71d962 last ... saherelm 2026-09-30 15:27:39 +03:30
  • 383e42a8d2 last ... saherelm 2026-09-29 17:41:48 +03:30
  • fc679fe294 last ... saherelm 2026-09-28 22:36:02 +03:30
  • 767479e80d last ... saherelm 2026-09-28 16:35:04 +03:30
  • 7ddf4d90c4 last ... saherelm 2026-09-27 22:01:25 +03:30
  • d638292216 last ... saherelm 2026-09-27 16:08:51 +03:30
  • b596afbe57 last ... saherelm 2026-09-26 16:46:30 +03:30
  • 3fbdebbdd3 last ... saherelm 2026-09-26 14:03:25 +03:30
  • ed8a66f432 refactor for better support of streaming and etc ... saherelm 2026-09-26 10:46:14 +03:30
  • 9afa413c6f adding vector model enabling and also test all using OpenAI model ... saherelm 2026-09-26 01:24:19 +03:30
  • 22de433023 last ... saherelm 2026-09-25 19:47:30 +03:30
  • ae2713eddd fix typos ... saherelm 2026-09-19 12:14:44 +03:30
  • 74357567eb kast ... saherelm 2026-09-03 10:35:10 +03:30
  • 302c0c763e last ... saherelm 2026-08-18 10:40:04 +03:30
  • 7b1f16bd18 last works on AiApi: - Default Ai Service and Controller; - Default Embeding and Controller; - ... saherelm 2026-08-15 17:25:33 +03:30
  • a4bcde5994 last ... saherelm 2026-08-15 10:49:08 +03:30
  • 561542ea0a last ... saherelm 2026-08-15 00:29:01 +03:30
  • 6723454690 last ... saherelm 2026-08-14 23:03:14 +03:30
  • aaa1ae2a2b last ... saherelm 2026-08-14 21:33:36 +03:30
  • 632dd04d98 last ... saherelm 2026-08-01 04:21:36 +03:30
  • 9caf46a266 fix issues and build and run Successfully ... saherelm 2026-07-29 09:05:36 +03:30
  • 7dd333f013 last ... saherelm 2026-07-29 00:15:56 +03:30
  • f115b2bc85 last ... saherelm 2026-07-28 14:28:07 +03:30
  • d07a273ea3 update gitignore ... saherelm 2026-07-28 11:30:32 +03:30
  • db2d80160e last ... saherelm 2026-07-26 21:21:31 +03:30
  • a3b3e69e53 Cleanup and Backup Exists AiApi and Create a New .net 10 App and Configureit for using xDashboard ... saherelm 2026-07-24 23:10:06 +03:30
  • 203ba30056 Update Lang Version to 12 ... saherelm 2026-06-12 02:17:25 +03:30
  • 6b869e82d8 last ... saherelm 2026-05-06 04:41:48 +03:30
  • f7184c7b79 last works ... saherelm 2026-04-30 12:01:56 +03:30
  • 2b5e09912f last ... saherelm 2026-04-27 21:43:06 +03:30
  • bb5dc64a7d last ... saherelm 2026-04-24 22:06:13 +03:30
  • e49c273171 last ... saherelm 2026-04-24 13:42:14 +03:30
  • 5efd41754a last ... saherelm 2026-04-24 00:33:50 +03:30
  • 8786470134 last ... saherelm 2026-04-23 00:21:40 +03:30
  • b7f6ac9d78 oreoare nuget source for built on mirrors and add support for Db folder keep in git ... saherelm 2026-04-19 22:41:05 +03:30
  • 8868afe656 last ... saherelm 2026-04-17 03:04:14 +03:30
  • 43d0433a8e Fix Stream Issues ... saherelm 2026-04-16 23:06:02 +03:30
  • 509acc1488 last ... saherelm 2026-04-16 16:02:26 +03:30
  • ed9ddfd47b last ... saherelm 2026-04-15 00:34:15 +03:30
  • ce1d96078f last ... saherelm 2026-04-14 23:53:46 +03:30
  • ad2ff8a4dc last ... saherelm 2026-04-14 16:54:01 +03:30
  • 81ea808377 last ... saherelm 2026-04-10 23:51:44 +03:30
  • e4ddceafa0 last ... saherelm 2026-04-10 17:41:01 +03:30
  • 523ad16b3c last ... saherelm 2026-04-09 17:02:13 +03:30
  • 843aff3879 Add support for SemanticKernel and Build Project ... saherelm 2026-04-04 04:50:55 +03:30
  • 058b55f4fa Add Required Stuffs to running Project on net8.0 ... saherelm 2026-04-04 00:11:31 +03:30