Utility functions for accessing MongoDB data in Weam AI repositories
initialization()
with required arguments, then invoke the respective _fetch_...
method.
_fetch_company_data
_id
.
initialization()
method with:
company_id: str
collection_name: str
_fetch_chat_session_model_data
_id
.
company_id: str
collection_name: str
_fetch_company_model_data
api_key_id: str
collection_name: str
_fetch_company_model_data
api_key_id: str
collection_name: str
_fetch_pinecone_company_data
api_key_id: str
collection_name: str
**kwargs
: Optional custom query filters**kwargs
in production._fetch_file_model_data
file_id: str
collection_name: str
_fetch_chat_member_model_data
chat_session_id: str
collection_name: str
_fetch_...
functions follow the same convention: call initialization()
first, then call the method.