/** * Embedding Provider 健康检查 * * 检测 embedding provider 是否可用: * - 读取配置(embedding.provider / embedding.model / embedding.baseUrl) * - 尝试连接并生成一个测试 embedding * - 不可用时抛出友好错误 + 修复引导 */ import type { EmbeddingBackendConfig } from '../config/types.js'; export declare class EmbeddingNotConfiguredError extends Error { constructor(); } export declare class EmbeddingUnreachableError extends Error { constructor(baseUrl: string); } export declare class EmbeddingModelNotLoadedError extends Error { constructor(model: string); } export interface HealthCheckResult { ok: boolean; provider: string; model: string; baseUrl: string; dimensions?: number; error?: string; } /** * Read embedding config from kivo.config.json in the given directory. * Returns null if no embedding config is found. */ export declare function readEmbeddingConfig(dir?: string): EmbeddingBackendConfig | null; /** * Check if the embedding provider is healthy. * Throws a descriptive error if not. */ export declare function checkEmbeddingHealth(dir?: string): Promise; //# sourceMappingURL=health-check.d.ts.map