You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I check the official api doc, it says return List<Float>, but the SDK source code returns List<Double>, which can't insert into milvus, i have to convert to float manully.
The text was updated successfully, but these errors were encountered:
TomerAberbach
changed the title
why does the Embedding api returns List<Double>, not List<Float>
Embedding API returns List<Double> instead of List<Float>Apr 28, 2025
Does the official document refer to a list of floats shown in this image? I think that here "floats" means floating-point numbers, not the type being float.
官方文档是指这张图中的a list of floats么?我认为这里的floats指的是浮点数,而不是类型是float。
In Java, the decimal precision of a float is about 6-7 digits, but the number of decimal places in the figure below clearly exceeds this precision, so Double must be used.
My understanding of the Milvus SDK is limited, but from my impression, since Java applications don't particularly care about memory usage, all parameter types tend to be written as larger ones. There's almost no need to use the float type; it's either double or BigDecimal.
I check the official api doc, it says return
List<Float>
, but the SDK source code returnsList<Double>
, which can't insert into milvus, i have to convert to float manully.https://platform.openai.com/docs/api-reference/embeddings
The text was updated successfully, but these errors were encountered: