Exercises / rag
Retrieve top-k by overlap
retrieve(query, chunks, k=1) ranks by count of overlapping lowercase words. Print the winning id for 'refund days'.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / rag
retrieve(query, chunks, k=1) ranks by count of overlapping lowercase words. Print the winning id for 'refund days'.
Run to execute this in your browser. Nothing is sent to a server.