94355af62b
- 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.
28 lines
684 B
Python
28 lines
684 B
Python
"""
|
|
ماژول RAG — پایگاه دانش CropLogic
|
|
فاز یک: 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
|
|
from .embedding import embed_single, embed_texts
|
|
from .ingest import ingest, load_sources
|
|
from .retrieve import search_with_query
|
|
from .vector_store import QdrantVectorStore
|
|
|
|
__all__ = [
|
|
"chat_rag_stream",
|
|
"chunk_text",
|
|
"chunk_texts",
|
|
"embed_single",
|
|
"embed_texts",
|
|
"get_qdrant_client",
|
|
"ingest",
|
|
"load_rag_config",
|
|
"load_sources",
|
|
"QdrantVectorStore",
|
|
"search_with_query",
|
|
]
|