Blyx Nest Blyx language
Registry / Framework
framework · v0.1.0

Shrike

Combine lexical and semantic search results by rank, then walk the merged list in a deterministic order.

Source repository · Package JSON

Use Shrike

use vendor::shrike::shrike;

Run the example

nest demo shrike@0.1.0
blyxc native-run shrike-demo/main.blyx
Example source and expected output
use vendor::shrike::shrike;

fn main() {
    let lexical = [41, 17, 83];
    let semantic = [17, 83, 99];
    let first = sh_next(lexical, semantic, 60.0, -1.0);
    let second = sh_next(lexical, semantic, 60.0, first);
    println!(first);
    println!(second);
}

Expected output

17
83

Published versions

VersionPackageSource commitSHA-256
0.1.0Download ZIPfacb71a12ce628f776f8faf493ed7dabe3191cb5f3cb9428bb948766c4c6661737253f1329