gemini-2.5-flash-preview-09-2025| input-price: 0.3 output-price: 2.5 max-context-length: 128_000 (cost: $0.08) Β· Anfrage: 2025-10-09T03:46:21.088595
Generated by rs-summarizer Version unbekannt
Abstract:
LangExtract is a Python library designed for extracting structured information from unstructured text documents, such as clinical notes or literary works, using Large Language Models (LLMs). Its core functionality centers on Precise Source Grounding, which maps every extracted entity back to its exact character location in the source text, and Reliable Structured Outputs, which enforces a user-defined data schema. The library is optimized for efficiency and recall in processing long documents through text chunking and parallel processing (e.g., up to 20 workers). LangExtract supports major LLMs like Google Gemini (recommended default) and OpenAI, features built-in support for local models via Ollama, and emphasizes extensibility through a community-maintained plugin provider system. The extraction process is complemented by an interactive HTML visualization tool for result review.
LangExtract Python Library Summary
char_interval) in the source text, essential for traceability, verification, and interactive visualization.max_workers=20), and multiple passes (extraction_passes=3) for enhanced recall..jsonl format, which can be instantly converted into a self-contained, interactive HTML file to visually inspect and review extracted entities within their original context.pip install langextract) and API Key setup (via environment variables like LANGEXTRACT_API_KEY or provider-specific keys like GEMINI_API_KEY)../autoformat.sh), and the PR must link to an issue with demonstrable community support (5+ π reactions required).