UNPKG

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>

18 lines (17 loc) 739 B
import type { BaseDocumentStore } from "@llamaindex/core/storage/doc-store"; import { BaseIndexStore } from "@llamaindex/core/storage/index-store"; import type { BaseVectorStore, VectorStoreByType } from "@llamaindex/core/vector-store"; export interface StorageContext { docStore: BaseDocumentStore; indexStore: BaseIndexStore; vectorStores: VectorStoreByType; } type BuilderParams = { docStore: BaseDocumentStore; indexStore: BaseIndexStore; vectorStore: BaseVectorStore; vectorStores: VectorStoreByType; persistDir: string; }; export declare function storageContextFromDefaults({ docStore, indexStore, vectorStore, vectorStores, persistDir, }: Partial<BuilderParams>): Promise<StorageContext>; export {};