#1717th of 100 in Data and scraping for AI
langextract
Python library that extracts grounded structured data from text using LLMs
Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts langextract on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.langextract is on your watch list. Its new releases and problems show there.
- Stars
- 39.4k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
34,387 on 24 Mar 202639,406 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
- LangExtract: Python library for extracting structured data from language models (opens in a new tab) (166 points, Jul 2025)
Overview
LangExtract is a Python library that takes a prompt and a few examples and uses an LLM to pull structured entities and attributes out of unstructured text. Each extraction is mapped to its character span in the source, and results can be rendered as an interactive HTML review page. Long documents are handled with chunking, parallel workers and multiple passes, using Gemini, OpenAI or local Ollama models.
Who it is for: Python developers extracting structured records from long documents or reports
Strengths
- Each extraction carries a char_interval into the source; ungrounded results get None
- Long-document handling via chunking, max_workers and extraction_passes for recall
- Supports Gemini, OpenAI (with Batch API), Vertex AI batch and local Ollama models
- Plugin system for custom model providers, plus a community provider registry
Weaknesses
- Needs few-shot examples; misaligned examples trigger prompt alignment warnings
- Ollama provider does not support output_schema
- Controlled generation is described for supported models like Gemini; quality depends on the LLM
- Library only, no server or UI; visualization is a static HTML file
What it needs
- no GPU
- Docker
- Needs Gemini, OpenAI or Vertex AI API key, or a local Ollama server
- Models: Gemini, OpenAI, Ollama, Vertex AI, OpenAI-compatible endpoints
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Open now, reported in the last 90 days
- Bug: Detect mismatched inference results and input chunks ↗ (opens in a new tab)1 reactions
- Bug: Default OpenAI schema constraints cause HTTP 400 with DeepSeek ↗ (opens in a new tab)1 reactions
Reported, then fixed by a linked change
- Bug: Matching built-in providers fails if specified by name rather than inferred from model. ↗ (opens in a new tab)8 reactions · closed 21 Mar 2026Fixed by fix: load builtin providers before resolution regardless of config path ↗ (opens in a new tab)
- langextract chunking does not recover from 503 error "The model is overloaded" ↗ (opens in a new tab)6 reactions · closed 21 Apr 2026Fixed by Add automatic retry logic for transient Gemini API errors (503, 429) ↗ (opens in a new tab)
- Fix: Ollama Docker healthcheck fails due to missing curl ↗ (opens in a new tab)1 reactions · closed 2 Apr 2026Fixed by fix: health check failure curl not found ↗ (opens in a new tab)
- gpt5-mini fails when reasoning_effort is passed via provider_kwargs ↗ (opens in a new tab)1 reactions · closed 2 Apr 2026Fixed by fix: pass reasoning_effort directly to OpenAI API ↗ (opens in a new tab)
- Ollama keep_alive is not working ↗ (opens in a new tab)1 reactions · closed 21 Mar 2026Fixed by fix: send keep_alive at top level for Ollama API ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Data and scraping for AI
See all 100| Rank | Project | Score |
|---|---|---|
| #15 | suryaDocument OCR, layout and table recognition VLM with a lightweight Python client | 84 out of 100 |
| #16 | rerunMultimodal data logging, viewer and query engine for robotics | 83 out of 100 |
| #18 | x-anylabelingDesktop app for AI-assisted annotation of images, video, text and point clouds | 82 out of 100 |
| #19 | scrapegraph-aiPython library that builds LLM-driven scraping pipelines from a prompt and a URL | 81 out of 100 |
| #20 | trafilaturaPython library and CLI that extracts main text and metadata from web pages | 81 out of 100 |