mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Merge pull request 'Fix hybrid query float4 parameter bindings' (#24) from codex/fix-query-float4-bindings into main
Reviewed-on: Ingwaz/openbrain-mcp#24
This commit is contained in:
10
src/db.rs
10
src/db.rs
@@ -107,10 +107,6 @@ impl Database {
|
|||||||
) -> Result<Vec<MemoryMatch>> {
|
) -> Result<Vec<MemoryMatch>> {
|
||||||
let client = self.pool.get().await?;
|
let client = self.pool.get().await?;
|
||||||
let vector = Vector::from(embedding.to_vec());
|
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
|
let rows = client
|
||||||
.query(
|
.query(
|
||||||
r#"
|
r#"
|
||||||
@@ -167,9 +163,9 @@ impl Database {
|
|||||||
&vector,
|
&vector,
|
||||||
&query_text,
|
&query_text,
|
||||||
&agent_id,
|
&agent_id,
|
||||||
&threshold_f64,
|
&threshold,
|
||||||
&vector_weight_f64,
|
&vector_weight,
|
||||||
&text_weight_f64,
|
&text_weight,
|
||||||
&limit,
|
&limit,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user