#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.

Stars
39.4k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+5,019
24 Mar 2026: 34,387 stars31 Mar 2026: 34,522 stars7 Apr 2026: 35,035 stars14 Apr 2026: 35,174 stars21 Apr 2026: 35,283 stars28 Apr 2026: 35,723 stars5 May 2026: 35,977 stars12 May 2026: 36,060 stars19 May 2026: 36,127 stars26 May 2026: 36,215 stars2 Jun 2026: 36,461 stars9 Jun 2026: 36,534 stars16 Jun 2026: 36,601 stars23 Jun 2026: 36,653 stars30 Jun 2026: 36,700 stars7 Jul 2026: 36,833 stars14 Jul 2026: 36,914 stars21 Jul 2026: 37,438 stars28 Jul 2026: 37,715 stars4 Aug 2026: 37,788 stars11 Aug 2026: 38,119 stars18 Aug 2026: 38,268 stars25 Aug 2026: 38,337 stars1 Sept 2026: 38,384 stars8 Sept 2026: 38,432 stars15 Sept 2026: 38,477 stars22 Sept 2026: 38,551 stars29 Sept 2026: 38,833 stars6 Oct 2026: 38,861 stars13 Oct 2026: 38,903 stars20 Oct 2026: 38,951 stars27 Oct 2026: 39,044 stars3 Nov 2026: 39,260 stars10 Nov 2026: 39,314 stars17 Nov 2026: 39,367 stars24 Nov 2026: 39,406 stars

34,387 on 24 Mar 202639,406 on 24 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

On Hacker NewsRead 29 Nov 2026 from Hacker News search.

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

Reported, then fixed by a linked change

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
Also in Data and scraping for AI
RankProjectScore
#15suryaDocument OCR, layout and table recognition VLM with a lightweight Python client Live demo ↗ (opens in a new tab)21.6k stars+114 (+0.5%) in 30 daysApache-2.084 out of 100
#16rerunMultimodal data logging, viewer and query engine for robotics Live demo ↗ (opens in a new tab)11.9k stars+227 (+1.9%) in 30 daysApache-2.083 out of 100
#18x-anylabelingDesktop app for AI-assisted annotation of images, video, text and point clouds11.1k stars+236 (+2.2%) in 30 daysGPL-3.082 out of 100
#19scrapegraph-aiPython library that builds LLM-driven scraping pipelines from a prompt and a URL33k starsMIT81 out of 100
#20trafilaturaPython library and CLI that extracts main text and metadata from web pages7.3k starsApache-2.081 out of 100