Skip to content
Docs menu

Run a Jina embedding model as venom-embed

Serve a Jina embedding model on llama.cpp or vLLM as the orchestrator's venom-embed upstream, which Jina models fit, which do not, and the non-commercial licence that comes with them.

View .md

venom-embed is the alias behind /v1/embeddings and the agent's semantic code search. By default it points at Ollama's qwen3-embedding:0.6b. You can point it at a Jina embedding model instead. The agent adds the model's own query and document prefixes when it recognises the served model id (see Prefixes).

Licence

Read this first. The model cards of the Jina v5 text models and the Jina code embeddings state CC BY-NC 4.0 (non-commercial); the card of the v4 models says the Qwen Research License. The v5 cards add that commercial use needs Jina's permission. So:

  • run them on your own machine for non-commercial use, or get Jina's permission first;
  • do not offer them on a public mesh, or to paying customers, without that permission.

Petawork does not download or ship any of these models. The licence is between you and Jina; check the card of the exact model you pull.

Which models fit

Model Fits How
jina-embeddings-v5-text-small, -nano yes embeddings, on llama.cpp (GGUF) or vLLM
jina-code-embeddings-0.5b, -1.5b yes embeddings, on llama.cpp (GGUF) or vLLM
ReaderLM-v2, jina-vlm, jina-ocr-v1 as chat models /v1/chat/completions on vLLM or SGLang, not as venom-embed
jina-reranker-v3, v3.5 no listwise: they score a whole list of documents in one pass and need a runtime for that
jina-colbert-v2 no multi-vector: one vector per token, which /v1/embeddings has no shape for
jina-clip-v2, jina-embeddings-v5-omni no image or multimodal input; there is no OpenAI-compatible route for it here

Configure it

Start the server, then add an upstream and point the alias at it. With llama.cpp (embedding mode, a GGUF you downloaded yourself):

llama-server -m jina-embeddings-v5-text-small-retrieval.gguf --embeddings --port 8081

For vLLM, serve the model in its embedding (pooling) mode; the flag name depends on your vLLM version, see its pooling-models page.

upstreams:
  - name: jina
    kind: llamacpp            # or vllm
    base_url: http://localhost:8081/v1
    max_inflight: 2

routes:
  - alias: venom-embed
    strategy: fallback
    targets:
      - {upstream: jina, model: "jina-embeddings-v5-text-small-retrieval"}

Keep the alias local-only: the harness refuses venom-embed if it lists a cloud target. The model must be the id the server reports on /v1/models.

Prefixes

Jina's models were trained with prefixes, and retrieval is worse without them. The harness matches the served id (any case, with or without a publisher prefix, -GGUF, a task suffix such as -retrieval, or a quant tag):

Id contains Query Document
jina-embeddings-v5 Query: <text> Document: <text>
jina-code-embeddings Find the most relevant code snippet given the following query: newline <text> Candidate code snippet: newline <text>

These are the prompts in each model's config_sentence_transformers.json (the code models' nl2code pair). If you call /v1/embeddings yourself, add them yourself. Any other model id gets the text unchanged.

The semantic index re-embeds only when the model id or dimension changes. If you already built an index with one of these models before the prefixes were added, delete .venom/index in the repository and let it rebuild.