2c42ebe01c
- Removed deprecated user_info files and paths from configuration. - Added user soil data integration in chat context to improve response accuracy. - Updated build_rag_context and chat_rag_stream functions to include sensor_uuid for user-specific data retrieval. - Enhanced load_sources function to load user data from the database. - Implemented filtering in search_with_query and QdrantVectorStore to isolate user data based on sensor_uuid. - Introduced Celery Beat schedule for periodic user data ingestion.
31 lines
800 B
Python
31 lines
800 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 .user_data import build_user_soil_text, load_user_sources
|
|
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",
|
|
"load_user_sources",
|
|
"build_user_soil_text",
|
|
"QdrantVectorStore",
|
|
"search_with_query",
|
|
]
|