Exercises / rag
Cosine rank two chunks
cosine(a, b) then search(q) returns the best chunk name. Print the winner for [0.9, 0.1] among oom and refund.
Live Pythonpython
Output
Run to execute this in your browser. Nothing is sent to a server.
Exercises / rag
cosine(a, b) then search(q) returns the best chunk name. Print the winner for [0.9, 0.1] among oom and refund.
Run to execute this in your browser. Nothing is sent to a server.