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.

Merge pull request #995 from xerj-org/fix/issue-938-neural-ingest-threads

xerj-org4985f931e0a4
diff --cc engine/crates/xerj-common/src/config.rs
index b95d8558c,474bfd6e4..c8d83e288
--- a/engine/crates/xerj-common/src/config.rs
+++ b/engine/crates/xerj-common/src/config.rs
@@@ -1,6 -1,6 +1,6 @@@
//! xerj configuration system.
//!
- //! Configuration is intentionally minimal: **126 settings** versus
-//! Configuration is intentionally minimal: **121 settings** versus
++//! Configuration is intentionally minimal: **127 settings** versus
//! Elasticsearch's 3000+. Every option is named, documented, and has a sensible
//! production-ready default. The format is TOML, loaded from a single file.
//!
@@@ -97,13 -97,9 +97,13 @@@ pub struct Config
pub wal_tap: WalTapConfig,
/// Second-stage reranking provider — 3 settings. Inert until a key is set.
pub rerank: RerankProviderConfig,
+ /// Typed decisions answered from a labelled-history index by
+ /// nearest-neighbour vote — 6 settings. Inert until `decisions.index`
+ /// names an index that exists.
+ pub decisions: DecisionsConfig,
}
- // 23 sub-configs, 126 leaf settings in total. Do not maintain that sum by hand
-// 22 sub-configs, 121 leaf settings in total. Do not maintain that sum by hand
++// 23 sub-configs, 127 leaf settings in total. Do not maintain that sum by hand
// — `journey_zero_config` in xerj-engine/tests/product_experience.rs counts a
// serialised `Config::default()` and fails if this comment and the module
// header stop matching. `Default` is derived: every field is a sub-config that
@@@ -467,7 -468,7 +472,7 @@@ impl Config
}
// ═════════════════════════════════════════════════════════════════════════════
- // Sub-configs (126 user-facing settings total; counted by
-// Sub-configs (121 user-facing settings total; counted by
++// Sub-configs (127 user-facing settings total; counted by
// `journey_zero_config`, not by hand)
// ═════════════════════════════════════════════════════════════════════════════
@@@ -3116,7 -3123,7 +3167,7 @@@ mod tests
"the section table must sum to the whole config"
);
assert_eq!(
- total, 126,
- total, 121,
++ total, 127,
"the total settings count changed. It is quoted in this module's \
header, in xerj-common/src/lib.rs, in engine/README.md, in \
xerj.default.toml and in EXPECTED_SETTINGS in \
diff --cc engine/crates/xerj-engine/tests/product_experience.rs
index 0d90a1b82,02724d786..1a912effc
--- a/engine/crates/xerj-engine/tests/product_experience.rs
+++ b/engine/crates/xerj-engine/tests/product_experience.rs
@@@ -753,7 -753,7 +753,7 @@@ fn count_settings(value: &serde_json::V
/// Settings in a default `Config`, measured by `count_settings`. Quoted in
/// `xerj-common/src/config.rs`; keep the two in step.
- const EXPECTED_SETTINGS: usize = 126;
-const EXPECTED_SETTINGS: usize = 121;
++const EXPECTED_SETTINGS: usize = 127;
#[tokio::test]
async fn journey_zero_config() {
diff --cc engine/xerj.default.toml
index 8a87017d9,4db05597e..9b9d7c674
--- a/engine/xerj.default.toml
+++ b/engine/xerj.default.toml
@@@ -1,6 -1,6 +1,6 @@@
# xerj Default Configuration
# ============================================================
- # This file sets 55 of XERJ's 126 user-facing settings to their
-# This file sets 55 of XERJ's 121 user-facing settings to their
++# This file sets 55 of XERJ's 127 user-facing settings to their
# production-ready defaults, and describes the rest in comments.
# Every value here IS the default, so copying this file changes
# nothing until you edit it (a test enforces that). The complete