Skip to content

Choosing optimal RAG parameters

github.com/TonicAI
7 pointsEphil0121 comment
On HN

Comments

Author here. The linked Jupyter notebook shows how to use tvalmetrics, a RAG metrics Python package, to evaluate RAG query engines built using LlamaIndex on a dataset of Paul Graham essays about startup founders. The RAG parameters chunk size and number of retrieved context chunks are varied and tvalmetrics is used to show which choice of chunk size and number of retrieved context chunks is optimal.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.