Przejdź do głównej zawartości

Class: SimpleIndexStore

Extends

  • KVIndexStore

Constructors

new SimpleIndexStore()

new SimpleIndexStore(kvStore?): SimpleIndexStore

Parameters

kvStore?: BaseInMemoryKVStore

Returns

SimpleIndexStore

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>

Overrides

KVIndexStore.persist

Source

packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:35


toDict()

toDict(): Record<string, unknown>

Returns

Record<string, unknown>

Source

packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:44


fromDict()

static fromDict(saveDict): SimpleIndexStore

Parameters

saveDict: DataType

Returns

SimpleIndexStore

Source

packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:39


fromPersistDir()

static fromPersistDir(persistDir): Promise <SimpleIndexStore>

Parameters

persistDir: string= DEFAULT_PERSIST_DIR

Returns

Promise <SimpleIndexStore>

Source

packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:20


fromPersistPath()

static fromPersistPath(persistPath): Promise <SimpleIndexStore>

Parameters

persistPath: string

Returns

Promise <SimpleIndexStore>

Source

packages/llamaindex/src/storage/indexStore/SimpleIndexStore.ts:30