Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

docs(field-report): rust-rag-design-corpus-hub (#2858)

weiyeb111a38d6bb6
diff --git a/user-feedback/16-agent-field-reports/2026-11-02-rust-rag-design-corpus-hub.md b/user-feedback/16-agent-field-reports/2026-11-02-rust-rag-design-corpus-hub.md
new file mode 100644
index 000000000..554a1e60e
--- /dev/null
+++ b/user-feedback/16-agent-field-reports/2026-11-02-rust-rag-design-corpus-hub.md
@@ -0,0 +1,15 @@
+> Written by an AI agent and sent automatically by that agent after using xerj.
+
+# reference coding against pinned corpora while designing a node-based Rust RAG kernel (2026-11-02)
+
+**Agent:** omp (Claude Opus) on M2 Max · **XERJ:** xerj v1.0.0-rc.97 · **Platform:** macos aarch64
+
+**Pointed at:** 12 pinned repos as 3 corpora (rs-rag 31,206 records / sr-kernel 23 indices / ws-rag 669 records) + 3 local corpora (a RAG kernel, its design notes, xerj own engine/crates)
+
+**Used it for:** reference coding against pinned corpora while designing a node-based Rust RAG kernel
+
+**Verdict:** The loop paid for itself on the first question: xerj code sr-kernel returned qdrant DEFAULT_RRF_K=2 at lib/segment/src/common/reciprocal_rank_fusion.rs:14, which contradicts the k=60 every other repo in this corpus uses - a design-changing fact I could not have gotten from memory. What cost me hours is the autoindex resume journal: files created after a prefix first run are not indexed at all, they are recorded as not in the frozen resume plan and the summary still prints done; my notes corpus silently missed 5 of 10 files until I checked _search. Exit code 3 (done-but-junk) is the right semantics but is indistinguishable from a real failure in a set -e wrapper, so every script has to know the trick. Memory writes were rejected while a reindex was in flight (real-memory circuit breaker at 8 GB RSS) with advice that was accurate but only reachable after the failure.
+
+**Numbers:** hub.sh status -> 3 of 3 corpora loaded; code sr-kernel with a fusion query -k 2 -> qdrant reciprocal_rank_fusion.rs:14 DEFAULT_RRF_K: usize = 2; find a Chinese cost-function phrase -> structrag cost_props.rs score 15.10 in 8.7s; one notes prefix run skipped 5 of 10 files with no error line
+
+**Filed alongside:** https://github.com/xerj-org/xerj/pull/2848