Commit Graph
54 Commits
Author SHA1 Message Date
saherelm 9e7710e345 Make projectId Nullable in Data Provider and Remove Api Configuration
- IXAiDataProvider.GetDefaultConversation: projectId changed from Guid to Guid?;
- XAiDataProvider.GetDefaultConversation / HasDefaultConversation /
  CreateDefaultConversation: adapt to Guid? (use !projectId.HasValue instead of
  projectId.IsNull(); resolve project via projectId.Value);
- XAiDataProvider: conversation lookup predicate fixed to
  x.ProjectId == project.Id (was x.ProjectId == projectId);
- XEmbeddingExtensions: add ToEmbedding(this ReadOnlyMemory<float>) to persist
  embeddings as JSON;
- XAiDataProvider: use item.Embedding.ToEmbedding() instead of ToJSON() when
  upserting vectors;
- XAiModelsExtensions: rename GetDafualtProject -> GetDafaultProject (typo fix);
- Remove Configurations/XAiApiConfiguration.cs and
  Extensions/XAiApiConfigurationExtensions.cs (Api configuration does not belong
  to the models module).
BREAKING: XAiApiConfiguration / XAiApiConfigurationExtensions removed from
          xAiModels; GetDafualtProject renamed to GetDafaultProject.
2026-11-02 16:37:27 +03:30
saherelm c4b7e86174 Try to Fix Embeding RAG Persisted Issues ... 2026-11-01 23:12:25 +03:30
saherelm 1b74f23a18 refactor person owner reader ... 2026-10-31 21:40:26 +03:30
saherelm 146137c908 last ... 2026-10-31 17:18:23 +03:30
saherelm 31a0d097c0 Make Project and Conversation Optional in XAiResponseRequest
- XAiResponseRequest: ProjectId / ConversationId changed from Guid to Guid?
  (omitted => default project / default conversation);
- XAiModelsExtensions: fix indentation of ToChatMessages signature.
2026-10-30 19:45:57 +03:30
saherelm ef1421def4 Move Knowledge Constants and Fix Inverted Ownership Filters
- Add XAiKnowledgeScope enum (Conversation=0, Project=1, Global=2, User=3) with StringValue prefixes;
- Add Knowledge constants, scope prefixes, metadata keys and XAiErrorRoute to XAiModelsConstants;
- Fix inverted ownerId condition in QueryProjects / QueryConversations / QueryMessages
  (ownership filter was skipped for real owners -> cross-user data exposure);
- Fix inverted HasChild() validation in HasDefaultProject / HasDefaultConversation;
- LoadConversations: ignore soft-deleted conversations;
- CreateProject / CreateConversation: set isDefaultLanguageHandled = true;
- GetDefaultConversation: use projectId instead of unloaded project.Id.
2026-10-29 19:58:47 +03:30
saherelm 093fc08e14 remove MetaData Extansions to Commons Module ... 2026-10-29 14:16:13 +03:30
saherelm 5f518b86b2 last ... 2026-10-28 00:08:26 +03:30
saherelm 34539cd764 last ... 2026-10-27 05:55:53 +03:30
saherelm 90ce6842f6 Persist Vector Storage and Prefix-Scoped Vector Search
- Add IXAiDataProvider contracts for batch upsert, prefix search, loading, and removal;
- Persist chunks in existing XAiVector schema without migration;
- Support topK, minimum score, prefix filtering, batch persistence, and replacement.
Files: M Interfaces/IXAiDataProvider.cs; M Providers/XAiDataProvider.cs
2026-10-26 17:51:24 +03:30
saherelm 664579623a add Extension Method for Handling Attachment of ApiKey on AI Model Proxyfing ... 2026-10-23 19:50:18 +03:30
saherelm c8ad34944a last ... 2026-10-21 17:54:52 +03:30
saherelm ae4b567bb3 ---
## خلاصه کامل کارهای انجام شده:

### ✅ تمام فایل‌های ایجاد شده برای XAiVector:

__مرحله 1 - Constants:__

- ✅ افزودن کانستنت‌ها به `XAiModelsConstants.cs`

__مرحله 2 - DTO & Configuration:__

- ✅ `Models/Dtos/XAiVectorDto.cs` - تکمیل شد
- ✅ `Configurations/Entities/XAiVectorEntityConfiguration.cs`
- ✅ `Configurations/Entities/XAiVectorMappingAction.cs`
- ✅ آپدیت `Configurations/XAiModelMappersProfile.cs`

__مرحله 3 - Interfaces Entities:__

- ✅ `Interfaces/Entities/IXAiVectorRepository.cs`
- ✅ `Interfaces/Entities/IXAiVectorEntityHub.cs`
- ✅ `Interfaces/Entities/IXAiVectorKeyGenerator.cs`
- ✅ `Interfaces/Entities/IXAiVectorRepositoryEvents.cs`
- ✅ `Interfaces/Entities/IXAiVectorRepositoryProvider.cs`
- ✅ `Interfaces/Entities/IXAiVectorSeeder.cs`
- ✅ `Interfaces/Entities/IXAiVectorGraphQLTypeHelper.cs`

__مرحله 4 - Interfaces Dtos:__

- ✅ `Interfaces/Dtos/IXAiVectorDtoHub.cs`
- ✅ `Interfaces/Dtos/IXAiVectorRepositoryService.cs`
- ✅ `Interfaces/Dtos/IXAiVectorServiceProvider.cs`

