Exercises / rag
RRF two ranked lists
rrf(a, b, k=60) adds 1/(k+rank) per list (rank starts at 1). Print the top id for a=['a','gold'] and b=['gold','b'].
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / rag
rrf(a, b, k=60) adds 1/(k+rank) per list (rank starts at 1). Print the top id for a=['a','gold'] and b=['gold','b'].
Run to execute this in your browser. Nothing is sent to a server.