UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

14 lines 612 B
import { Collection } from "mongodb"; export interface ExtractSampleDocumentsParams { collection: Collection; /** Number of documents to include in the sample. */ limit?: number; } export declare const MUST_HAVE_AT_LEAST_ONE_EXAMPLE_DOCUMENT_ERROR = "Must have at least one example document"; /** Extract deterministic sample of documents for a given collection. */ export declare function extractDeterministicSampleOfDocuments({ collection, limit, }: ExtractSampleDocumentsParams): Promise<import("bson").Document[]>; //# sourceMappingURL=extractDeterministicSampleOfDocuments.d.ts.map