google/langextract

A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 44 minutes ago
Added to GitGenius on December 22nd, 2025
Created on July 8th, 2025
Open Issues & Pull Requests: 133 (+0)
Number of forks: 2,702
Total Stargazers: 38,479 (+1)
Total Subscribers: 169 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 43.3 hours
Mean response time: 20.7 days
90th percentile: 53.6 days
Tracked items: 171

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "discussion" is answered fastest, typically in about 11 hours, while "alternative-llm" waits about 3 days. 64% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 6% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 79
New in 7 days: 4
Closed in 7 days: 0
Avg open age: 166 days
Stale 30+ days: 70
Stale 90+ days: 60

Recent activity

Opened in 7 days: 4
Closed in 7 days: 0
Comments in 7 days: 2
Events in 7 days: 4

Top labels

  • discussion (13)
  • alternative-llm (11)
  • enhancement (11)
  • bug (7)
  • plugin (5)
  • documentation (2)
  • more details required (2)
  • question (2)

Detailed Description

LangExtract is a Python library for extracting structured information from unstructured text using large language models with precise source grounding and interactive visualization.

The library addresses the challenge of converting unstructured documents like clinical notes or reports into organized, structured data while maintaining verifiable connections to the source material. It works by chunking input text, processing it in parallel through an LLM based on user-defined extraction instructions, and then grounding every extracted value back to its exact character span in the original document. This approach ensures that extracted information can be traced and verified against the source.

Developers should choose this tool when they need reliable structured data extraction with accountability—particularly in domains like healthcare, legal review, or any context where tracing extracted values to their source is critical. The library supports multiple LLM providers including Google's Gemini models, OpenAI, and local models via Ollama, as well as custom model providers. It includes interactive visualization capabilities and has been applied to use cases ranging from medication extraction to radiology report structuring.

The project maintains a substantial base of real-world adopters, with almost all open issues raised by outside users rather than the core team. Maintainers typically respond to new issues and pull requests within a few days. Work in the issue tracker is dominated by discussions around alternative LLM providers and enhancement requests, reflecting active community engagement with the tool's extensibility and model support.