Class: abstract
BaseDocumentStore
Constructors
new BaseDocumentStore()
new BaseDocumentStore():
BaseDocumentStore
Returns
Properties
serializer
serializer:
Serializer
<any
> =jsonSerializer
Defined in
packages/llamaindex/src/storage/docStore/types.ts:16
Methods
addDocuments()
abstract
addDocuments(docs
,allowUpdate
):Promise
<void
>
Parameters
• allowUpdate: boolean
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:26
deleteDocument()
abstract
deleteDocument(docId
,raiseError
):Promise
<void
>
Parameters
• docId: string
• raiseError: boolean
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:33
deleteRefDoc()
abstract
deleteRefDoc(refDocId
,raiseError
):Promise
<void
>
Parameters
• refDocId: string
• raiseError: boolean
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:49
docs()
abstract
docs():Promise
<Record
<string
,BaseNode
<Metadata
>>>
Returns
Promise
<Record
<string
, BaseNode
<Metadata
>>>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:24
documentExists()
abstract
documentExists(docId
):Promise
<boolean
>
Parameters
• docId: string
Returns
Promise
<boolean
>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:35
getAllDocumentHashes()
abstract
getAllDocumentHashes():Promise
<Record
<string
,string
>>
Returns
Promise
<Record
<string
, string
>>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:42
getAllRefDocInfo()
abstract
getAllRefDocInfo():Promise
<undefined
|Record
<string
,RefDocInfo
>>
Returns
Promise
<undefined
| Record
<string
, RefDocInfo
>>
Defined in
packages/llamaindex/src/storage/docStore/types.ts:45
getDocument()
abstract
getDocument(docId
,raiseError
):Promise
<undefined
|BaseNode
<Metadata
>>
Parameters
• docId: string
• raiseError: boolean
Returns
Promise
<undefined
| BaseNode
<Metadata
>>