A chat model and an embedding model served on your own machine work with no
key at all. This page covers both, for the docker compose up stack. For the
hand-run Python stack see deploy/local/README.md.
ollama pull qwen2.5:3bAdd it under Agents › Models › New model: provider Ollama, model
string qwen2.5:3b.
The engine's container reaches Ollama on your machine at
host.docker.internal:11434. Ollama has to listen on an address containers
can reach, not only on 127.0.0.1. Either:
-
start Ollama with
OLLAMA_HOST=0.0.0.0, or -
on Linux with Ollama in Docker, publish it on the Docker bridge address:
docker run -d --name ollama -p 172.17.0.1:11434:11434 -v ollama:/root/.ollama ollama/ollama docker exec ollama ollama pull qwen2.5:3b
If the portal cannot reach a local model, this is the usual cause.
For vLLM, LM Studio or a hosted catalog, choose provider OpenAI and fill in Base URL.
If a server on your machine or network asks for a key of its own, put the key
in an environment variable and name that variable in the model's
extra_config as api_key_env. Without it the engine sends a placeholder key
and the server answers 401.
Documents are made searchable by an embedding model. Without a Gemini key, use one on your machine:
ollama pull nomic-embed-text
echo "EMBED_MODEL=nomic-embed-text" >> .env
docker compose up -dAny OpenAI-compatible server works (EMBED_BASE_URL, EMBED_MODEL). The
Knowledge screen names the model in use, or says what to set when there is
none.
Choose the model before uploading. Changing it later means re-embedding every document:
python -m scripts.reembed --target kb --applyThe screen marks a knowledge base that needs it.
Attach a knowledge base on an agent's Tools & knowledge tab and the agent
gets a search_knowledge tool. See
Add documents to a knowledge base.
A small model follows short instructions and calls tools most of the time. Use a larger one for anything real.
A small chat model does not always call search_knowledge. In our run a 1.5B
model answered without searching, and a 3B model searched and answered from
the document.