-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
Jean-Baptiste THERY edited this page Jul 13, 2026
·
1 revision
Ragmir reads .ragmir/config.json from the current directory or an ancestor. Start with rgr setup and edit JSON only for a concrete need.
{
"sources": ["docs/**/*.md", "src", "!docs/archive/**"],
"privacyProfile": "private",
"retrievalProfile": "balanced",
"embeddingProvider": "local-hash"
}| Field | Default | Why change it |
|---|---|---|
sources |
[] |
Add paths, globs, and ! exclusions |
privacyProfile |
private |
Use strict for the strongest local floor |
retrievalProfile |
balanced |
Choose fast, quality, or an explicit custom budget |
embeddingProvider |
local-hash |
Select transformers only after an explicit preload |
topK |
8 |
Change the default passage count |
mcpMaxOutputBytes |
32768 |
Bound each MCP retrieval result |
chunkSize / chunkOverlap
|
1200 / 200
|
Tune chunking, then rebuild |
includeExtensions |
[] |
Add safe custom text extensions |
Changing an embedding provider, model, or chunking field requires rgr ingest --rebuild.
-
privatedisables remote model loading during normal retrieval and keeps redaction enabled. -
strictalso bounds MCP output and disables external extractors. -
trustedandcustomare explicit operator choices for different controls.
The privacy profile is a safety floor, separate from retrieval quality.
rgr ocr doctor
rgr ocr setup --language eng+fraOCR is optional and page-aware. Custom extractor commands must be JSON argument arrays. They execute without a shell and must print text to stdout.
Use RAGMIR_* environment variables for local experiments, then run rgr status --json to inspect the effective configuration.
Canonical source: docs/configuration.md.