airust 0.4.21

A modular Rust knowledge engine: lexical search, text matching, optional semantic retrieval and reranking
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub fn values(id: usize, dimensions: usize) -> Vec<f32> {
    (0..dimensions)
        .map(|d| {
            (((id as u64)
                .wrapping_mul(6364136223846793005)
                .wrapping_add((d as u64).wrapping_mul(1442695040888963407).wrapping_add(7)))
                % 10007) as f32
                - 5003.0
        })
        .collect()
}