Skip to main content

retobs

PyPI

retobs is a local-first reliability layer for retrieval pipelines. It helps you integrate observable retrieval stages, evaluate a callable, compare Runs under a local release policy, and inspect recorded query and candidate-lineage evidence. It is not an answer evaluator or a leaderboard: when identity, topology, candidates, telemetry, or ground truth are unavailable, retobs reports that limit instead of inferring a conclusion.

Install

pip install "retrieval-observatory[dashboard,mcp]"

Integrate an existing project

Create and review a plan before any mutation. Apply consumes that reviewed plan; verify reports readiness only after it observes the declared topology, candidate evidence, and telemetry health.

retobs integrate . --phase plan --output retobs/integration-plan.json
retobs integrate . --phase apply --plan retobs/integration-plan.json
retobs integrate . --phase verify --plan retobs/integration-plan.json

Unresolved required mappings or stale file hashes block apply. The apply result lists every changed file and retains reversal information in its apply record.

Evaluate a callable

retobs evaluate mypackage.search:retrieve --queries data/queries.jsonl --qrels data/qrels.jsonl --corpus data/corpus.jsonl

Use the returned Run ID with retobs report, retobs compare, and retobs inspect-query. A comparison is valid only when its required identities align; a query diagnosis is limited to evidence actually recorded.

Gate a retrieval release

Use a local, versioned policy to make the promotion boundary explicit:

retobs integrate . --phase verify --policy retobs/release-policy.yaml
retobs compare BASELINE CANDIDATE --db .retobs/results.db --policy retobs/release-policy.yaml --format html --output artifacts/retobs-release.html --fail-on hold-or-block-or-fail

PASS proves bounded non-inferiority under the declared policy; HOLD is valid but inconclusive evidence; BLOCK is missing or invalid required evidence; and FAIL is a proven policy-critical regression. Promotion readiness and lineage-diagnosis readiness remain separate. See retrieval release decisions and the Candidate Lineage Explorer.

Investigate locally

retobs serve --db .retobs/results.db

The dashboard binds to 127.0.0.1 by default. It is unauthenticated and local-first; put it behind trusted controls before exposing it beyond loopback.

What retobs records

  • Evaluation Runs, manifests, query evidence, and complete or partial operator traces.
  • Production traces scoped to a service and pipeline, including candidate transitions when instrumentation provides them.
  • Instrumentation health: sampling, drops, serialization failures, retries, and permanent export failures.

These are evidence contracts, not guarantees that every integration can supply every field.

Integration support

First-class integration paths are plain Python, HTTP, FastAPI, LangChain, and LlamaIndex. DSPy, Haystack, and OpenAI Agents are supported examples with narrower guarantees. See integration support and the agent runbook.

Privacy and production safety

Queries, candidates, metadata, labels, and traces may be sensitive. Redaction runs before enqueue and persistence according to the integration manifest; queue capacity, overflow policy, and sampling are explicit telemetry configuration. Read privacy and security before production use.

Documentation

License: MIT.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

retrieval_observatory-0.5.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

retrieval_observatory-0.5.3-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file retrieval_observatory-0.5.3.tar.gz.

File metadata

  • Download URL: retrieval_observatory-0.5.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for retrieval_observatory-0.5.3.tar.gz
Algorithm Hash digest
SHA256 7767c8331734945bf21203eb708449ef558a942a39e33811085cd74b7072a19b
MD5 db8371182dde4847033e5dca118f1b67
BLAKE2b-256 4e03d1de0b038b8d4bc954eaa65f868ce542c441945164906e62e7fa4a2fee9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for retrieval_observatory-0.5.3.tar.gz:

Publisher: publish.yml on AmeyaKI/retrieval-observatory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file retrieval_observatory-0.5.3-py3-none-any.whl.

File metadata

File hashes

Hashes for retrieval_observatory-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 019575687b6aee2927811ec82f870c7a856d4daff3a23859939b3aabd7c2fd2b
MD5 ca1de0378ab2ec1e3de46f46c81216be
BLAKE2b-256 fdfebd24a26909467a524b0bf96981a450fcd474b0a988fd987a61d23ab1c9a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for retrieval_observatory-0.5.3-py3-none-any.whl:

Publisher: publish.yml on AmeyaKI/retrieval-observatory

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

This release

0.5.3 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page