langchain-js-restorable-memory-vectorstore
Version:
a restorable memory vector store for LangChainJS that works in browsers
18 lines (17 loc) • 871 B
TypeScript
import { MemoryVectorStore } from 'langchain/vectorstores/memory';
import { Embeddings } from '@langchain/core/embeddings';
/*******************************************************************************
* *
* RestorableMemoryVectorStore *
* *
*******************************************************************************/
export type Serialized = {
lc: number;
type: 'constructor';
id: string[];
kwargs: Record<string, any>;
};
/**** RestorableMemoryVectorStore ****/
export declare class RestorableMemoryVectorStore extends MemoryVectorStore {
static fromJSON(JSONString: string, Embedder: Embeddings): Promise<RestorableMemoryVectorStore>;
}