@lg-tools/crawler
Version:
Crawler for MongoDB documentation and other sites
13 lines • 438 B
TypeScript
import { Document } from '@langchain/core/documents';
interface LoadedPageContents {
doc: Document;
title: string;
links: Array<string>;
}
/**
* Load the contents of a webpage using LangChain's CheerioWebBaseLoader
* and return the document, title, and links found on the page.
*/
export declare const loadPageContents: (url: string) => Promise<LoadedPageContents>;
export {};
//# sourceMappingURL=loadPageContents.d.ts.map