/** * OllamaEmbeddingProvider — 调用本地 Ollama API 进行向量化 * 默认端点:http://localhost:11434/api/embed * 默认模型:bge-m3:latest(1024 维) */ import type { EmbeddingProvider } from './embedding-provider.js'; export interface OllamaEmbeddingConfig { baseUrl?: string; model?: string; maxRetries?: number; } export declare class OllamaEmbeddingProvider implements EmbeddingProvider { private readonly baseUrl; private readonly model; private readonly maxRetries; private dims; constructor(config?: OllamaEmbeddingConfig); embed(text: string): Promise; embedBatch(texts: string[]): Promise; dimensions(): number; modelId(): string; private requestWithRetry; private doRequest; /** * Check if Ollama is reachable and has the specified model available. * Non-blocking check with 3s timeout. */ static isAvailable(baseUrl?: string, model?: string): Promise; } //# sourceMappingURL=ollama-embedding.d.ts.map