Skip to content

Commit

Permalink
fix: Use corrent place holder type for fp16 vector
Browse files Browse the repository at this point in the history
This place holder type was set to FloatVector by mistake. This PR
rectify the value for fp16 vector.

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia committed Mar 29, 2024
1 parent 7ab04e8 commit ab3999e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ab3999e

Please sign in to comment.