Model-centric, config-driven, fail-stop-retry indexing toolkit for managing your index in vector databases.
Project description
idxr: Model-Centric Indexing Story
idxr exists for teams who want a dependable, repeatable way to turn any structured dataset into a searchable vector index. Everything revolves around three pillars:
- Model-centric – you describe your world as Pydantic models, and idxr keeps schemas, partitions, and manifests aligned with those models.
- Config-driven – declarative JSON configs capture how each model should be prepared and indexed, so onboarding a new dataset is as easy as committing a config file.
- Fail-stop-retry – every stage records checkpoints, row digests, and error payloads so the pipeline halts loudly when something goes wrong and then resumes from where it stopped.
A Day in the Life of an Index
The timeline below is an example run that demonstrates how idxr accompanies a team from the first dataset drop through ongoing maintenance.
- First launch (Create)
You register your domain models in a registry module and run:
export MODEL_REGISTRY="my_project.registry:MODEL_REGISTRY"
idxr prepare_datasets new-config foundation --model "$MODEL_REGISTRY"
idxr scaffolds a config like:
{
"Contract": {
"path": "datasets/contracts.csv",
"columns": {
"id": "CONTRACT_ID",
"title": "CONTRACT_TITLE",
"summary": "DESCRIPTION"
},
"delimiter": ",",
"drop_na_columns": ["summary"]
}
}
That config is committed, reviewed, and becomes the contract between data engineers and the index.
-
Daily growth (Add records)
New exports arrive. You rerunidxr prepare_datasetswith the same config; idxr deduplicates rows using digests, appends fresh partitions, and bumps manifest timestamps. No manual cleanup, no double counting. -
Domain expansion (Add models)
Product introduces aSupportTicketmodel. You add it to the registry, runidxr prepare_datasets new-config support --model "$MODEL_REGISTRY" --models SupportTicket, and drop the resulting JSON alongside the original config. idxr keeps each model’s partitions distinct but indexed in the same collection. -
Schema shakeups (Update models)
IfContractgains a new field, the model registry changes first.idxr prepare_datasetsnotices, versions the schema, and marks older partitions as stale. Whenidxr vectorizeruns next, it honours resume checkpoints, reindexes only what changed, and writes audit-friendly error reports for anything it had to skip. -
Operational guardrails
During indexing, any hard failure triggers a fail-stop. idxr writes a YAML report capturing offending rows and context so you can fix the source data, then rerunidxr vectorize --resumeto continue exactly where it left off. Optional E2E sampling produces JSON snippets you can review with stakeholders before the big push.
Tools in the Box
idxr prepare_datasets– partitions CSV/JSONL sources, heals malformed rows, maintains a manifest with digests, and generates drop plans.idxr vectorize– streams partitions into ChromaDB (local or cloud), enforces token budgets, compacts documents via OpenAI when needed, and exports structured error reports.- Shared libraries – offer manifest helpers, truncation strategies, drop orchestration, and CLI utilities to wire everything together.
Why idxr?
- 🔁 Lifecycle clarity – creation, accumulation, model expansion, and schema updates follow the same playbook.
- ✍️ Single source of truth – configs live in version control, so reviews and rollbacks are trivial.
- 🛑 Predictable failure semantics – when something breaks, the pipeline stops before corrupting data and tells you exactly what needs attention.
- 🔌 Bring-your-own registry – ship configs with ECC exports today, swap to CRM logs tomorrow, all with the same toolkit.
- 📦 PyPI-ready – install via
pip install idxr, call the CLIs, import the libraries, and compose your own orchestration scripts.
For deep dives and operational recipes, explore FAQ.md, DOC.md, TRUNCATION_EXAMPLES.md, and ERROR_HANDLING.md.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file idxr-0.2.0.tar.gz.
File metadata
- Download URL: idxr-0.2.0.tar.gz
- Upload date:
- Size: 90.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
729ac644d47e88366984b9ca32f5fb6705b50a174a713e1c141bc0f2f44864a9
|
|
| MD5 |
deb8d62de32eb21175da1bb2cd5c23aa
|
|
| BLAKE2b-256 |
d7f8417c64ef77787cbdc57ddfdec2529b80e1f4868a773a8a4ce6c598ec2088
|
File details
Details for the file idxr-0.2.0-py3-none-any.whl.
File metadata
- Download URL: idxr-0.2.0-py3-none-any.whl
- Upload date:
- Size: 103.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e5d8571c497abc02ef83cd917632e032c9df6511c68df825b99c635570b47e
|
|
| MD5 |
742ec1480351a92642f724f773bd8f4e
|
|
| BLAKE2b-256 |
607471786eb6d5dd71e7db89c6b5d9e7c7b81a44662c5eef56c9de904ac9e932
|