🌐 AI搜索 & 代理 主页
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Change rank_score to rerank_score
  • Loading branch information
SilasMarvin committed Jun 13, 2024
commit ddd50730b19639ac6da92fc29bfd8f0e88d15af3
4 changes: 2 additions & 2 deletions pgml-sdks/pgml/src/vector_search_query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ pub async fn build_sqlx_query(
SIden::Str("chunk"),
SIden::Str("score"),
]);
query.expr_as(Expr::cust("(rank).score"), Alias::new("rank_score"));
query.expr_as(Expr::cust("(rank).score"), Alias::new("rerank_score"));

// Build the actual select statement sub query
let mut sub_query_rank_call = Query::select();
Expand Down Expand Up @@ -376,7 +376,7 @@ pub async fn build_sqlx_query(
SIden::Str("chunk"),
SIden::Str("score"),
])
.expr(Expr::cust("NULL"))
.expr_as(Expr::cust("NULL"), Alias::new("rerank_score"))
.from(SIden::String(format!("{prefix}_vector_search")));
query
};
Expand Down