[search.vector].worker_countlowers concurrent embed and upsert workers.[search.vector.embedder].timeoutraises the Ollama HTTP request timeout.
worker_count defaults to 5, and the Ollama timeout defaults to 30s.
Prerequisites
- KiwiFS with the vector tuning options from kiwifs/kiwifs#20.
- An Ollama server reachable from the KiwiFS process.
- An embedding model pulled into Ollama.
Configure KiwiFS
Create or update.kiwi/config.toml in your knowledge root.
- Ollama generates embeddings on the same machine.
sqlite-vecstores vectors inside the KiwiFS search database.- No embedding API key is required.
Use Go duration strings for
timeout, such as 60s, 120s, or 3m.Choose the Ollama URL
The correctbase_url depends on where KiwiFS runs.
KiwiFS and Ollama on the same host
KiwiFS and Ollama on the same host
Use the local Ollama URL.
KiwiFS in Docker, Ollama on the host
KiwiFS in Docker, Ollama on the host
On Linux, add a host gateway entry to the KiwiFS container and use Then configure KiwiFS:
host.docker.internal.KiwiFS and Ollama in the same Compose network
KiwiFS and Ollama in the same Compose network
Use the Ollama service name as the hostname.
Index existing files
After enabling vector search, rebuild the search indexes once.worker_count = 1 for the first reindex.
Raise it later only if CPU, memory, and Ollama latency remain stable.
When to tune the values
| Symptom | Change |
|---|---|
| Ollama requests time out during reindexing | Increase timeout, for example from 120s to 3m |
| CPU stays saturated or the VPS becomes unresponsive | Lower worker_count to 1 |
| Reindexing is stable but too slow | Try worker_count = 2 |
| Vector search works, but new writes appear in semantic search slowly | Keep worker_count low and run kiwifs reindex during low-traffic periods |
Troubleshooting
Check Ollama from the KiwiFS machine
base_url.
Confirm the model exists
nomic-embed-text is missing, pull it:
Recover from a failed first reindex
Keep the same config, raisetimeout, and run reindex again.
The vector index is derivative data, so KiwiFS can rebuild it from the markdown files.