agsamantha/node_modules/@langchain/community/dist/stores/doc/base.d.ts
2024-10-02 15:15:21 -05:00

9 lines
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>;
}