---
id: 12285
lang: en
title: "LangChain compares GPT-4, Claude and open-source LLMs on data extraction"
published_at: "2026-07-19 05:00:00"
source_name: "LangChain Blog"
source_url: "https://www.langchain.com/blog/extraction-benchmarking"
canonical_url: "https://news.hamidun.com/en/news/12285"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# LangChain compares GPT-4, Claude and open-source LLMs on data extraction

> **Краткая суть (BLUF):** LangChain has released Extraction Benchmarking, a study that compares GPT-4, Claude models and open LLMs on extracting structured data from conversation logs.  The write-up covers the benchmark results, the method used to evaluate extraction quality, and how the team built the dataset used to test the models.

In July 2026, the LangChain team published Extraction Benchmarking, a comparison of how OpenAI's GPT-4, Anthropic's Claude family of models and open LLMs handle extracting structured data from chat logs.

## Why is data extraction a hard task for LLMs?

Structured data extraction is one of the most practical jobs LLMs do in production. The goal is to turn the unstructured text of a conversation, a support ticket or an email into clean JSON with the required fields, such as a name, date, amount or request status. The task sounds simple, but in practice models handle ambiguous wording, missing data and fields that must be inferred logically rather than copied verbatim in different ways.

- The comparison covered GPT-4, Claude models and several open LLMs
- The source data for extraction is chat logs
- The write-up includes not only results but also the method used to create the evaluation dataset

## How the models are evaluated

A fair comparison on this task needs more than extraction accuracy (whether a field value matches the reference). It also needs metrics such as recall, meaning whether the model missed a field that was present in the text, and format robustness, meaning whether the model can consistently return valid JSON without extra comments or explanations. That is why LangChain describes not only the final benchmark numbers but also how the dataset itself was assembled and by what criteria the correct answers were labeled. Without a transparent method, model comparison numbers tell developers choosing a model for their production use case very little.

Extracting data from chats is especially sensitive to conversational style. Real users phrase requests differently from the formal documents on which models are often tested. Benchmarks built on real conversation logs therefore give a more honest picture than synthetic test sets assembled from perfectly formatted examples.

## Why the dataset-building method matters

Developers of frameworks like LangChain regularly get questions from the community about which model to choose for a specific extraction scenario: emails, support tickets or voice transcripts. The answer often depends less on a model's general reputation than on how well it handles the particular type of text and the field structure a project needs.

For this reason, Extraction Benchmarking pays separate attention to how the evaluation dataset was created. It covers which types of chats were included, how the reference values were labeled, and which edge cases (missing data, contradictory mentions, ambiguous wording) were deliberately built into the test examples so that the benchmark reflects real-world difficulties and not only simple cases.

## Why open methods like this matter

Publishing the full dataset-building method, and not just a final model ranking, addresses another problem in the industry. Developers building their own extraction pipelines can reuse the approach to labeling and edge cases to evaluate their own scenarios, instead of every team reinventing extraction-quality criteria from scratch.

## What this means

For teams choosing a model for data extraction, from CRM to support automation, independent comparisons of GPT-4, Claude and open LLMs on realistic data are more useful than marketing benchmarks from the model vendors themselves. They show how models behave on typical text, not on perfectly polished text.

---
- **Первоисточник:** [LangChain Blog](https://www.langchain.com/blog/extraction-benchmarking)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/12285
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
