Add LLM configuration and update URL routing

- Introduced LLM configuration in rag_config.yaml and corresponding LLMConfig class in config.py.
- Updated load_rag_config function to parse LLM settings from the configuration file.
- Added new API route for RAG in urls.py to facilitate access to the chat model.
- Modified QdrantVectorStore to use query_points method for improved functionality.
This commit is contained in:
2026-02-27 19:44:49 +03:30
parent 197f70ee12
commit 94355af62b
8 changed files with 187 additions and 6 deletions
+2
View File
@@ -3,6 +3,7 @@
فاز یک: Qdrant به‌عنوان vector store
"""
from .chat import chat_rag_stream
from .chunker import chunk_text, chunk_texts
from .client import get_qdrant_client
from .config import load_rag_config
@@ -12,6 +13,7 @@ from .retrieve import search_with_query
from .vector_store import QdrantVectorStore
__all__ = [
"chat_rag_stream",
"chunk_text",
"chunk_texts",
"embed_single",