embeddings-js
Version:
A NodeJS RAG framework to easily work with LLMs and custom datasets
19 lines (18 loc) • 462 B
TypeScript
import { BaseLoader } from '../interfaces/base-loader.js';
export declare class TextLoader extends BaseLoader<{
type: 'TextLoader';
}> {
private readonly text;
constructor({ text }: {
text: string;
});
getChunks(): AsyncGenerator<{
pageContent: string;
contentHash: string;
metadata: {
type: "TextLoader";
source: string;
textId: string;
};
}, void, unknown>;
}