@langchain/community
Version:
Third-party integrations for LangChain.js
1 lines • 1.43 kB
Source Map (JSON)
{"version":3,"file":"college_confidential.d.cts","names":["Document","CheerioWebBaseLoader","CollegeConfidentialLoader","Promise"],"sources":["../../../src/document_loaders/web/college_confidential.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { CheerioWebBaseLoader } from \"./cheerio.js\";\n/**\n * A document loader specifically designed for loading documents from the\n * College Confidential website. It extends the CheerioWebBaseLoader.\n * @example\n * ```typescript\n * const loader = new CollegeConfidentialLoader(\"https:exampleurl.com\");\n * const docs = await loader.load();\n * console.log({ docs });\n * ```\n */\nexport declare class CollegeConfidentialLoader extends CheerioWebBaseLoader {\n constructor(webPath: string);\n /**\n * Overrides the base load() method to extract the text content from the\n * loaded document using a specific selector for the College Confidential\n * website. It creates a Document instance with the extracted text and\n * metadata, and returns an array containing the Document instance.\n * @returns An array containing a Document instance with the extracted text and metadata from the loaded College Confidential web document.\n */\n load(): Promise<Document[]>;\n}\n//# sourceMappingURL=college_confidential.d.ts.map"],"mappings":";;;;;;;AAYA;;;;AAA2E;;;;cAAtDE,yBAAAA,SAAkCD,oBAAAA;;;;;;;;;UAS3CE,QAAQH"}