Takes in a list of document chunks and inserts them into the database. Return a list of document ids.
(self, chunks: Dict[str, List[DocumentChunk]])
| 43 | |
| 44 | @abstractmethod |
| 45 | async def _upsert(self, chunks: Dict[str, List[DocumentChunk]]) -> List[str]: |
| 46 | """ |
| 47 | Takes in a list of document chunks and inserts them into the database. |
| 48 | Return a list of document ids. |
| 49 | """ |
| 50 | |
| 51 | raise NotImplementedError |
| 52 | |
| 53 | async def query(self, queries: List[Query]) -> List[QueryResult]: |
| 54 | """ |
no outgoing calls