/** * QR Video RAG - Embedder Adapters * * Self-contained embedder implementations for the QR Video RAG system */ import { Embedder } from '../types'; /** * Simple embedder using text hashing * * Generates deterministic embeddings based on text content for the QR Video RAG system. * This embedder is completely self-contained and doesn't require any external APIs. * * @param dimension Embedding dimension (default: 384) * @returns Embedder implementation * * @example * ```typescript * const embedder = createSimpleEmbedder(384); * const embedding = await embedder.embed("Hello world"); * console.log(embedding.length); // 384 * ``` */ export declare function createSimpleEmbedder(dimension?: number): Embedder; /** * Custom embedder wrapper * * Allows you to provide your own embedding function * * @param embedFn Function that generates embeddings * @param dimension Optional embedding dimension * @returns Embedder implementation * * @example * ```typescript * const embedder = createCustomEmbedder( * async (text) => { * // Your custom embedding logic * return myModel.encode(text); * }, * 512 * ); * ``` */ export declare function createCustomEmbedder(embedFn: (text: string) => Promise, dimension?: number): Embedder; //# sourceMappingURL=embedders.d.ts.map