/** * @license * Copyright 2025 OSAgent OC * SPDX-License-Identifier: Apache-2.0 */ import type { EmbeddingProvider, OllamaEmbeddingConfig } from './types.js'; /** * Ollama Embedding Provider * * Primary embedding provider using local Ollama instance. * Uses nomic-embed-text model (768 dimensions) by default. * * @see https://ollama.com/blog/embedding-models */ export declare class OllamaEmbeddingProvider implements EmbeddingProvider { readonly name = "ollama"; private readonly baseUrl; private readonly model; private readonly timeoutMs; private readonly dimensions; constructor(config?: OllamaEmbeddingConfig); getDimensions(): number; /** * Check if Ollama is running and the model is available */ isAvailable(): Promise; /** * Generate embedding for a single text */ embed(text: string): Promise; /** * Generate embeddings for multiple texts (batch operation) */ embedBatch(texts: string[]): Promise; /** * Pull the embedding model if not available */ pullModel(): Promise; }