llama-index-readers-docdigitizer
LlamaIndex reader for the DocDigitizer document processing API.
v0.1.x is deprecated. Upgrade to v0.2.0+ for the new API endpoint. The previous endpoint (
https://apix.docdigitizer.com/sync) will be removed in a future release.
Installation
pip install llama-index-readers-docdigitizer
Usage
from llama_index.readers.docdigitizer import DocDigitizerReader
# Load a single PDF
reader = DocDigitizerReader(api_key="dd_live_...")
documents = reader.load_data(file_path="invoice.pdf")
print(documents[0].text) # JSON with extracted fields
print(documents[0].metadata) # document_type, confidence, etc.
# Load all PDFs from a directory
documents = reader.load_data(file_path="invoices/")
# Use in a RAG pipeline
from llama_index.core import VectorStoreIndex
index = VectorStoreIndex.from_documents(documents)
query_engine = index.as_query_engine()
response = query_engine.query("What is the invoice total?")
Configuration
| Parameter | Environment Variable | Default |
|---|---|---|
api_key |
DOCDIGITIZER_API_KEY |
— |
base_url |
DOCDIGITIZER_BASE_URL |
https://api.docdigitizer.com/v3/docingester |
timeout |
DOCDIGITIZER_TIMEOUT |
300 |
max_retries |
— | 3 |
pipeline |
— | None |
content_format |
— | "json" |
Content Formats
"json"(default): Document text is a JSON string of extracted fields"text": Key-value pairs separated by newlines (key: value)"kv":key=valuepairs separated by newlines
Document Metadata
Each LlamaIndex Document includes metadata:
| Field | Type | Description |
|---|---|---|
source |
str |
File path of the processed PDF |
document_type |
str |
Detected document type (e.g., "Invoice") |
confidence |
float |
Classification confidence (0-1) |
country_code |
str |
Detected country code (e.g., "PT") |
pages |
list[int] |
Page numbers where document was found |
trace_id |
str |
Unique trace identifier |
License
MIT
Metadata
Release files for llama-index-readers-docdigitizer 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_readers_docdigitizer-0.2.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_docdigitizer-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / llama_index_readers_docdigitizer-0.2.0.tar.gz
| Download URL | llama_index_readers_docdigitizer-0.2.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55fbed725e673d244ff7d1d2c96c7ed76e84e570625f420602277f1a3d804442
|
|
BLAKE2b-256 checksum How to use checksums |
9bc2e791c5022bd3296d020a486db4f601c9cd6b5ce2f8706e3647441c1cbe17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 3, 2026.
Transparency logRelease files / llama_index_readers_docdigitizer-0.2.0-py3-none-any.whl
| Download URL | llama_index_readers_docdigitizer-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e561d7298399f4ec5631e9587a5c03c34aae9a16bda0a9dfef2bf05d760f53bf
|
|
BLAKE2b-256 checksum How to use checksums |
b7a5c0e1c165abe42f111a4b16ee5bd7c98505df9c51cedb31143958f7d8b6cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 3, 2026.
Transparency log