__مرحله 5 - Interfaces Enrichers:__

- ✅ `Interfaces/Enrichers/IXAiVectorEnricher.cs`

__مرحله 6 - Providers Entities:__

- ✅ `Providers/Entities/XAiVectorEFRepository.cs`
- ✅ `Providers/Entities/XAiVectorMongoRepository.cs`
- ✅ `Providers/Entities/XAiVectorInMemoryRepository.cs`
- ✅ `Providers/Entities/XAiVectorEntityHub.cs`
- ✅ `Providers/Entities/XAiVectorKeyGenerator.cs`
- ✅ `Providers/Entities/XAiVectorRepositoryEvents.cs`
- ✅ `Providers/Entities/XAiVectorRepositoryProvider.cs`
- ✅ `Providers/Entities/XAiVectorSeederBase.cs`

__مرحله 7 - Providers Dtos:__

- ✅ `Providers/Dtos/XAiVectorDtoHub.cs`
- ✅ `Providers/Dtos/XAiVectorRepositoryService.cs`
- ✅ `Providers/Dtos/XAiVectorServiceProvider.cs`

__مرحله 8 - Providers Enrichers:__

- ✅ `Providers/Enrichers/XAiVectorEnricher.cs`

__مرحله 9 - Providers GraphQL:__

- ✅ `Providers/GraphQL/XAiVectorGraphType.cs`
- ✅ `Providers/GraphQL/XAiVectorGraphQuery.cs`
- ✅ `Providers/GraphQL/XAiVectorGraphSchema.cs`
- ✅ `Providers/GraphQL/XAiVectorGraphQLTypeHelper.cs`

__مرحله 10 - Registry:__

- ✅ `Providers/XAiVectorEntityRegisterar.cs`

__مرحله 11 - Build:__

- ✅ پروژه با موفقیت build شد
2026-10-21 09:57:28 +03:30
saherelm 26df2c7ebc last ... 2026-10-02 22:12:26 +03:30
saherelm 755eafa7d2 Add Support for Attaching Additional Contents to Specified Prompt Message when Converting to Chat Message, Specified For File Support ... 2026-09-30 23:12:39 +03:30
saherelm 47b2cbc0d2 last ... 2026-09-30 15:27:26 +03:30
saherelm f48b9257a3 last ... 2026-09-29 17:41:17 +03:30
saherelm 5d3601ba44 last ... 2026-09-28 22:36:16 +03:30
saherelm 33922537d5 last ... 2026-09-28 18:00:00 +03:30
saherelm 8e23a09f7b apply some changes on default ai resource titles ... 2026-09-28 17:49:50 +03:30
saherelm 2aa0607e85 last ... 2026-09-28 16:34:36 +03:30
saherelm a4dee3b5a4 last ... 2026-09-27 22:00:56 +03:30
saherelm 9f27b7825e last ... 2026-09-27 16:08:32 +03:30
saherelm eb27e9ce1f last ... 2026-09-25 19:48:23 +03:30
saherelm 490058d1a8 last ... 2026-09-19 17:03:16 +03:30
saherelm f9b5f1f6aa last ... 2026-09-06 08:46:01 +03:30
saherelm a9b75b3c33 apply sorting ... 2026-09-06 00:18:24 +03:30
saherelm 88607a9e4d sorting ... 2026-09-03 23:58:37 +03:30
saherelm 7ef56fbc1e kast ... 2026-09-03 10:38:06 +03:30
saherelm 7f47c449e7 cleanup nuget source ... 2026-08-15 17:23:35 +03:30
saherelm 89b848709f apply fix on Models Enrichments ... 2026-08-15 14:42:21 +03:30
saherelm 54883b760b last ... 2026-08-15 10:48:55 +03:30
saherelm 337899ba85 last ... 2026-08-14 21:33:20 +03:30
saherelm 73fb9a01b8 last ... 2026-08-14 00:01:17 +03:30
saherelm 842feac905 last works ... 2026-08-09 17:10:47 +03:30
saherelm 831c7004a8 last works on Models ... 2026-08-08 18:07:28 +03:30
saherelm 8e1566310c last ... 2026-08-08 11:34:16 +03:30
saherelm 000408ae3f fix usage of Enrichers and Dto Structures ... 2026-08-08 09:42:28 +03:30
saherelm 17bbe401ae backup Mapping Actions and remove them and try to use Enricher Service for AiConversation ... 2026-08-08 00:30:31 +03:30
saherelm 5578c6cb2e last ... 2026-08-03 09:44:56 +03:30
saherelm fa31d693d9 last ... 2026-08-02 15:53:08 +03:30
saherelm fbbc728366 last ... 2026-08-02 11:18:27 +03:30
saherelm 9a13fa68a7 add mapper configs ... 2026-08-01 15:32:14 +03:30
saherelm 2696a9850c last ... 2026-08-01 10:52:50 +03:30
saherelm 5824eda6cb refactor and add using constants instead of hard coded strings ... 2026-07-30 14:27:45 +03:30
saherelm 116e240e70 last ... 2026-07-29 00:17:19 +03:30
saherelm d4de9e52c4 complete Data Service DI and Models and etc ... 2026-07-28 14:27:33 +03:30
saherelm 88ad441ba1 last ... 2026-07-26 21:25:26 +03:30
saherelm 2144e9f8a7 last ... 2026-07-26 21:19:40 +03:30
saherelm 429c07a02d last ... 2026-05-04 00:38:09 +03:30