from nbdev.showdoc import *
Store
Provides storage for documents
BaseDocumentStore
BaseDocumentStore (documents:Dict[str,nanorag.base.Document]={})
Base class for document storage
DocumentStore
DocumentStore (documents:Union[List[nanorag.base.Document],nanorag.base. Document]=[])
Key value type document store that store documents by their id in a dictionary. Also checks for duplicates via hashing and doesn’t admit them. Compatible with both nodes and documents.
PostgresDocumentStore
PostgresDocumentStore (db_uri, table_name='documents')
Base class for document storage