Skip to main content

sidx

Self-improving data extraction: a multi-stage agentic framework for extracting structured data from documents, built on PydanticAI and Docling.

Work in progress. There is no extraction code yet. The design is being written in docs/design/.

The first source documents are 401(k) basic plan documents from three providers. Each one lays out the same material differently, which makes them a test of whether extraction holds up across layouts. See resources/plan_documents/.

Setup

Requires uv. Python 3.13 is installed by uv if you don't have it.

uv sync                                       # install dependencies into .venv
make hooks                                    # install the pre-commit hook, once per clone
uv run python scripts/download_plan_documents.py   # fetch the source PDFs

The source PDFs are copyrighted by their publishers, so they are not committed here. The download script fetches each one from its original URL and checks it against a pinned SHA-256.

To call a model, copy .env.example to .env and fill in the values. Each variable is described in .env.example.

Development

make help        # list every target
make check-all   # ruff lint, ruff format check, pyright — what CI runs
make fix         # auto-fix lint errors
make format      # reformat code

CONTRIBUTING.md covers the PR checklist and how releases are published to PyPI.

Path What's there
src/sidx/ The package (import sidx)
scripts/ One-off tooling, such as the PDF download script
resources/plan_documents/ Source documents (downloaded, not committed) and notes on them
docs/design/ How the system is meant to work — the spec
docs/implementations/ The build plan, one doc per PR

Cutting a release

Releases are published to PyPI by GitHub Actions, never from a laptop.

  1. Check you're ready. From an up-to-date main with a clean working tree:

    git switch main && git pull
    make release-check                 # add VERSION=X.Y.Z to check that version is free
    

    It changes nothing. Fix any FAIL line before going on.

  2. Run the release. In Claude Code, run /create-new-release. It proposes the next version for you to confirm, merges a release PR with the version bump and changelog, tags it, publishes the GitHub release, and checks that PyPI has the new version.

The one-time PyPI and GitHub setup, and how to release by hand, are in CONTRIBUTING.md.

License

MIT, covering the code and docs in this repo. The plan document PDFs belong to their respective publishers and are not covered by it.

Metadata

Release files for sidx 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sidx 0.0.2
File Size Uploaded Provenance Actions
sidx-0.0.2.tar.gz 4.2 kB Without provenance Details for sidx-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sidx 0.0.2
File Interpreter ABI Platform Actions
sidx-0.0.2-py3-none-any.whl Python 3 none any Details for sidx-0.0.2-py3-none-any.whl

Total release size: 8.1 kB

Release files / sidx-0.0.2.tar.gz

Download URL sidx-0.0.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
202e7f5244dc0615203a4c98283af1e29dcb394d764125f24e98e9b456a57363
BLAKE2b-256 checksum
How to use checksums
901e0148acf235b7c924c6d3429449f8ab952f4ee77dd14373719323bc6fbb29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / sidx-0.0.2-py3-none-any.whl

Download URL sidx-0.0.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7f7105b6fd29a198724a9725429b863a0110ccc8186b328a2c0b6beca6c3143
BLAKE2b-256 checksum
How to use checksums
661a7198c0a2d31b22dcdf1128a0039a7b8e9c3c233ab86861c7c06c50798b13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for sidx 0.0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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