Logo
Classes

IngestionCache

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:49

Constructors

Constructor

new IngestionCache(collection?): IngestionCache

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:54

Parameters

collection?

string

Returns

IngestionCache

Properties

collection

collection: string = "llama_cache"

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:50


cache

cache: BaseKVStore

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:51


nodesKey

nodesKey: string = "nodes"

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:52

Methods

put()

put(hash, nodes): Promise<void>

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:61

Parameters

hash

string

nodes

BaseNode<Metadata>[]

Returns

Promise<void>


get()

get(hash): Promise<undefined | BaseNode<Metadata>[]>

Defined in: packages/llamaindex/src/ingestion/IngestionCache.ts:68

Parameters

hash

string

Returns

Promise<undefined | BaseNode<Metadata>[]>

On this page