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.

299 B
Raw Blame
mod store;

/// Start the parcel ledger with an explicitly bounded capacity.
pub fn startup(capacity: usize) -> store::ParcelStore {
    store::ParcelStore::new(capacity)
}

/// Validation happens before a record reaches the store.
pub fn validate_id(id: &str) -> bool {
    !id.trim().is_empty()
}