llamaindex
Version:
<p align="center"> <img height="100" width="100" alt="LlamaIndex logo" src="https://ts.llamaindex.ai/square.svg" /> </p> <h1 align="center">LlamaIndex.TS</h1> <h3 align="center"> Data framework for your LLM application. </h3>
12 lines (11 loc) • 513 B
TypeScript
import type { BaseNode, TransformComponent } from "@llamaindex/core/schema";
import { type BaseKVStore } from "@llamaindex/core/storage/kv-store";
export declare function getTransformationHash(nodes: BaseNode[], transform: TransformComponent): string;
export declare class IngestionCache {
collection: string;
cache: BaseKVStore;
nodesKey: string;
constructor(collection?: string);
put(hash: string, nodes: BaseNode[]): Promise<void>;
get(hash: string): Promise<BaseNode[] | undefined>;
}