Registry / Library

library · v0.1.1
Retrieval
Score ranked search or RAG results without giving repeated document IDs extra credit.
Use Retrieval
use vendor::retrieval::retrieval;
Run the example
nest demo retrieval@0.1.1
blyxc native-run retrieval-demo/main.blyx
Example source and expected output
use vendor::retrieval::retrieval;
fn main() {
let result = retrieval_at_k([7, 7, 9, 12], [7, 9], 3);
println!(at(result, 1));
println!(at(result, 2));
}
Expected output
1
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP | 3e8be65262 | a294f0c38e44fa665fec872463f9084e17ae6a38a5fc65448c33ea80397c383e |