mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 18:10:58 -05:00
fix: replace vector_count with dim (#4505)
This commit is contained in:
@@ -700,10 +700,12 @@ impl TryFrom<Vectors> for segment_vectors::VectorStructInternal {
|
||||
));
|
||||
}
|
||||
if let Some(vectors_count) = vectors_count {
|
||||
let dim = data.len() / vectors_count as usize;
|
||||
|
||||
segment_vectors::VectorStructInternal::MultiDense(
|
||||
segment::data_types::vectors::MultiDenseVectorInternal::try_from_flatten(
|
||||
data,
|
||||
vectors_count as usize,
|
||||
dim,
|
||||
).map_err(|err| {
|
||||
Status::invalid_argument(format!("Unable to convert to multi-dense vector: {err}"))
|
||||
})?,
|
||||
|
||||
Reference in New Issue
Block a user