Skip to main content
complydoc

Know your documents before they reach an LLM.

PyPI Tests Documentation License

Works with
LangChain · LlamaIndex · Unstructured · Docling · LlamaParse · Azure Document Intelligence


The complydoc viewer: a LangChain ingestion pipeline's runs, and one run traced step by step, each loader, splitter, vector store and embedding call on a time axis with its time, cost and the identifiers it passed on, and warnings on a scanned file that loaded no text

complydoc is the observability layer for AI ingestion pipelines. It traces every step between your documents and your vector store (loading, cleaning, splitting, embedding, storing) with what each one cost, how long it took and what it passed on, and follows each document through them. It warns of the failures that raise no error, such as a scan that loaded no text, puts different loaders' readings of the same document side by side, and flags the personal or financial identifiers, and instructions hidden for a model, that make it through.

It runs on your machine, and nothing leaves it unless you ask.

Quickstart

uv tool install complydoc        # or: pip install complydoc

Observe an ingestion pipeline as it runs, every loader, splitter, embedding call and vector store a step:

import complydoc as cd

with cd.observe("contracts-ingest"):
    documents = PyMuPDF4LLMLoader("contract.pdf").load()
    chunks = splitter.split_documents(documents)
    vector_store.add_documents(chunks)

Compare loaders on your own documents, page by page:

from langchain_community.document_loaders import PyPDFLoader
from langchain_pymupdf4llm import PyMuPDF4LLMLoader

report = cd.compare_loaders(
    {"PyPDFLoader": PyPDFLoader, "PyMuPDF4LLMLoader": PyMuPDF4LLMLoader},
    paths="./contracts",
    page_images=True,
)
cd.write_json(report, ".complydoc/loaders.json", detail="full")
The complydoc viewer: two LangChain loaders' readings of the same page side by side, with the page itself beside them

Or audit a folder from the command line:

complydoc audit ./contracts

Then open it all in the viewer, served from your machine:

complydoc ui

The playground has all of this ready to run.

What it shows

  • Pipeline traces: each LangChain or LlamaIndex loader, splitter and embedding call as a step, with its settings, time, tokens, cost and what it passed on.
  • Loader diffs: every loader's reading of a document side by side, line by line, with the page it came from.
  • Identifiers: personal and financial identifiers from Europe, the Americas, India and Australia, checksum-validated where a checksum exists, and masked until you choose to see them.
  • Hidden content: text a reader does not see and a model does, and passages written as instructions to a model.
  • Chunks: splitters side by side, drawn over the text, with the sentences and tables they cut.
  • Cost: text and vision tokens per page, priced across models and extraction paths.
complydoc architecture: files and loader output feed four analyses (cost, readiness, identifiers, hidden content) that produce a report and masked text, inside a network guard

In CI

complydoc check holds a folder to rules written in YAML and fails when they break. On GitHub, the repository is also an action:

- uses: complydoc/complydoc@v0.6.6
  with:
    path: documents
    policy: policy.yaml

See GitHub Action and Policy files.

Privacy

Outbound connections and DNS lookups are blocked for the whole run, and every report records that they were. Identifiers are masked in every output, the page text included. The only things that send data anywhere are ones you add yourself, such as a hosted parser or the optional typesafe and assistant extras, and they run only with allow_network=True. See Network isolation.

Optional extras

Reading scans and finding names are optional, because they are large. Every report says when they were missing.

Extra Size Adds
ocr ~80 MB Reads scans and images
multilingual-names ~2 GB Finds people and companies in European languages
ner ~50 MB Finds names with spaCy's small English model
uv tool install "complydoc[ocr,multilingual-names]"
complydoc doctor              # what is installed, and the command for anything missing

The name models are downloaded once, before a scan, never during one: complydoc doctor prints the command. Detection accuracy publishes how often each finds and misses names.

Resources

License

MIT

Metadata

Release files for complydoc 0.6.6

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

Source distribution (sdist)

Source distribution for complydoc 0.6.6
File Size Uploaded
complydoc-0.6.6.tar.gz 6.4 MB Details

Built distribution (wheel)

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

Total release size: 10.4 MB

Release files / complydoc-0.6.6.tar.gz

Download URL complydoc-0.6.6.tar.gz
Size 6.4 MB
Tags Source
SHA-256 checksum
How to use checksums
a9343756c297d0035aeae29bcc4c4ed9fc9de60d2a8e54edde2e24dbcc3ae587
BLAKE2b-256 checksum
How to use checksums
c759a011b061f6556da579bd9b0e460b9bbd1a752d73af98d0ca02371ba818b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release files / complydoc-0.6.6-py3-none-any.whl

Download URL complydoc-0.6.6-py3-none-any.whl
Size 4.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ac928b6bf1da7b895228faeacf80eb447d787579a762a32f65842ea36ed58f23
BLAKE2b-256 checksum
How to use checksums
cb5caad1ba7f927350793e54bc6f39eea101428538f839796ce924085512eab0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.8

2 release files

0.6.7

2 release files

This release

0.6.6 This release

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.12

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release 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