ingest
High-quality document processing CLI for RAG pipelines. Process PDFs, Office documents, images, and more into markdown, JSON, HTML, or RAG-optimized chunks.
Features
✅ Standalone CLI Command - Simple ingest command
✅ 4 Output Formats - markdown, json, html, chunks (RAG-optimized)
✅ 3 Converters - pdf, table, ocr specialized processing
✅ LLM Enhancement - Optional AI boost (81% → 91% table accuracy)
✅ Multi-Worker - Parallel batch processing
✅ 20+ Options - Full control over processing
Quick Start
Installation
Using uv (recommended - fastest!)
# Basic installation (fast, lightweight)
uv pip install ingest-cli
# With marker-pdf for high-quality processing
uv pip install ingest-cli[marker]
# With LLM support
uv pip install ingest-cli[llm]
# Full installation (everything)
uv pip install ingest-cli[full]
Using pip
# Basic installation
pip install ingest-cli
# With marker-pdf
pip install ingest-cli[marker]
# Full installation
pip install ingest-cli[full]
Install from source
git clone https://github.com/therealtimex/ingest.git
cd ingest
# Basic installation (lightweight, no marker-pdf)
uv pip install -e .
# With marker-pdf for high-quality processing
uv pip install -e ".[marker]"
# Full installation with all features
uv pip install -e ".[full]"
Basic Usage
# Process a document
ingest document.pdf
# Process for RAG
ingest ./documents --output-format chunks --batch-mode
# Extract tables with LLM
ingest report.pdf --converter-type table --use-llm
# View help
ingest --help
Common Use Cases
1. RAG System Preparation
ingest ./knowledge_base \
--output-format chunks \
--batch-mode \
--workers 4
Output: Pre-chunked JSON optimized for embeddings and retrieval.
2. Table Extraction
ingest financial_reports/ \
--converter-type table \
--use-llm \
--output-format json \
--batch-mode
Output: High-accuracy table data in JSON format.
3. OCR Scanned Documents
ingest scanned_docs/ \
--force-ocr \
--output-format markdown \
--batch-mode
Output: Clean markdown from scanned PDFs.
Output Formats
- markdown: Clean markdown with proper formatting
- json: Structured JSON with full metadata
- html: Web-ready HTML with embedded images
- chunks: RAG-optimized pre-chunked JSON for vector databases
Performance
| Workers | VRAM | Throughput (H100) |
|---|---|---|
| 1 | 5GB | ~30 pages/sec |
| 4 | 20GB | ~120 pages/sec |
| 8 | 40GB | ~240 pages/sec |
Requirements
- Python 3.10+
- Optional: GPU for faster processing (CPU mode available)
Environment Variables
# PyTorch device
export TORCH_DEVICE=cuda # or cpu, mps
# LLM API keys (optional, for enhanced accuracy)
export GOOGLE_API_KEY="your-gemini-key"
export ANTHROPIC_API_KEY="your-claude-key"
export OPENAI_API_KEY="your-openai-key"
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
- Issues: GitHub Issues
- Repository: github.com/therealtimex/ingest
Built with ❤️ by RealTimeX
Metadata
Release files for ingest-cli 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ingest_cli-1.0.2.tar.gz | 17.3 kB | Without provenance | Details for ingest_cli-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ingest_cli-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for ingest_cli-1.0.2-py3-none-any.whl |
Total release size: 32.8 kB
Release files / ingest_cli-1.0.2.tar.gz
| Download URL | ingest_cli-1.0.2.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb7638de77d34764bdc01340ee10614b45328d70a3428a8793fd88e42db4f9fb
|
|
BLAKE2b-256 checksum How to use checksums |
ca5f6725bfc4c87f910c8fec5448125a0d896ce6b5c87ec5def83215f92032a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / ingest_cli-1.0.2-py3-none-any.whl
| Download URL | ingest_cli-1.0.2-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f3c80fef32f99e91009ff683044c6b141bd72058be691d639afb2f851be9de2
|
|
BLAKE2b-256 checksum How to use checksums |
e15dd404a9b75f5876e81255cae434ab262f47ce56756ddfa5c7d4c958309561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for ingest-cli 1.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.