Ragmir reads .ragmir/config.json from the current directory or an ancestor. Start with rgr setup;
edit JSON only for a real need.
{
"sources": ["docs/**/*.md", "src", "!docs/archive/**"],
"privacyProfile": "private",
"retrievalProfile": "balanced",
"embeddingProvider": "local-hash"
}| Field | Default | Why change it |
|---|---|---|
sources |
[] |
Add project paths, globs, and ! exclusions. |
privacyProfile |
private |
Use strict for the strongest local floor. |
retrievalProfile |
balanced |
Use fast, quality, or custom for different search budgets. |
embeddingProvider |
local-hash |
Set transformers only after an explicit preload. |
topK |
8 |
Change the default number of returned passages. |
mcpMaxOutputBytes |
32768 |
Cap each retrieval tool's serialized MCP text output. |
chunkSize / chunkOverlap |
1200 / 200 |
Tune chunking, then rebuild the index. |
maxFileBytes |
50000000 |
Raise only when the target corpus justifies it. |
includeExtensions |
[] |
Add safe custom text extensions. |
Changing an embedding provider, model, or chunking field requires rgr ingest --rebuild.
Ragmir also preserves Markdown heading paths and JSON or JSONL structure as retrieval-only context.
Rebuild indexes created by an older Ragmir version to populate that structural context.
privatekeeps remote model loading disabled and built-in redaction enabled.strictalso bounds MCP output and disables every external extractor.trustedandcustomare for operators who explicitly accept different local controls.
privacyProfile is a safety floor, separate from retrieval quality.
rgr setup --semantic
rgr ingest --rebuildThis preloads the configured Transformers model once and leaves normal remote model loading disabled.
Use rgr models pull --enable for the same change after initial setup.
rgr ocr doctor
rgr ocr setup --language eng+fraPDF OCR is optional and page-aware. Ragmir calls it only for blank extracted pages. Custom
pdfOcrCommand, imageOcrCommand, and legacyWordCommand values must be JSON argument arrays;
they run without a shell and must print text to stdout.
Use RAGMIR_* variables for local experiments, for example:
RAGMIR_TOP_K=5 rgr search "migration"
RAGMIR_MCP_MAX_OUTPUT_BYTES=16384 rgr mcpEnvironment overrides cover selected runtime settings such as models, retrieval limits, access logs,
and extractor commands. Run rgr status --json to inspect the effective result.