Overview
Text namespaces need an embedding provider to turn documents and search queries into vectors. Moorcheh On-Prem supports three providers, configured once and stored in~/.moorcheh/config.json.
Vector namespaces (you upload precomputed vectors) do not use these providers for ingest or vector search. You only need a provider if you use text upload or text search.
Configure once
moorcheh up runs the same interactive wizard before starting Docker.
Saved settings:
Re-run setup:
After you change settings
Configuration file
Path (all platforms):C:\Users\<you>\.moorcheh\config.json.
moorcheh configure and moorcheh up write this file. Every moorcheh up reads it to set EMBEDDING_* and LLM_* environment variables on the server container. Your namespaces and items stay in ~/.moorcheh/data/ — that folder is separate from config. Changing config does not migrate or re-embed existing text data automatically.
Schema
Settings live under theembedding object:
Ollama example (no
api_key):
base_url in the file is a template default; moorcheh up still passes the runtime URL (host.docker.internal vs http://ollama:11434) into the container based on host vs bundled Ollama.
Editing and security
- Prefer
moorcheh configure --forceto change provider or model safely (with a warning if data already exists). - You may edit
config.jsonby hand to tweakbase_urlor rotate an API key, then runmoorcheh downandmoorcheh upso the running container picks up changes. - On Linux and macOS, the file is created with mode
600(owner read/write only). - Do not commit
config.jsonto git or share it in tickets — it can contain provider API keys. - Back up
~/.moorcheh/datafor your indexes; treatconfig.jsonas secrets if it includesapi_key.
Supported models and dimensions
Use the same model for all text namespaces on one server. When creating a vector namespace, setvector_dimension to match your embedding model output (text namespaces infer dimension from the first embed).
Ollama (local)
Moorcheh pulls the selected model automatically on
moorcheh up when Ollama is reachable (host or bundled). You do not need a separate ollama pull unless you skipped pull with --skip-ollama-model-pull.
OpenAI
API key is stored in
config.json (file mode 600 on Unix). The server calls OpenAI from inside the container; outbound HTTPS is required.
Cohere
API key required. Base URL default:
https://api.cohere.com/v2.
What moorcheh up does by provider
Override flags:
--embedding-provider, --embedding-model, --embedding-api-key, --bundled-ollama, --use-host-ollama. See moorcheh up.
Health check
GET /health and moorcheh status return:
Related
- Prerequisites — Python, Docker; Ollama optional
- moorcheh configure
- moorcheh up
- Health