- Update xAiApi Submodule Pointer to Chat With Documents (In-Memory RAG) Implementation; - Add Documents/Docs/ChangeLogs/1405-08-03.html (ChangeLog of Pushed Commits); - Add Documents/Docs/ChangeLogs/1405-08-03-uncommitted.html (ChangeLog of this Commit); - Add Documents/Docs/ChangeLogs/CommitMessage-1405-08-03.txt; - Add Documents/Markdown/plan1.md and plan1.html (Chat With Documents Implementation Plan); - ...
92 lines
5.4 KiB
Plaintext
92 lines
5.4 KiB
Plaintext
===============================================================================
|
|
Commit Messages - xSaherelmWorkspace
|
|
تاریخ: یکشنبه ۱۴۰۵/۰۸/۰۳ (2026-10-25)
|
|
نویسنده: Hadi Khazaee Asl
|
|
گزارش کامل: Documents/Docs/ChangeLogs/1405-08-03-uncommitted.html
|
|
===============================================================================
|
|
|
|
ترتیب کامیت: ابتدا سابماژول xAiApi، سپس مخزن اصلی (برای بهروزرسانی پوینتر سابماژول).
|
|
توجه: پیش از کامیت، مقدار "DefaultMinScore": "0.35f" در xAiApi/appsettings.Development.json
|
|
باید به 0.35 (عدد) اصلاح شود.
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
[1] xAiApi (https://git.saherelm.ir/saherelm/xSaherElmAiApi.git) - 1405/08/03
|
|
-------------------------------------------------------------------------------
|
|
Implement Chat With Documents (In-Memory RAG) ...
|
|
|
|
- Add XAiDocumentModels (IngestResult, AskRequest, Answer, AnswerChunk, Source, SessionInfo, RAGDescriptor DTOs);
|
|
- Add AskWithContextAsync and AskWithContextAsEnumerable (Context Actions) to IXAiServiceBase and XAIServiceBase;
|
|
- Add GetContextHistory and BuildContextBlock Helpers for Building RAG Chat History without Persisting;
|
|
- Rewrite ChatWithDocumentsController with Ingest, Ask, AskStream (SSE), Get Session and Delete Session Endpoints;
|
|
- Add XInMemoryVectorStoreCleanupService (BackgroundService) for Removing Expired Sessions Periodically;
|
|
- Add AddXAiChatWithDocuments DI Extension, Register Cleanup HostedService and use it in Startup;
|
|
- Add RAGDescriptor Property to XAiApiConfiguration and its Section to appsettings.Development.json;
|
|
- Add ChatWithDocuments System Prompt to Prompts in appsettings.Development.json;
|
|
- Add IsValid Extension Method for XAiDocumentAskRequest;
|
|
- Optimize XInMemoryVectorStore.Search (Query Embedding Converted once) and Refactor Formatting;
|
|
- Remove Unused Usings in XAIServiceBase and IXAiServiceBase;
|
|
|
|
Files:
|
|
A Models/XAiDocumentModels.cs
|
|
A Providers/XInMemoryVectorStoreCleanupService.cs
|
|
M Controllers/ChatWithDocumentsController.cs
|
|
M Providers/XAIServiceBase.cs
|
|
M Interfaces/IXAiServiceBase.cs
|
|
M Providers/XInMemoryVectorStore.cs
|
|
M Extensions/XModelsExtensions.cs
|
|
M DI/XDIHelperExtension.cs
|
|
M Configurations/XAiApiConfiguration.cs
|
|
M Startup.cs
|
|
M appsettings.Development.json
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
[2] xSaherelmWorkspace (https://git.saherelm.ir/saherelm/xSaherelmWorkspace.git) - 1405/08/03
|
|
-------------------------------------------------------------------------------
|
|
Update xAiApi Submodule (Chat With Documents) and Add ChangeLog / Plan Documents ...
|
|
|
|
- Update xAiApi Submodule Pointer to Chat With Documents (In-Memory RAG) Implementation;
|
|
- Add Documents/Docs/ChangeLogs/1405-08-03.html (ChangeLog of Pushed Commits);
|
|
- Add Documents/Docs/ChangeLogs/1405-08-03-uncommitted.html (ChangeLog of this Commit);
|
|
- Add Documents/Docs/ChangeLogs/CommitMessage-1405-08-03.txt;
|
|
- Add Documents/Markdown/plan1.md and plan1.html (Chat With Documents Implementation Plan);
|
|
|
|
Files:
|
|
M xAiApi
|
|
A Documents/Docs/ChangeLogs/1405-08-03.html
|
|
A Documents/Docs/ChangeLogs/1405-08-03-uncommitted.html
|
|
A Documents/Docs/ChangeLogs/CommitMessage-1405-08-03.txt
|
|
A Documents/Markdown/plan1.md
|
|
A Documents/Markdown/plan1.html
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
دستورات پیشنهادی
|
|
-------------------------------------------------------------------------------
|
|
# 1) xAiApi
|
|
cd xAiApi
|
|
git add -A
|
|
git commit -m "Implement Chat With Documents (In-Memory RAG) ..." -m "- Add XAiDocumentModels (IngestResult, AskRequest, Answer, AnswerChunk, Source, SessionInfo, RAGDescriptor DTOs);
|
|
- Add AskWithContextAsync and AskWithContextAsEnumerable (Context Actions) to IXAiServiceBase and XAIServiceBase;
|
|
- Add GetContextHistory and BuildContextBlock Helpers for Building RAG Chat History without Persisting;
|
|
- Rewrite ChatWithDocumentsController with Ingest, Ask, AskStream (SSE), Get Session and Delete Session Endpoints;
|
|
- Add XInMemoryVectorStoreCleanupService (BackgroundService) for Removing Expired Sessions Periodically;
|
|
- Add AddXAiChatWithDocuments DI Extension, Register Cleanup HostedService and use it in Startup;
|
|
- Add RAGDescriptor Property to XAiApiConfiguration and its Section to appsettings.Development.json;
|
|
- Add ChatWithDocuments System Prompt to Prompts in appsettings.Development.json;
|
|
- Add IsValid Extension Method for XAiDocumentAskRequest;
|
|
- Optimize XInMemoryVectorStore.Search (Query Embedding Converted once) and Refactor Formatting;
|
|
- Remove Unused Usings in XAIServiceBase and IXAiServiceBase;"
|
|
git push origin master
|
|
cd ..
|
|
|
|
# 2) xSaherelmWorkspace
|
|
git add xAiApi Documents/Docs/ChangeLogs Documents/Markdown/plan1.md Documents/Markdown/plan1.html
|
|
git commit -m "Update xAiApi Submodule (Chat With Documents) and Add ChangeLog / Plan Documents ..." -m "- Update xAiApi Submodule Pointer to Chat With Documents (In-Memory RAG) Implementation;
|
|
- Add Documents/Docs/ChangeLogs/1405-08-03.html (ChangeLog of Pushed Commits);
|
|
- Add Documents/Docs/ChangeLogs/1405-08-03-uncommitted.html (ChangeLog of this Commit);
|
|
- Add Documents/Docs/ChangeLogs/CommitMessage-1405-08-03.txt;
|
|
- Add Documents/Markdown/plan1.md and plan1.html (Chat With Documents Implementation Plan);"
|
|
git push origin master
|