Base
BaseDocumentStore ¶
Bases: ABC
A document store is in charged of storing and managing documents
Source code in libs\kotaemon\kotaemon\storages\docstores\base.py
add
abstractmethod
¶
Add document into document store
Parameters:
Name | Type | Description | Default |
---|---|---|---|
docs |
Union[Document, List[Document]]
|
Document or list of documents |
required |
ids |
Optional[Union[List[str], str]]
|
List of ids of the documents. Optional, if not set will use doc.doc_id |
None
|