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.4.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.4-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: retrieval_observatory-0.5.4.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.4.tar.gz
Algorithm Hash digest
SHA256 587702bca27681ccfad0812f03b3ada6a448c5dc2ce2b166d4f155dfaf8c4305
MD5 99711233be1ae18b6cf57aaa550870fa
BLAKE2b-256 d8277250df1957d060a0746117416b81a557c0519f39fba9ea642caa8f9ee4ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for retrieval_observatory-0.5.4.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.4-py3-none-any.whl.

File metadata

File hashes

Hashes for retrieval_observatory-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b08f702857dad4dd71a380e2587884b1a90377d433adab28d56339c00e47258f
MD5 4393ad4903d7f3504be74fb45d6e57c8
BLAKE2b-256 6892cdc248d88f488e217372bf0e14cc43a96709bef91e34fcf9fade523bfbf3

See more details on using hashes here.

Provenance

The following attestation bundles were made for retrieval_observatory-0.5.4-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

This release

0.5.4 This release

2 files

0.5.3

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