# LangExtract

> Extract structured information from unstructured text using LLMs, with precise source grounding

Source: https://talira.ai/catalog/langextract-zagt5t0y
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [ai / llm / structured output](https://talira.ai/categories/ai/llm/structured-output)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Cloud models such as Gemini need their own API key and are billed by their provider.
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Plugins: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

LangExtract is Google's open source Python library for extracting structured information from unstructured text with LLMs, from instructions and a few examples and without fine-tuning. Every extraction is mapped to its exact location in the source text, outputs follow a consistent schema (using controlled generation on models such as Gemini), and long documents are handled with chunking, parallel processing and multiple passes for higher recall. It generates a self-contained interactive HTML file to review extracted entities in context, and works with Gemini, OpenAI models, local models through Ollama and community provider plugins. Examples include medication extraction from clinical notes and structuring radiology reports.

## Links

- GitHub: https://github.com/google/langextract

## Problems it solves

- extract structured entities from long documents with an LLM
- show exactly where in the source text each extracted value came from
- pull medications and dosages out of clinical notes
- turn free-text reports into structured records without fine-tuning a model
- review thousands of LLM extractions visually in context
- run information extraction on a local model through Ollama

## Features

- few-shot extraction tasks defined by instructions and examples
- source grounding to exact text spans
- consistent schema with controlled generation
- chunking, parallel processing and multiple passes for long documents
- interactive HTML visualization
- Gemini, OpenAI and Ollama models
- custom and community provider plugins

## Limitations

- Not an officially supported Google product[^1]

## Capabilities

- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 0.88, adoption 0.92, momentum 1.00, community 0.61, backing 0.55, extensibility 0.20.

- last commit today
- 42 commits in the last 90 days
- latest release v1.7.2 17 days ago
- 39.4k GitHub stars
- 33 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)
- has a plugin system

## Sources

[^1]: https://github.com/google/langextract/blob/main/README.md (checked 23 Nov 2026)
[^2]: https://github.com/google/langextract/blob/main/LICENSE (checked 23 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
