Towards Data Science

Noisy Text in RAG: Typos, OCR, and the Gap Classical Spell-Check Leaves

The article discusses how noisy text—stemming from user typos, rapid transcription errors, and OCR character mistakes—poses challenges for Retrieval-Augmented Generation (RAG) systems. It explains that traditional spell-checking only addresses one type of error, while embeddings are needed to handle the remaining noise. The piece highlights the need for more robust solutions in enterprise document intelligence.

Hugging Face Trending Papers
Nov 10

Post-OCR Correction of Mixed-Script Uzbek Text: Byte-Level ByT5 with an Empirical Homoglyph Noise Matrix

The paper addresses OCR errors in Uzbek documents that arise from visually identical characters across Cyrillic and Latin scripts, which coexist during the script transition. It introduces a byte-level ByT5 model combined with a noise generator trained on 359 manually classified errors and a conservative decoding rule. On a gold dataset of 5,204 line pairs, the system reduces the character error rate from 0.0578 to 0.0369, restores 91.3% of homoglyphs, and adds only 84 new errors.

arXiv Machine Learning
Nov 11

Post-OCR Correction of Mixed-Script Uzbek Text: Byte-Level ByT5 with an Empirical Homoglyph Noise Matrix

The paper addresses OCR errors in Uzbek documents that contain both Cyrillic and Latin scripts, where visually similar characters (homoglyphs) cause a high error rate. The authors propose a byte‑level ByT5 model combined with a noise generator trained on 359 manually labeled errors and a conservative decoding rule. On a gold test set of 5,204 line pairs, the system reduces the character error rate from 0.0578 to 0.0369, correctly restores 91.3% of homoglyphs, and adds only 84 new errors.

By Mannon Ochilov, Oybek Narzullayev, Bahodir Zaripov
Towards Data Science
Nov 12

RAG Retrieval Lost 40 Points When Distracting Passages Grew to 2.68M

The article examines a reproducible test comparing BM25, embeddings, and parent documents, revealing that author‑written evaluations tend to overrate search performance. It demonstrates that when distracting passages increased to 2.68 million, RAG retrieval scores dropped by 40 points, highlighting the importance of answer position within the context.

By Abdullahi Dattijo
Towards Data Science
Aug 29

RAG Is Not the Whole Toolkit: The NLP Techniques Real Problems Still Need

The article argues that Retrieval-Augmented Generation (RAG) is only one tool in NLP, and many real-world problems—such as request classification, free‑text matching, table reading, and OCR noise cleaning—are better served by simpler, cheaper techniques. It emphasizes the importance of selecting the appropriate method for each task and highlights the engineering challenge of knowing which technique to apply.

By Kezhan Shi
Towards Data Science
Jun 9

10 Common RAG Mistakes We Keep Seeing in Production

Enterprise Document Intelligence [Vol. 1 #4bis] - A coauthor note on the brick-by-brick pitfalls that justified the four-brick split, before Part II walks the fixes The post 10 Common RAG Mistakes We Keep Seeing in Production appeared first on Towards Data Science .

By Kezhan Shi
Towards Data Science
Aug 20

Three Kinds of RAG Corpus, and What It Costs to Build for the Wrong One

The article explains that enterprise document intelligence can be categorized into three distinct corpus types, each requiring a specific architecture. It outlines how to determine the shape of a document collection through three key questions. The piece also discusses the costs associated with building a system for the incorrect corpus type.

By angela shi