LangExtract by Google is a Python library for extracting structured information from unstructured text using LLMs with precise source grounding. With 35,000+ GitHub stars, it handles everything from clinical notes to literary analysis, producing verified extraction results with exact source text mappings and interactive visualizations.
67 stars
0 votes
0 copies
3 views
Added June 8, 2026
ai-agentspythongogitapisecurity
Works with
cli
api
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Langextract Llm Structured Text Extraction?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-langextract-llm-structured-text-extraction)
---
name: "LangExtract LLM-Powered Structured Text Extraction"
slug: "langextract-llm-structured-text-extraction"
description: "LangExtract by Google is a Python library for extracting structured information from unstructured text using LLMs with precise source grounding. With 35,000+ GitHub stars, it handles everything from clinical notes to literary analysis, producing verified extraction results with exact source text mappings and interactive visualizations."
github_stars: 35042
verification: "security_reviewed"
source: "https://github.com/google/langextract"
category: "Data Extraction & Transformation"
framework: "Custom Agents"
tool_ecosystem:
github_repo: "google/langextract"
github_stars: 35042
---
# LangExtract LLM-Powered Structured Text Extraction
LangExtract by Google is a Python library for extracting structured information from unstructured text using LLMs with precise source grounding. With 35,000+ GitHub stars, it handles everything from clinical notes to literary analysis, producing verified extraction results with exact source text mappings and interactive visualizations.
## Installation
Use the upstream install or setup path that matches your environment:
- pip install langextract
- git clone https://github.com/google/langextract.git
- pip install -e .
- pip install -e ".[dev]"
Requirements and caveats from upstream:
- 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, identifyi...
- **Note:** Using cloud-hosted models like Gemini requires an API key. See the [API Key Setup](#api-key-setup-for-cloud-models) section for instructions on how to get and configure your key.
- python
Basic usage or getting-started notes:
- [Quick Start](#quick-start)
- Extract structured information with just a few lines of code.
- ### 1. Define Your Extraction Task
- Source: https://github.com/google/langextract
- Extracted from upstream docs: https://raw.githubusercontent.com/google/langextract/HEAD/README.md
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/langextract-llm-structured-text-extraction/)