From d43cd42da9ebf348f7df9f568b6cfc3b8d53b254 Mon Sep 17 00:00:00 2001 From: congqixia Date: Fri, 29 Mar 2024 14:33:05 +0800 Subject: [PATCH] fix: Use corrent place holder type for fp16 vector (#688) This place holder type was set to FloatVector by mistake. This PR rectify the value for fp16 vector. Signed-off-by: Congqi Xia --- client/insert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/insert.go b/client/insert.go index d7b78cf7..d2330127 100644 --- a/client/insert.go +++ b/client/insert.go @@ -511,7 +511,7 @@ func vector2Placeholder(vectors []entity.Vector) *commonpb.PlaceholderValue { case entity.BFloat16Vector: placeHolderType = commonpb.PlaceholderType_BFloat16Vector case entity.Float16Vector: - placeHolderType = commonpb.PlaceholderType_FloatVector + placeHolderType = commonpb.PlaceholderType_Float16Vector case entity.SparseEmbedding: placeHolderType = commonpb.PlaceholderType_SparseFloatVector }