Skip navigation
Don't do RAG - One counter intuitive thing I learnt past few weeks - Load whole knowledge base into…
0:00 / 13:10

Don't do RAG - One counter intuitive thing I learnt past few weeks - Load whole knowledge base into…

Jason Zhou

@jasonzhou199337K followers

Visit on X
457 likesDownloadOriginal post

82,929 views

Don't do RAG - One counter intuitive thing I learnt past few weeks - Load whole knowledge base into prompt is actually fast, cheap & more accurate than normal RAG pipeline I was building an MCP for reading external doc, I was able to generate right code example by feeding 50 pages API doc directly to Gemini 2.0 prompt On my Helicone dashboard, It gave me answer within 3 sec, at cost of $0.006, which is insanely fast & cheap imo Here I broken it down further on the method & how I built the API doc MCP 0:00 Intro to method 8:50 Gemini 2.0 example + MCP If you want to learn more about building LLM apps, join AI builder club where I post tips weekly:

10 Comments

Comments from the original post on X (Twitter)

  • Mark Fer's profile picture

    @markfersh

    What if you want to dive into thousands of sales calls, marketing content, etc?

    3 likes

  • Breadcrumb's profile picture

    @breadcrumbai

    Looking to automate reporting? Use AI agents to turn spreadsheets to reports in minutes without any coding.

    742 likes

  • Imiël Visser's profile picture

    @Imiel_Visser

    Gemini has 1M context window vs Claude 200k... 50 pages is nothing, but what is the cost vs RAG for volume processing?

    1 like

  • Brandon Culver's profile picture

    @bcc__ai

    No offense, but RAG isn't for 50 pages, it's for 500k pages

    1 like

  • josh's profile picture

    @joshjetzt

    Have you tried using Figma MCP? I’m curious if it’s possible to load prebuilt components that the AI can use during the build.

  • AJ's profile picture

    @attaboiaj

    this is a good stuff. I am thinking of is cursor is able to read npm packages well or not because with not so known packages its' did a really bad job manybe we can connect something like this to a package wdyt?

  • Ajay Jagota 🔑🏃‍♂️'s profile picture

    @ajayjagota

    This is brilliant TY 🙏 Love how context drives the performance and you can track it in helicone 👏

  • Sam Sung's profile picture

    @samuelsung

    Do you think this is the way to go for giving “memory” to AI? I’m working on a chatbot that I want to give memory, but worried that as conversations get longer (and users have more conversations) that the cost of processing it all will be too much (currently used Claude 3.5 sonnet with caching, but still it gets expensive - like 50 cents for a single, long conversation). I’ve been wondering how I can figure out this memory issue - RAG? Create summaries with cheaper models?

  • Kris's profile picture

    @CreativeFrubser

    We are working on big 1GB+ pdf DB. I think OCR once. Summarize to 50 pages. Send that plus relevant files to Gemini to answer in super context? Wanna join our Discord?

  • Boring traveler's profile picture

    @akiraxtwo

    How about in local?