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:20
Properties
serializer
serializer:
Serializer
<any
>
Inherited from
KVDocumentStore.serializer
Defined in
packages/core/storage/doc-store/dist/index.d.ts:23
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:44
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:145
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:162
docs()
Returns
Promise
<Record
<string
, BaseNode
<Metadata
>>>
Inherited from
KVDocumentStore.docs
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:30
documentExists()
documentExists(
docId
):Promise
<boolean
>
Parameters
• docId: string
Returns
Promise
<boolean
>
Inherited from
KVDocumentStore.documentExists
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:121
getAllDocumentHashes()
getAllDocumentHashes():
Promise
<Record
<string
,string
>>
Returns
Promise
<Record
<string
, string
>>
Inherited from
KVDocumentStore.getAllDocumentHashes
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:193
getAllRefDocInfo()
getAllRefDocInfo():
Promise
<undefined
|Record
<string
,RefDocInfo
>>
Returns
Promise
<undefined
| Record
<string
, RefDocInfo
>>
Inherited from
KVDocumentStore.getAllRefDocInfo
Defined in
packages/llamaindex/src/storage/docStore/KVDocumentStore.ts:109
getDocument()
getDocument(
docId
,raiseError
):Promise
<undefined
|BaseNode
<Metadata
>>