module documentation
Undocumented
Function | initialize |
Initializes the vector store from the database, or creates it if not found or fails. |
Function | vectorize |
Create a vector store from all documents then save it in the database. |
Function | _context |
Builds a context string from query results for prompt construction. |
Function | _metadata |
Builds a context string from query results for prompt construction. |
Create a vector store from all documents then save it in the database. Raises: RuntimeError: If vectorization or saving fails.
Builds a context string from query results for prompt construction. Args: results (list[dict[str, any]]): list of query result dictionaries. Returns: str: Formatted context string.