Refactor user data handling and enhance chat functionality
- 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.
This commit is contained in:
@@ -10,6 +10,7 @@ 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__ = [
|
||||
@@ -22,6 +23,8 @@ __all__ = [
|
||||
"ingest",
|
||||
"load_rag_config",
|
||||
"load_sources",
|
||||
"load_user_sources",
|
||||
"build_user_soil_text",
|
||||
"QdrantVectorStore",
|
||||
"search_with_query",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user