← All AI Engineer talks

AI Engineer World's Fair 2024

EyeLevel Launch: Your RAG is Tripping, Here's the Real Reason Why

Read the talk

Why RAG Accuracy Starts with Document Ingestion

Complicated documents can lose meaning before retrieval begins. EyeLevel’s walkthrough follows extraction, context-preserving semantic objects, and query rewriting through an Air France copilot example.

From a talk by Benjamin Fletcher

Before you start: Familiarity with RAG—retrieving source material and passing it to a language model—and with splitting documents into chunks will help.

Getting documents into RAG is only the beginning

How do you turn uploaded documents into content an AI application can reliably retrieve? EyeLevel’s starting promise is a short path: upload documents through no-code tools or APIs, then receive retrievals within minutes. Co-founder Benjamin Fletcher brings experience from IBM Research, IBM Watson, and work with brands including The Weather Channel. He describes EyeLevel as the world’s most accurate and scalable RAG platform, developed over four years beginning with early access to the GPT-3 beta.

0:000:22
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:00 · section reference included

Three ways the evidence goes missing

Getting started with retrieval-augmented generation is easy; mastering it becomes difficult when the knowledge base contains complicated enterprise documents. Fletcher reports that, in EyeLevel’s experience, RAG applications can have error or hallucination rates as high as 35%. His diagnosis points upstream of generation: the retrieved content may already be incomplete, distorted, or irrelevant before the LLM sees it.

The failures fall into three categories:

  • Bad text extraction: the extracted words do not faithfully represent the source.
  • Missing context: chunking separates a passage from information elsewhere in its document.
  • Missing visual information: tables, charts, and other visual elements never reach the retrieval system.

The quality of the answer depends on the evidence that survives ingestion. Fletcher argues that fixing these failures with advanced RAG techniques can take hundreds of implementation hours; EyeLevel packages that data-engineering work into its ingestion pipeline.

Slide with three numbered boxes: Bad text extraction; Retrievals missing context; Visual formats like tables and charts.
Three common causes of RAG failure: bad text extraction, missing context, and visual formats.

Fletcher reports that customers including Air France and Dartmouth say their applications respond correctly more than 95% of the time. He also cites an unnamed study reporting 98% accuracy on complicated real-world documents and up to 120% outperformance over popular competing solutions. The talk does not specify the study’s evaluation protocol, identify the comparators, or define the outperformance calculation, so those figures describe the results Fletcher reports rather than a reproducible comparison supplied in the walkthrough.

0:531:14
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

0:53 · section reference included

From an Air France document to searchable objects

EyeLevel’s architecture does not use a vector database. Instead, it creates semantic objects and searches across multiple attributes of each object. Fletcher questions whether vector databases are the best fit for many RAG applications; the alternative he introduces is a richer unit of retrieval than an isolated passage of extracted text.

Air France provides the concrete setting. At the time of the talk, the airline had been using EyeLevel for a year to build a ChatGPT-like copilot for call-center agents. Its knowledge base contains hundreds of thousands of documents, including pages with tables, figures, and text scattered across the layout. Understanding such a page requires identifying its different components before deciding how to extract them.

The ingestion sequence begins with a vision model that locates images, tables, and text. Fletcher says EyeLevel fine-tuned this model with millions of documents. Dedicated multimodal processing pipelines then extract the written and visual information from those regions. The slide labels the detector GroundX Vision Model and shows colored region annotations over an Air France document containing a passenger photo, a table, and text. Region detection is the first step; extracting the meaning within those regions is the next.

Air France document containing a passenger photo, table, and text, with colored region overlays beside the label GroundX Vision Model.
GroundX Vision Model highlights regions of an Air France document.
2:332:49
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

2:33 · section reference included

Keep the chunk, restore its surroundings

Even a correctly extracted document can lose meaning when split into smaller chunks. A passage may no longer carry the section it belongs to—or even the identity of its document. Fletcher compares this to asking questions about a book and receiving random paragraphs: the paragraphs can be accurate while still being poor evidence for an answer.

A semantic object retains the original chunk and adds automatically generated metadata that preserves surrounding information. It also contains two rewrites, each serving a different purpose:

ComponentPurpose
Original chunkPreserve the extracted passage
Generated metadataRetain surrounding document context
Search rewriteRepresent the content for retrieval
Completion rewriteRepresent the content for answer generation

The distinction between the last two fields matters: text that helps find a passage need not be the same text that best helps a model answer from it.

For a small book example, suppose a chapter titled “Seedling care” contains the sentence “Water them daily.” A representation of the described structure could be:

json

{
  "originalText": "Water them daily.",
  "metadata": {
    "document": "A Beginner's Gardening Guide",
    "section": "Seedling care"
  },
  "searchText": "Seedling care: daily watering frequency.",
  "completionText": "The Seedling care section of A Beginner's Gardening Guide recommends watering seedlings daily."
}

Here the original sentence remains intact, while the surrounding context resolves what “them” refers to. These illustrative field names express the mechanism, not an SDK contract. Current GroundX API concepts document semantic objects, but the walkthrough describes the historical architecture rather than a current API integration.

3:403:55
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

3:40 · section reference included

What OCR leaves behind

