Production RAG: what I learned from processing 5M+ documents
blog.abdellatif.io
Production RAG: what I learned from processing 5M+ documents
1–10 of 116 posts
Re: Production RAG: what I learned from processing 5M+ documents
#2Chunking strategy is a big issue. I found acceptable results by shoving large texts to to gemini flash and have it summarize and extract chunks instead of whatever text splitter I tried. I use the method published by Anthropic https://www.anthropic.com/engineering/contextual-retrieval i.e. include full summary along with chunks for each embedding.
I also created a tool to enable the LLM to do vector search on its own .
I do not use Langchain or python.. I use Clojure+ LLMs' REST APIs.
Re: Production RAG: what I learned from processing 5M+ documents
#3Re: Production RAG: what I learned from processing 5M+ documents
#4I have a RAG setup that doesn't work on documents but other data points that we use for generation (the original data is call recordings but it is heavily processed to just a few text chunks). Instead of a reranker model we do vector search and then simply ask GPT-5 in an extra call which of the results is the most relevant to the input question. Is there an advantage to actual reranker models rather than using a gen…
Re: Production RAG: what I learned from processing 5M+ documents
#5That is, there is nothing here that one could not easily write without a library.
Re: Production RAG: what I learned from processing 5M+ documents
#6Thanks for sharing. TIL about rerankers. Chunking strategy is a big issue. I found acceptable results by shoving large texts to to gemini flash and have it summarize and extract chunks instead of whatever text splitter I tried. I use the method published by Anthropic https://www.anthropic.com/engineering/contextual-retrieval i.e. include full summary along with chunks for each embedding. I also created a tool to enab…
Re: Production RAG: what I learned from processing 5M+ documents
#7What does query generation mean in this context, it’s probably not SQL queries right?
Re: Production RAG: what I learned from processing 5M+ documents
#8> What moved the needle: Query Generation What does query generation mean in this context, it’s probably not SQL queries right?
Re: Production RAG: what I learned from processing 5M+ documents
#9They say the chunker is the most important part, but theirs looks rudimentary: https://github.com/agentset-ai/agentset/blob/main/packages/e... That is, there is nothing here that one could not easily write without a library.
Ingestion + Agentic Search are two areas that we're focused on in the short term.