Skip to main content

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

MethodPathDescription
GET/healthLiveness probe
GET/versionPackage version
GET/documentsList indexed documents and chunk counts
POST/queryRun retrieval, return citations + trace events
POST/jobs/indexSubmit async index job
GET/jobs/{job_id}Fetch job status/result
DELETE/jobs/{job_id}Request cancellation
GET/metricsPrometheus 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 queries
  • clio index — Index documents into a namespace
  • clio list — List indexed documents
  • clio seed — Seed sample data
  • clio 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