UNPKG

embeddings-js

Version:

A NodeJS RAG framework to easily work with LLMs and custom datasets

17 lines (16 loc) 778 B
import { BaseCache } from '../interfaces/base-cache.js'; export declare class MemoryCache implements BaseCache { private loaderList; private loaderCustomValues; init(): Promise<void>; addLoader(loaderId: string, chunkCount: number): Promise<void>; getLoader(loaderId: string): Promise<{ chunkCount: number; }>; hasLoader(loaderId: string): Promise<boolean>; loaderCustomSet<T extends Record<string, unknown>>(loaderCombinedId: string, value: T): Promise<void>; loaderCustomGet<T extends Record<string, unknown>>(loaderCombinedId: string): Promise<T>; loaderCustomHas(loaderCombinedId: string): Promise<boolean>; deleteLoader(loaderId: string): Promise<void>; loaderCustomDelete(loaderCombinedId: string): Promise<void>; }