ComfyUI Node

Ollama Embed

Generate text embeddings using an Ollama embedding model. Returns a JSON array of embedding vectors.

By ckinpdx·Created 4 months ago·Updated 4 months ago· 1
Ollama Embed
    • embeddings_json
    urlhttp://127.0.0.1:11434
    model
    input
    split_linesfalse
    truncatetrue
    CategoryOllama

    Inputs (5)

    NameTypeDefaultDescription
    urlSTRINGhttp://127.0.0.1:11434URL of the Ollama server.
    modelCOMBOEmbedding model to use (e.g. nomic-embed-text, mxbai-embed-large).
    inputSTRINGText to embed. For multiple inputs, separate with a newline and enable split_lines.
    split_linesBOOLEANfalseIf enabled, splits input on newlines and embeds each line separately (batch embedding).
    truncateBOOLEANtrueTruncate input to the model's context length if it exceeds it.

    Outputs (1)

    NameTypeDescription
    embeddings_jsonSTRING