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

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.1
File Size Uploaded Provenance Actions
sidx-0.0.1.tar.gz 4.2 kB Without provenance Details for sidx-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 8.1 kB

Release files / sidx-0.0.1.tar.gz

Download URL sidx-0.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3146bd42dedd4033895d2da385898b51396095864a1f83eac32ebbf2483bf65c
BLAKE2b-256 checksum
How to use checksums
cdb5f49fceb62d302921b7b991ceb1f9a3bba4e6c0464abc1f2a86d0bef0e86c
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.1-py3-none-any.whl

Download URL sidx-0.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
20f4f8d11050edc3571d18e09296f5151ec7c84661a8dff93aa6d50e0e235abf
BLAKE2b-256 checksum
How to use checksums
a713e144c618a16572dd778410f91b51566e8dc3923cfe13720937efa0697ec9
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.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.

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