Agentic Search
Hybrid retrieval engine for scientific computing corpora. Indexes documents into namespace-specific backends and supports lexical, vector, graph, metadata, and scientific-operator retrieval in one pipeline.
Type: Standalone FastAPI service (not an MCP server)
Features
- Multi-namespace registry with runtime/auth config bundles
- Connectors: local filesystem, S3-compatible object store, Qdrant vector store, Neo4j graph, Redis KV — all backed by DuckDB
- Scientific retrieval operators: numeric range, unit matching, formula targeting
- Background indexing with async job queue, cancellation tokens, serialized per-namespace execution
- Retry wrappers with exponential backoff
- Telemetry: OpenTelemetry tracing, Prometheus metrics at
/metrics
API Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /health | Liveness probe |
| GET | /version | Package version |
| GET | /documents | List indexed documents and chunk counts |
| POST | /query | Run retrieval, return citations + trace events |
| POST | /jobs/index | Submit async index job |
| GET | /jobs/{job_id} | Fetch job status/result |
| DELETE | /jobs/{job_id} | Request cancellation |
| GET | /metrics | Prometheus text exposition |
Quick Start
cd clio-agentic-search
uv sync --all-extras --dev
# Index a namespace
uv run clio index --namespace local_fs
# Query
uv run clio query --namespace local_fs --q "pressure between 190 and 360 kPa"
# Run API server
uv run uvicorn clio_agentic_search.api.app:app --reload
CLI Commands
clio query— Run retrieval queriesclio index— Index documents into a namespaceclio list— List indexed documentsclio seed— Seed sample dataclio serve— Start the API server
Quality Checks
uv run ruff check .
uv run ruff format --check .
uv run mypy src/
uv run pytest --ignore=tests/benchmarks
uv run python -m clio_agentic_search.evals.quality_gate