From 13140154791605e7c912133aa1394a142b3a5e43 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Tue, 24 Mar 2026 02:12:41 +0000 Subject: [PATCH] Fix hybrid query parameter types --- src/db.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/db.rs b/src/db.rs index d4424bb..3ae7f5e 100644 --- a/src/db.rs +++ b/src/db.rs @@ -107,10 +107,6 @@ impl Database { ) -> Result> { let client = self.pool.get().await?; let vector = Vector::from(embedding.to_vec()); - let threshold_f64 = threshold as f64; - let vector_weight_f64 = vector_weight as f64; - let text_weight_f64 = text_weight as f64; - let rows = client .query( r#" @@ -167,9 +163,9 @@ impl Database { &vector, &query_text, &agent_id, - &threshold_f64, - &vector_weight_f64, - &text_weight_f64, + &threshold, + &vector_weight, + &text_weight, &limit, ], )