/** * Embedding providers — pluggable, zero-config auto-detection. * * AIDIMAG_EMBEDDINGS = auto (default) | openai | ollama | bedrock | off * * auto: OpenAI if OPENAI_API_KEY is set, else Ollama if reachable, else off * (search degrades gracefully to FTS-only — aidimag never *requires* embeddings). * * Bedrock is explicit-only (AIDIMAG_EMBEDDINGS=bedrock, never auto-detected — * probing would make a billable AWS call). Credentials come from the standard * AWS chain (env vars, ~/.aws profiles, SSO, instance roles). * AIDIMAG_BEDROCK_EMBED_MODEL (default amazon.titan-embed-text-v2:0, dim 1024) * AIDIMAG_BEDROCK_REGION (default: AWS SDK resolution) */ export interface EmbeddingProvider { readonly name: string; readonly model: string; readonly dim: number; embed(texts: string[]): Promise; } /** Resolve the configured/auto-detected provider (cached per process). */ export declare function getEmbeddingProvider(): Promise; /** Reset the cached provider so the next call re-detects (e.g. after Ollama setup). */ export declare function resetEmbeddingProviderCache(): void;