UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

26 lines 790 B
import { DataSource } from "../dataSources"; import { PageStore, Page } from "./Page"; export interface PageConcurrencyOptions { /** Number of data sources to process concurrently. */ processDataSources?: number; } /** Fetches pages from data sources and stores those that have changed in the data store. */ export declare const updatePages: ({ sources, pageStore, concurrencyOptions, }: { sources: DataSource[]; pageStore: PageStore; concurrencyOptions?: PageConcurrencyOptions | undefined; }) => Promise<void>; /** Persists pages that have changed. */ export declare const persistPages: ({ store, pages, sourceName, }: { store: PageStore; pages: Page[]; sourceName: string; }) => Promise<void>; //# sourceMappingURL=updatePages.d.ts.map