Kizuki
    Preparing search index...

    Function makeEmbedder

    • A function that turns texts into numbers for meaning search, using the configured model.

      Parameters

      • embed: {
            apiKeyEnv?: string;
            baseURL: string;
            model: string;
            provider: "openai-compatible" | "gateway";
        }
        • OptionalapiKeyEnv?: string
        • baseURL: string
        • model: string
        • provider: "openai-compatible" | "gateway"

          How Kizuki talks to a model server. openai-compatible: any server that speaks the OpenAI format, such as Ollama and MLX. gateway: Vercel AI Gateway, through the AI SDK's own gateway provider.

      • env: Env = process.env

      Returns Embedder