luckyshot 0.3.1

A CLI tool for one-shot code generations using RAG and file watching
1
2
3
4
5
6
pub fn dot_product_similarity(query: &[f32], doc: &[f32]) -> f32 {
    query.iter()
        .zip(doc.iter())
        .map(|(a, b)| a * b)
        .sum()
}