Skip to content

Commit

Permalink
Linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sanketkedia committed Dec 5, 2024
1 parent 2192abd commit b327564
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions rust/worker/src/execution/orchestration/spann_knn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ pub struct SpannKnnOrchestrator {
// overhead.
}

#[allow(dead_code)]
impl SpannKnnOrchestrator {
#[allow(clippy::too_many_arguments)]
pub fn new(
Expand All @@ -96,12 +97,12 @@ impl SpannKnnOrchestrator {
query_embedding: Vec<f32>,
knn_projection: KnnProjectionOperator,
) -> Self {
let normalized_query_emb;
if knn_filter_output.distance_function == DistanceFunction::Cosine {
normalized_query_emb = normalize(&query_embedding);
} else {
normalized_query_emb = query_embedding;
}
let normalized_query_emb =
if knn_filter_output.distance_function == DistanceFunction::Cosine {
normalize(&query_embedding)
} else {
query_embedding
};
Self {
blockfile_provider,
hnsw_provider,
Expand Down

0 comments on commit b327564

Please sign in to comment.