UNPKG

embeddings-js

Version:

A NodeJS RAG framework to easily work with LLMs and custom datasets

23 lines (22 loc) 557 B
import { BaseLoader } from '../interfaces/base-loader.js'; export declare class WebLoader extends BaseLoader<{ type: 'WebLoader'; }> { private readonly debug; private readonly contentOrUrl; private readonly isUrl; constructor({ url }: { url: string; }); constructor({ content }: { content: string; }); getChunks(): AsyncGenerator<{ pageContent: string; contentHash: string; metadata: { type: "WebLoader"; source: string; }; }, void, unknown>; }