retobs
PyPI · Docs · Migrating from 0.6
Hosted demo: a read-only dashboard at retobs-demo.happywater-562fb4f3.westus2.azurecontainerapps.io opens on a real run: 300 SciFact questions through keyword search, vector search and fusion, showing which step loses each correct document. It also carries the built-in demo for compare and Audit, and a verified integration for Connect. The first visit after idle takes a few seconds to wake. See deployment.
A relevant document goes missing somewhere in a multi-stage retrieval pipeline. Recall drops,
and nobody can say which operator dropped it: the retriever never found it, a filter removed it,
fusion pushed it out, or the reranker cut it below k. retobs records what every operator
actually received and returned for each query, then shows, for each relevant document, where it
was lost and whether that is recorded or only inferred.
retobs demo, baseline run: kb:doc-guide is judged relevant for q-outage, is introduced by
the lexical retriever, and is removed at recency_filter (reason min_score, recorded). The
dense branch never retrieved it, so that removal is its loss boundary.
Try it (no models, no keys)
pip install "retrieval-observatory[dashboard]"
retobs demo
retobs serve --db .retobs/demo/results.db # http://127.0.0.1:4000
retobs demo evaluates a small deterministic hybrid pipeline twice: a baseline whose recency
filter loses kb:doc-guide, and a validation run with the filter repaired. It prints the exact
compare, inspect-document, and inspect-query commands for the two run IDs it created.
The loop
1. Connect
pip install retrieval-observatory
Then give your coding agent one request, from the repository root:
Ask your coding agent to connect retobs to this existing retrieval pipeline, run your benchmark, and open a document-flow investigation.
The agent follows the packaged runbook: plan, review, re-plan, apply, run the scenarios, verify eight capabilities, and revert if needed (agent runbook). By hand, start with:
retobs integrate . --phase plan --output retobs/integration-plan.json # review, then apply and verify
Apply adds @observe to each operator and @trace_scope to the entrypoint; your code's return
values, order, and exceptions are unchanged. To wire a pipeline yourself, see
manual instrumentation.
2. Investigate
retobs evaluate app/search.py:retrieve --queries data/queries.jsonl --qrels data/qrels.jsonl \
--corpus data/corpus.jsonl --name search --db .retobs/results.db
retobs serve --db .retobs/results.db
Open #/investigate for the run. It opens with the step that loses the most correct documents,
the executed pipeline with each step's correct documents found and lost, and the questions and
documents that missed one. One question shows where each of its correct documents went, step by
step; each document has its judgment, final outcome (relevant_delivered, relevant_excluded,
retained_below_cutoff, not_observed, judged_nonrelevant, unjudged,
insufficient_evidence, shown in plain words), recorded transitions, and loss boundary. Without
a browser:
retobs inspect-document RUN_ID kb:doc-guide --db .retobs/results.db
retobs inspect-query RUN_ID QUERY_ID --db .retobs/results.db
Walkthrough: investigate your pipeline.
3. Audit
retobs compare BASELINE CANDIDATE --db .retobs/results.db --policy retobs/release-policy.yaml \
--artifacts artifacts/ --fail-on hold-or-block-or-fail
One release audit (release-audit.json and a standalone release-audit.html) is shared by the
CLI, SDK, MCP, dashboard (#/audit), and CI. With --fail-on hold-or-block-or-fail the exit code
is the decision:
| Exit | Decision | Meaning |
|---|---|---|
| 0 | PASS |
Every declared check proves non-inferiority within its tolerance. |
| 1 | FAIL |
A declared check proves a regression, or the failure-rate cap is exceeded. |
| 2 | BLOCK |
Required evidence is missing or the runs are not comparable. |
| 3 | HOLD |
Valid evidence, but inconclusive. |
| 64 / 70 | none | Usage error / the comparison could not be produced. |
Policies are local YAML (schema v3) with semantic selectors such as target: final_retrieval.
On the demo, the packaged policy passes. See
retrieval release decisions.
Support boundary
What has been measured: the full connect, verify, evaluate, and investigate loop runs against an installed wheel on five fixtures: a plain Python callable, a FastAPI hybrid pipeline with a gate, a LangChain retriever, a LlamaIndex retriever, and a class-based multi-module hybrid pipeline. One agent trial on an unfamiliar open-source repository has been recorded: from a single prompt, a coding agent wired retobs into a hybrid search project (keyword search, vector search, fusion) on 300 SciFact questions; the per-question account of where correct documents were lost matched hand checks of the project's own functions, and the project's scores were unchanged with retobs attached. The search was a class method, so the agent added a small wrapper module (see future work). A pipeline observed only at its final output (a remote endpoint, an uninstrumented function) supports evaluation and delivered/missed outcomes, not loss boundaries. Details: integration support and evidence limitations.
retobs is not an answer evaluator, a leaderboard, or a production monitoring system. 0.7.0 removed synthetic test-set generation, the difficulty classifier, recommendations, counterfactual replay and attribution, drift and hotspot monitoring, and tradeoff views; the migration guide lists replacements and the pinned 0.6.0 reproduction.
Privacy
Queries, candidates, metadata, judgments, and traces may be sensitive. Redaction runs before
persistence. retobs serve binds to 127.0.0.1 and is unauthenticated; put it behind trusted
controls before exposing it. Read privacy and security.
Documentation
- Start · Workflow · Concepts · Reference
- Guides · Architecture · Known limitations
- Historical experiments (produced before 0.7.0, not regenerated): BEIR benchmark results, flagship case study, pre-registered study of where pipelines lose found documents (provisional, 13 of 14 cells)
- Releases
License: MIT.
Metadata
Release files for retrieval-observatory 0.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| retrieval_observatory-0.8.1.tar.gz | 953.4 kB | With provenance | Details for retrieval_observatory-0.8.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| retrieval_observatory-0.8.1-py3-none-any.whl | Python 3 | none | any | Details for retrieval_observatory-0.8.1-py3-none-any.whl |
Total release size: 2.0 MB
Release files / retrieval_observatory-0.8.1.tar.gz
| Download URL | retrieval_observatory-0.8.1.tar.gz |
|---|---|
| Size | 953.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45f78081bf10833ff307a421f39b26615f94784933282ba1108e501b940e8901
|
|
BLAKE2b-256 checksum How to use checksums |
4bd323e7f3cd47f768891822e66c7af2f0bd3489d361062343170b76d3011f1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logRelease files / retrieval_observatory-0.8.1-py3-none-any.whl
| Download URL | retrieval_observatory-0.8.1-py3-none-any.whl |
|---|---|
| Size | 1.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b457651f6f8a37fb8bc40ecdbc255c2089617f6c6f48e9be436c73a77f327168
|
|
BLAKE2b-256 checksum How to use checksums |
a9bc12ffab739a5741793e62391b39ab42e281c1699e66a975777ce8c8e6730c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logSecurity for retrieval-observatory 0.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for retrieval_observatory-0.8.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.