In Memory
InMemoryDocumentStore ¶
Bases: BaseDocumentStore
Simple memory document store that store document in a dictionary
Source code in libs/kotaemon/kotaemon/storages/docstores/in_memory.py
add ¶
Add document into document store
Parameters:
Name | Type | Description | Default |
---|---|---|---|
docs
|
Union[Document, List[Document]]
|
list of documents to add |
required |
ids
|
Optional[Union[List[str], str]]
|
specify the ids of documents to add or use existing doc.doc_id |
None
|
exist_ok
|
raise error when duplicate doc-id found in the docstore (default to False) |
required |
Source code in libs/kotaemon/kotaemon/storages/docstores/in_memory.py
get ¶
get_all ¶
count ¶
delete ¶
save ¶
load ¶
Load document store from path