Skip navigation
Building a RAG system that works with real-life documents is crazy hard.
0:00 / 10:11

Building a RAG system that works with real-life documents is crazy hard.

Santiago

@svpino453K followers

Visit on X
835 likesDownloadOriginal post

75,788 views

Building a RAG system that works with real-life documents is crazy hard. Why is nobody talking about this? (I'll show you what a complex document looks like in the attached video. Good luck with the 10-line code demos if you want to deal with this.) All I see online are "how to talk to a PDF" demos that won't take you far. If you think that's all you need, you won't like what happens when you try. In the video below, I'll show you what it takes to build a system that processes huge numbers of documents without losing accuracy. There are a few tricks here that I'm sure will impress you. The magic is happening in three phases: • In the way we process the documents • In the way we chunk the content • In the way we augment and store the chunks This is all built-in in GroundX, EyeLevel.AI's out-of-the-box RAG system. You can use it as a SaaS or install it in your own Kubernetes cluster and run it locally. If you have seen any other RAG system doing what I do in the attached video, please, let me know. I'd love to check them out. Disclaimer: I work with the team at EyeLevel. My advice is to take any document you have lying around, go to their site, create an account, and try them out. Here is their website:

10 Comments

Comments from the original post on X (Twitter)

  • Δημήτρης's profile picture

    @nephel_

    have you seen looks similar and promising?

    16 likes

  • Santiago's profile picture

    @svpino

    I haven't seen it, no. Thanks for sharing it!

    3 likes

  • Daniel Davis's profile picture

    @TrustSpooky

    We agree. That's why we build @trustgraphAI. TrustGraph is a full model agnostic AI Engine with native GraphRAG. No need to build anything. Deploys with Docker or Kubernetes.

    12 likes

  • Erik's profile picture

    @ej_dev1

    I thought that building RAG systems is easy until I tried to build one. If you want it to work well it is really hard.

    9 likes

  • Santiago's profile picture

    @svpino

    Yeah, building a demo is very simple. You can understand the basic components in a few minutes. But doing anything serious with it is really complex.

    3 likes

  • Shane's profile picture

    @shane8burger

    Really amazing! How can one find the documention to install it in your own Kubernetes cluster and run it locally? I've only been able to find the SaaS option...

    7 likes

  • AK⚡'s profile picture

    @Ak47Robinhood

    The problem is, in the most of the enterprise use cases, where the data is highly regulated, they do not approve open source frameworks.

    4 likes

  • Santiago's profile picture

    @svpino

    Actually, I've seen two different approaches: 1. Enterprises that don't approve closed-systems running outside their premises. They would rather use open-source. 2. Enterprises that don't approve open-source software that doesn't come with certain guarantees or is too complex to set up.

    2 likes

  • Philip Collins's profile picture

    @PhilipC25329570

    Or just pass your pdf's to gemini files API. Is working very well for me with 15 documents, with 10 to 165 pages each, all in a single prompt. Gemini finds and extracts multiple small details and builds and returns a compliant JSON response.

    4 likes

  • Santiago's profile picture

    @svpino

    If this is working for you, that's awesome. But in many cases, relying on the output of the model is not enough to build a reliable retriever. Notice that here, the process is not just about "understanding the document," but augmenting it with contextual information as well.

    2 likes