The next demonstration returns to a figure from an Air France document. Fletcher first shows the result of a familiar sequence: OCR the figure, extract its text, vectorize that text, and place it in a vector database. He then points to information lost along the way and contrasts that result with EyeLevel’s ingestion output, which includes both the search and completion versions of the text.

The comparison turns on what reaches the index. Recognizing words inside a figure does not necessarily preserve the information conveyed by their arrangement or visual relationships. Once extraction has omitted information, vectorizing the remaining text does not restore it. EyeLevel’s demonstrated response is to process visual and written information during ingestion, then produce representations suited to finding that information and using it in an answer.

4:314:47
Suggest correction

This note stays in this page until you copy or download it. Nothing is submitted; reloading clears the draft.

4:31 · section reference included

Resources

Updates since the talk

Read the complete timestamped transcript
  1. 0:00

    [upbeat music] Hi, my name's Ben. I'm co-founder of EyeLevel.ai, and I've been building applications powered with AI for the last 15 years.

  2. 0:22

    First at IBM Research, then at IBM Watson, later working with major brands like The Weather Channel, and now at EyeLevel, where we've built the world's most accurate and scalable RAG platform.

  3. 0:36

    Using our no-code tools and APIs, our users can upload documents and receive the most accurate retrievals in minutes. We've been developing our solution for the last four years, and we're among the first early users that were admitted to the GPT-3 beta program.

  4. 0:53

    We found it easy to get started with RAG and very difficult to master. In our own experience, RAG applications can have error or hallucination rates as high as thirty-five percent, especially when the knowledge base consists of the kinds of complicated documents that are commonly found in the enter- enterprise.

  5. 1:14

    The source of these errors is rarely the LLMs or the prompts. Instead, it's typically RAG itself, or more specifically, the quality and relevance of retrieved content. And the problems with content generally fall into one of three categories: bad or improperly extracted text, missing information from the surrounding parts of the document that's lost during

  6. 1:39

    chunking, or visual elements that are not extracted at all.

  7. 1:44

    Most commonly, the problems with RAG are content ingestion problems, and advanced RAG techniques that help you solve these problems can take hundreds of hours to implement. We've spent the last four years tackling these difficult data engineering problems and have built the solutions to them into our ingestion pipeline.

  8. 2:05

    As a result, our users are able to build the most accurate RAG applications in just minutes, and our customers, such as Air France and Dartmouth, tell us that their RAG applications respond correctly more than ninety-five percent of the time.

  9. 2:19

    In a recent study, our app-- our platform achieved ninety-eight percent accuracy against complicated real-world documents and outperformed some of the most popular solutions in market by as much as a hundred twenty percent.

  10. 2:33

    I'm gonna quickly, quickly walk you through the unique approach we take to achieve this high level of accuracy, and I'll start by telling you that we don't use vector databases at all, and in fact, we think they may not be the best technology solution for a lot of RAG applications.

  11. 2:49

    Instead, what we do is we create what we call semantic objects, and we do a multifield search across the attributes of this object. I'll show you what that means with a real example from Air France.

  12. 3:01

    Air France has been using our platform for the last year to build a ChatGPT-like copilot for their call center agents.

  13. 3:10

    They wanted to understand their knowledge base, which consists of hundreds of thousands of documents just like this one, filled with tables, figures, and text sca- uh, scattered across the pages.

  14. 3:22

    In our ingestion pipeline, the first thing we do is run a vision model that we fine-tune with millions of documents to identify where the images, the tables, and the text are.

  15. 3:32

    Then we run them through dedicated multimodal processing pipelines to extract the visual and written information.

  16. 3:40

    When you do RAG, you have to break apart this document into smaller chunks. When you do that, you quite often lose information from around the chunks, things like what section of the document it came from or even which document it came from.

  17. 3:55

    If you were to ask questions about a book and receive random paragraphs from the book, chances aren't great you'd get good answers, and that's kind of what's happening with chunking and the loss of the context.

  18. 4:08

    That's why we created semantic objects. It consists of the original chunk text as well as auto-generated metadata that preserves the information around the text, and then we re- rewrite the text into two ideal formats, one for search and one for completion.

  19. 4:30

    Thank you. [laughs]

  20. 4:30

    Hope you're networking right now.

  21. 4:31

    Yeah. Let, let me, let me, let me show you what that looks like with an example. So this is a figure from one of Air France's documents. If you were to OCR this and extract the text from it, vectorize it, put it in your vector database, it would look something like this.

  22. 4:47

    Look at how much information is lost in the process, though. Instead, what comes out of our ingestion pipeline is something like this,

  23. 4:57

    and this, this includes both the search version as well as the completion version of the text.

  24. 5:04

    When we receive a search query, we do something similar. We rewrite the query into a format that's compatible with the objects. Then we search the entire object, the original text, the auto-generated metadata, and the search version of the text.

  25. 5:20

    We use a fine-tuned LLM to re-rank the results and improve the accuracy. And in total, in our ingestion and search, there are more than nine models that are fine-tuned

  26. 5:32

    to help deliver this kind of accuracy. The end result is the world's most accurate RAG platform, and our users are able to build enter- enterprise-quality, production-ready applications in minutes, not months.

  27. 5:46

    Uh, I invite you to try it for yourself, though, EyeLevel.ai/XRay. [laughs]

  28. 5:51

    Thank you very much. Thank you, Ben. All right. [upbeat music]