langchain
Version:
Typescript bindings for langchain
10 lines (9 loc) • 316 B
TypeScript
import { Document } from "@langchain/core/documents";
/**
* Abstract class for a document store. All document stores should extend
* this class.
*/
export declare abstract class Docstore {
abstract search(search: string): Promise<Document>;
abstract add(texts: Record<string, Document>): Promise<void>;
}