Class: SimpleDocumentStore
Extends
KVDocumentStore
Constructors
new SimpleDocumentStore()
new SimpleDocumentStore(
kvStore
?,namespace
?):SimpleDocumentStore
Parameters
• kvStore?: SimpleKVStore
• namespace?: string
Returns
Overrides
KVDocumentStore.constructor
Defined in
packages/llamaindex/src/storage/docStore/SimpleDocumentStore.ts:17
Methods
addDocuments()
addDocuments(
docs
,allowUpdate
):Promise
<void
>
Parameters
• allowUpdate: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.addDocuments
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:40
deleteDocument()
deleteDocument(
docId
,raiseError
,removeRefDocNode
):Promise
<void
>
Parameters
• docId: string
• raiseError: boolean
= true
• removeRefDocNode: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.deleteDocument
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:143
deleteRefDoc()
deleteRefDoc(
refDocId
,raiseError
):Promise
<void
>
Parameters
• refDocId: string
• raiseError: boolean
= true
Returns
Promise
<void
>
Inherited from
KVDocumentStore.deleteRefDoc
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:160
docs()
Returns
Promise
<Record
<string
, BaseNode
<Metadata
>>>