Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/search/from_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ impl Processor for ConfigSearchProcessor {
mod tests {
use clap::Parser;
use qdrant_client::qdrant::query::Variant as QueryVariant;
use qdrant_client::qdrant::text_query;
use qdrant_client::qdrant::vector_input::Variant as InputVariant;

use super::*;
Expand Down Expand Up @@ -566,7 +567,10 @@ mod tests {
let Some(QueryVariant::Text(text)) = request.query.and_then(|q| q.variant) else {
panic!("expected a text query");
};
assert_eq!((text.k, text.b), (Some(1.5), Some(0.25)));
let Some(text_query::Scoring::Bm25(bm25)) = text.scoring else {
panic!("expected BM25 params");
};
assert_eq!((bm25.k, bm25.b), (Some(1.5), Some(0.25)));
assert_eq!(text.query.split(' ').count(), 2);
}

Expand Down
Loading