Class: SimpleIndexStore
Extends
KVIndexStore
Constructors
new SimpleIndexStore()
new SimpleIndexStore(
kvStore
?):SimpleIndexStore
Parameters
• kvStore?: BaseInMemoryKVStore
Returns
Overrides
KVIndexStore.constructor
Defined in
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:14
Methods
addIndexStruct()
addIndexStruct(
indexStruct
):Promise
<void
>
Parameters
• indexStruct: IndexStruct
Returns
Promise
<void
>
Inherited from
KVIndexStore.addIndexStruct
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:18
deleteIndexStruct()
deleteIndexStruct(
key
):Promise
<void
>
Parameters
• key: string
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Defined in
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
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:28
getIndexStructs()
getIndexStructs():
Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Defined in
packages/llamaindex/src/storage/indexStore/KVIndexStore.ts:44
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
= DEFAULT_PERSIST_DIR
Returns
Promise
<void
>
Overrides
KVIndexStore.persist
Defined in
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:35
toDict()
toDict():
Record
<string
,unknown
>
Returns
Record
<string
, unknown
>
Defined in
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:44
fromDict()
static
fromDict(saveDict
):SimpleIndexStore
Parameters
• saveDict: DataType
Returns
Defined in
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:39
fromPersistDir()
static
fromPersistDir(persistDir
):Promise
<SimpleIndexStore
>
Parameters
• persistDir: string
= DEFAULT_PERSIST_DIR
Returns
Promise
<SimpleIndexStore
>
Defined in
packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:20
fromPersistPath()
static
fromPersistPath(persistPath
):Promise
<SimpleIndexStore
>
Parameters
• persistPath: string
Returns
Promise
<SimpleIndexStore
>