Skip to content

Commit 65a1002

Browse files
committed
Fix: handle IvfFlat variant correctly in Qdrant vector index setup
1 parent 5099ea7 commit 65a1002

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/ops/targets/qdrant.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,10 @@ impl SetupChange {
233233
params = params.hnsw_ef_construct(*ef_val as u64);
234234
}
235235
}
236-
spec::VectorIndexMethod::IvfFlat { nlist } => {
237-
if let Some(nlist_val) = nlist {
238-
params = params.ivf_flat_nlist(*nlist_val as u64);
239-
}
236+
spec::VectorIndexMethod::IvfFlat => {
237+
api_bail!("IvfFlat vector index method is not supported for Qdrant yet");
240238
}
239+
241240
_ => {
242241
api_bail!("Unsupported vector index method for Qdrant");
243242
}

0 commit comments

Comments
 (0)