Releases: google/langextract
Releases · google/langextract
v1.0.1: Fix libmagic dependency issue
What's Changed
- Fixed libmagic ImportError by adding pylibmagic dependency (#6)
- Added
[full]install option for easier setup - Added Docker support with pre-installed libmagic
- Updated troubleshooting documentation
Bug Fixes
- Resolve "failed to find libmagic" error when importing langextract (#6)
Installation
# Standard install (now includes pylibmagic)
pip install langextract
# Full install (explicit all dependencies)
pip install langextract[full]
# Docker (libmagic pre-installed)
docker run --rm -e LANGEXTRACT_API_KEY="your-key" langextract python script.pyFull Changelog: v1.0.0...v1.0.1
LangExtract v1.0.0 - Structured Information Extraction
A Python library for extracting structured information from unstructured text using LLMs with precise source grounding and interactive visualization.
Key Features
- Extract structured data from any text using few-shot examples
- Support for Gemini and Ollama models
- Interactive HTML visualizations with source highlighting
- Optimized for long documents with parallel processing and multiple extraction passes
- Precise source grounding - every extraction maps to its location in the original text
Installation
pip install langextractSee the documentation for full usage examples.