google/langextract
A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.
Supports multiple LLM providers (Google Gemini, OpenAI, local Ollama models) with pluggable custom providers, and uses optimized chunking and parallel processing to handle long documents efficiently. Enforces schema-compliant outputs through controlled generation on supported models, while automatically detecting hallucinated extractions that don't ground to source text. Generates interactive HTML visualizations that map each extracted entity back to its precise character position in the original document for verification and review.
34,668 stars and 173,955 monthly downloads. Actively maintained with 8 commits in the last 30 days. Available on PyPI.
Stars
34,668
Forks
2,330
Language
Python
License
Apache-2.0
Category
Last pushed
Feb 25, 2026
Monthly downloads
173,955
Commits (30d)
8
Dependencies
17
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/google/langextract"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
Extralit/extralit
Fast and accurate systemic data extraction with LLM assistance
Keyvanhardani/german-ocr
German-OCR is specifically trained to extract text from German documents including invoices,...
oidlabs-com/Lexoid
Multimodal document parser for high quality data understanding and extraction
parsee-ai/parsee-core
Retrieval of fully structured data made easy. Use LLMs or custom models. Specialized on PDFs and...
xingbow/SciDaEx
Structured data extraction from research literature