chandra

OCR model that handles complex tables, forms, handwriting with full layout.

20 articles 6.9k View on GitHub ↗
20 articles
How the paginate_output Option in Chandra Formats Multi-Page Document Outputs

Learn how Chandra's paginate_output option formats multi-page documents. Insert visual page separators into Markdown and HTML outputs for clearer OCR results.

how-to-guide
Mar 27, 2026
What is MAX_VLLM_RETRIES in Chandra? Understanding vLLM Generation Retry Logic

Discover MAX_VLLM_RETRIES in Chandra. Learn how this setting controls vLLM generation retries for repetitive output or service errors and optimize your LLM performance.

internals
Mar 27, 2026
How the scale_to_fit Function in Chandra Prepares Images for Model Input

Understand how Chandra's scale_to_fit function prepares images for model input by normalizing size constraints, aligning to a 28x28 grid, and preserving aspect ratios for vision-language models.

how-to-guide
Mar 27, 2026
Understanding the Relationship Between Chandra's BatchInputItem and BatchOutputItem Schemas

Explore the one-to-one relationship between Chandra's BatchInputItem and BatchOutputItem schemas. Understand how input images transform into detailed model outputs in the inference pipeline.

api-reference
Mar 27, 2026
How to Use the Chandra Streamlit App for Interactive Single-Page Document Processing

Effortlessly process single-page documents with the Chandra Streamlit app. Run layout-aware OCR locally or remotely, visualizing text, layout, and markdown output instantly.

how-to-guide
Mar 27, 2026
How detect_repeat_token Identifies Generation Failures in Chandra

Learn how Chandra inspects model outputs for repeating token sequences using detect_repeat_token to identify and prevent generation failures.

internals
Mar 27, 2026
Chandra load_file Function: Supported File Formats and Processing Logic

Explore Chandra's load_file function. Discover supported formats like PDF and Pillow-readable images, and understand how it converts them to RGB Pillow Image objects.

api-reference
Mar 27, 2026
MAX_OUTPUT_TOKENS in Chandra: Purpose, Default Value, and When to Adjust It

Understand MAX_OUTPUT_TOKENS in Chandra. Learn its purpose, default value, and when to adjust this config constant to prevent context window overflows and resource exhaustion.

deep-dive
Mar 27, 2026
How ThreadPoolExecutor in Chandra's vLLM Module Manages Concurrent Page Processing

Discover how Chandra's vLLM module uses ThreadPoolExecutor to boost concurrent page processing Up to 64 worker threads optimize I/O bound HTTP requests while maintaining batch order

internals
Mar 27, 2026
How Chandra Header and Footer Filtering Works: A Complete Technical Guide

Learn how Chandra's header and footer filtering works. Discover how to omit page headers and footers using the include_headers_footers parameter in this technical guide.

deep-dive
Mar 27, 2026
Supported Prompt Types in Chandra: How PROMPT_MAPPING Configures OCR Modes

Explore supported prompt types in Chandra: ocr_layout and ocr. Learn how PROMPT_MAPPING in prompts.py configures LLM inference for OCR modes.

how-to-guide
Mar 27, 2026
How BBOX_SCALE Controls Layout Detection and Chunk Parsing in Chandra

Discover how the BBOX_SCALE setting in Chandra controls layout detection and chunk parsing by defining the OCR model's virtual coordinate grid and impacting pixel coordinate conversion.

internals
Mar 27, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →