qmetrics.net

LangExtract

LLM-driven structured extraction with source grounding

LangExtract is a Python library that pulls structured entities from unstructured text using LLMs, with chunking for long documents and HTML review output.

Overview

LangExtract lets you define extraction tasks in natural language with few-shot examples, then run them against clinical notes, reports, literature, or other unstructured text. The library returns structured records aligned to character intervals in the source so you can verify each span.

For long inputs it chunks text, processes chunks in parallel, and can run multiple passes to improve recall on needle-in-a-haystack content. Results can be written to JSONL and rendered as a self-contained interactive HTML visualization that highlights entities in context.

Model support includes Google Gemini through API keys or Vertex AI service accounts, OpenAI models via an optional extra, local models through Ollama, and custom providers registered as plugins. Schema-constrained outputs are available on supported cloud models.

Optional batch modes integrate with Vertex AI or OpenAI batch APIs for cost-sensitive large jobs. Domain adaptation relies on prompt wording and examples rather than fine-tuning, and extractions without a matching source span can be filtered when strict grounding is required.

Key features

  • Few-shot prompt-defined extractions
  • Character-level source grounding
  • Long-document chunking and parallel runs
  • Interactive HTML visualization export
  • Gemini, OpenAI, and Ollama backends
  • Custom LLM provider plugins
  • Vertex AI and OpenAI batch modes
  • JSONL output for downstream pipelines

Use cases

  • Structuring clinical or medical notes
  • Literary or legal entity extraction
  • Radiology report field parsing
  • Research pipelines needing cited spans

Tags

Similar software

Firecrawl

Web scrape crawl and search infrastructure for AI agents

Firecrawl turns websites into LLM-ready markdown and structured data via API, CLI, and MCP. It supports scrape, crawl, map, batch jobs, optional cloud scale, and self-hosted server deployment.

★ 211.5k⟳ todayAGPL-3.0
Open Source Alternative to:TavilyZyte

Crawl4AI

Web crawler and extraction library for AI pipelines

Crawl4AI turns web pages into clean Markdown or structured JSON for RAG and agents. Use the Python library, Docker server, CLI, or the hosted Crawl4AI Cloud API.

★ 88k⟳ 5 days agoApache-2.0

ScrapeGraphAI

LLM-driven Python web scraping pipeline library

ScrapeGraphAI builds scraping pipelines with language models and graph logic. You specify what to extract and it processes websites or local HTML, JSON, XML, and Markdown sources.

★ 33k⟳ 1 month agoMIT

Hyper-Extract

LLM CLI and SDK for structured knowledge extraction

Hyper-Extract turns unstructured documents into typed knowledge structures via CLI or Python. It supports graphs, hypergraphs, temporal models, templates, and multiple LLM providers.

★ 4.3k⟳ 23 days agoApache-2.0

WaterCrawl

Self-hosted web crawl and LLM-ready extraction

WaterCrawl crawls sites, searches the web, and structures content for APIs, with Docker-based local deployment.

★ 2.2k⟳ 3 months agoMIT
Open Source Alternative to:Tavily

Reader

Playwright-based scraping library for AI agent web access

Reader scrapes and crawls websites into clean markdown for agents, with browser pooling, anti-bot stealth, proxy tiers, concurrent batches, and optional stealthed Chrome sessions via CDP.

★ 582⟳ 1 month agoApache-2.0