Live data from Hacker News

Production RAG: what I learned from processing 5M+ documents

blog.abdellatif.io

31–40 of 116 posts

Re: Production RAG: what I learned from processing 5M+ documents

#31
Not here to schlep for AWS but S3 Vectors is hands down the SOTA here. That combined with a Bedrock Knowledge Base to handle Discovery/Rebalance tasks makes for the simplest implementation on the Market.

Once Bedrock KB backed by S3 Vectors is released from Beta it'll eat everybody's lunch.

Re: Production RAG: what I learned from processing 5M+ documents

#33

The point about synthetic query generation is good. We found users had very poor queries, so we initially had the LLM generate synthetic queries. But then we found that the results could vary widely based on the specific synthetic query it generated, so we had it create three variants (all in one LLM call, so that you can prompt it to generate a wide variety, instead of getting three very similar ones back), do paral…

final tip is to also feed the interpretation of the user search to the user on the other side, so he can check if the llm understanding was correct.

Re: Production RAG: what I learned from processing 5M+ documents

#34

The point about synthetic query generation is good. We found users had very poor queries, so we initially had the LLM generate synthetic queries. But then we found that the results could vary widely based on the specific synthetic query it generated, so we had it create three variants (all in one LLM call, so that you can prompt it to generate a wide variety, instead of getting three very similar ones back), do paral…

> For the searches we use hybrid dense + sparse bm25, since dense doesn't work well for technical words.

One thing I’m always curious about is if you could simplify this and get good/better results using SPLADE. The v3 models look really good and seem to provide a good balance of semantic and lexical retrieval.

Re: Production RAG: what I learned from processing 5M+ documents

#35

Not here to schlep for AWS but S3 Vectors is hands down the SOTA here. That combined with a Bedrock Knowledge Base to handle Discovery/Rebalance tasks makes for the simplest implementation on the Market. Once Bedrock KB backed by S3 Vectors is released from Beta it'll eat everybody's lunch.

Shill, not schlep.

I'm correcting you less out of pedantry, and more because I find the correct term to be funny.

Re: Production RAG: what I learned from processing 5M+ documents

#36
post #11

Similar writeup I did about 1.5 years ago for processing millions of (technical) pages for RAG. Lots has stayed the same it seems https://jakobs.dev/learnings-ingesting-millions-pages-rag-az...

I also built a RAG system about a year back for technical search, everything seems the same!

Re: Production RAG: what I learned from processing 5M+ documents

#38
post #37

I find it interesting that so many services and tools were investigated except for embedding models. I would have thought that's one of the biggest levers.

they just grabbed the better one (3-large) right off the bat. 6x cost to 3-small, but it's still tiny.

Re: Production RAG: what I learned from processing 5M+ documents

#39

The point about synthetic query generation is good. We found users had very poor queries, so we initially had the LLM generate synthetic queries. But then we found that the results could vary widely based on the specific synthetic query it generated, so we had it create three variants (all in one LLM call, so that you can prompt it to generate a wide variety, instead of getting three very similar ones back), do paral…

Boy, that should not be the concern of the end user (developer) but those implementing RAG solutions as a service at Amazon, Microsoft, Openai and so on.

Re: Production RAG: what I learned from processing 5M+ documents

#40

Not here to schlep for AWS but S3 Vectors is hands down the SOTA here. That combined with a Bedrock Knowledge Base to handle Discovery/Rebalance tasks makes for the simplest implementation on the Market. Once Bedrock KB backed by S3 Vectors is released from Beta it'll eat everybody's lunch.

Shill, not schlep. I'm correcting you less out of pedantry, and more because I find the correct term to be funny.

I feel like I'm schelpin' through these comments, it's all mishigas
Post reply on HN