ratel-ai-core is Ratel's Rust retrieval engine. Register tool or skill metadata once, then rank the catalog for each agent turn. BM25 is the model-free default; semantic and hybrid retrieval use either an in-process model or a configured OpenAI-compatible embedding endpoint. The retrieval engine and cache stay in-process, with no vector database or Ratel service to deploy.
This crate owns retrieval and its local trace stream. Tool execution, MCP connections, and authentication integrations live in the SDK and local distribution.
Install
Quickstart
Add this to src/main.rs, then run cargo run:
use ;
Package layout: src/ holds the retrieval and trace engine, examples/ contains runnable demos, and tests/ covers integration behavior. From a repository checkout, run cargo test -p ratel-ai-core or cargo run -p ratel-ai-core --example search_demo.
Continue with tool retrieval, the Rust API reference, or the source repository. Benchmark results are maintained separately in ratel-ai/ratel-bench.