/** * Author: Srilal S. Siriwardhane * Email: SrilalS@99x.io **/ import { VectorDocument } from "../types/VectorDocument.js"; import { Document } from "../types/Document.js"; import { AvailableModels } from "../types/AvailableModels.js"; /** * AbstractEmbedderEngine * This Abstract class is responsible for defining the abstract methods that * should be implemented by the EmbedderEngine. */ export declare abstract class AbstractEmbedderEngine { abstract availableModels: AvailableModels; /** * embedTexts * This method is responsible for embedding texts using the transformerJS. * @param texts string[] * @returns Promise */ abstract embedTexts(texts: string[]): Promise; /** * embedDocuments * This method is responsible for embedding documents using the transformerJS. * @param documents Document[] * @returns Promise */ abstract embedDocuments(documents: Document[]): Promise; }