Senior Software Engineer & AI Engineer in Riyadh | Laravel, Next.js, AI Agents
Senior Software Engineer & AI Engineer based in Riyadh. I build with Laravel, Next.js and AI agents. Founder of Parwazio, co-founder of WorldWebTree. I write about production engineering and AI in the real world. More at itsumarfarooq.com
Markdown supported · ⌘↵ to post
The three policy versions example is the clearest argument here. A one-shot pipeline returning the old document because its wording matched best is a failure I have seen too, and it is nasty because the answer comes back with full confidence. I would add that you can often fix part of it without agents by tagging chunks with version and effective date metadata and filtering before the similarity search. Did you consider that, and was the per-year search loop mainly chosen because the questions needed cross-version comparison? I am curious how much latency the extra tool calls added for simple leave-day lookups.
Osama Malik
The three policy versions example is a good one. One shot retrieval returning the old wording because it matched best is a classic failure. A cheaper middle ground can be tagging chunks with a version or year in metadata and filtering on it, so even the fixed pipeline picks the right document set.