# langextract

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

Canonical page: https://www.reposhelf.co.uk/projects/github/google/langextract.html

- Project ID: google/langextract
- Source: GitHub
- Original project: https://github.com/google/langextract
- Description attribution: project author metadata
- Categories: Developer tools
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-03T18:39:02.353Z
- Demo page loaded: 2026-11-06T01:22:17.885Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> LangExtract is a Python library that uses LLMs to extract structured information from unstructured text documents based on user-defined instructions. It processes materials such as clinical notes or reports, identifying and organizing key details while ensuring the extracted data corresponds to the source text.

- API Key Setup for Cloud Models
- Adding Custom Model Providers
- Using Local LLMs with Ollama
- Romeo and Juliet Full Text Extraction
- Medication Extraction

## Author-documented requirements and audience

> LangExtract is a Python library that uses LLMs to extract structured information from unstructured text documents based on user-defined instructions. It processes materials such as clinical notes or reports, identifying and organizing key details while ensuring the extracted data corresponds to the source text.



- External API key — Required: &gt; Note: Using cloud-hosted models like Gemini requires an API key.
- External API key — Required: See the API Key Setup section for instructions on how to get and configure your key.

Not recorded: Account, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/google/langextract/blob/main/README.md

Extraction checked: 2026-11-03T18:39:02.444Z

Last recorded source update: 2026-11-03T05:41:23.000Z

Saved release: v1.7.0 — 2026-09-13T18:57:37.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=google%2Flangextract). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
