Class: SimpleIndexStore
Extends
KVIndexStore
Constructors
new SimpleIndexStore()
new SimpleIndexStore(
kvStore
?):SimpleIndexStore
Parameters
• kvStore?: BaseInMemoryKVStore
Returns
Overrides
KVIndexStore.constructor
Source
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:14
Properties
kvStore
private
kvStore:BaseInMemoryKVStore
Source
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:12
Methods
addIndexStruct()
addIndexStruct(
indexStruct
):Promise
<void
>
Parameters
• indexStruct: IndexStruct
Returns
Promise
<void
>
Inherited from
KVIndexStore.addIndexStruct
Source
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:18
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Source
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:24
getIndexStruct()
getIndexStruct(
structId
?):Promise
<undefined
|IndexStruct
>
Parameters
• structId?: string
Returns
Promise
<undefined
| IndexStruct
>
Inherited from
KVIndexStore.getIndexStruct
Source
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:28
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Source
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:44
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
= DEFAULT_PERSIST_DIR
Returns
Promise
<void
>