Hacker News new | past | comments | ask | show | jobs | submit login
Choosing optimal RAG parameters (github.com/tonicai)
7 points by Ephil012 6 months ago | hide | past | favorite | 1 comment



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.




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

Search: