Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How do you solve aggregation when agentic RAG breaks down?
1 point by bimbobruno 1 day ago | hide | past | favorite | discuss
I keep hitting the same failure mode with agentic RAG over collections of similar PDFs, like monthly electricity and gas bills from the same utility provider.

It works well for retrieval: “Find my gas bill from January.”

Though even there similarity can be brittle. If I don’t specify the year, retrieval may surface the wrong January because multiple documents look nearly identical.

It really breaks down for aggregation: “How much did I spend on electricity and gas last year?” “Which months had the highest energy costs?”

At that point the problem feels misaligned with similarity search itself. You don’t want relevant chunks, you want structured values aggregated across documents.

Curious how people solve this. SQL tools? Structured extraction? Different agent patterns?

 help



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: