I found the optimal top-k for my RAG system. Then I ran it again.
This story is from 2026-10-07. It is preserved in the archive; the latest stories are on the live feed.
I built a small retrieval-augmented generation system over a corpus of research papers and wanted to answer an ordinary question: how many chunks should I retrieve? So I did what the tutorials suggest — swept top-k across 3, 5, 8 and 12, scored each configuration with RAGAS, and read off the winner…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-10-07 13:00 · DEV Community — Machine Learning
I found the optimal top-k for my RAG system. Then I ran it again.