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.

1.1 KB
Raw Blame
[package]
name = "xerj-rerank"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
description = "Pluggable relevance reranking for xerj — calibrated second-stage scoring over retrieved candidates"

[dependencies]
reqwest.workspace = true
serde.workspace = true
serde_json.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true

# The local judge's semantic arm (issue #1060): the node's local decision
# head — xerj-ai's candle NLI pair scorer — scored against a relevance
# hypothesis. Optional so the default build of this leaf crate stays
# dependency-light; the deterministic lexical arm needs none of it.
xerj-ai = { path = "../xerj-ai", optional = true }

[features]
default = []
# Wire the local judge to the candle decision head (same loader, same model
# directory, same shared registry as `xerj-ai/decide-local`).
judge-local = ["dep:xerj-ai", "xerj-ai/decide-local"]

[dev-dependencies]
xerj-common = { path = "../xerj-common" }
tokio = { workspace = true }
tempfile = { workspace = true }