Skip to content

Why is EmbeddingResponse.Embedding of type List<double> instead of List<float>? #509

Answered by kayhantolga
mr-shevchenko asked this question in Q&A
Discussion options

You must be logged in to vote

This is an open issue, and I am considering using double instead of float. I am not sure when OpenAI updated their response, but previously they were returning 18 digits, which is a higher capacity than float can carry.
#219

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mr-shevchenko
Comment options

Answer selected by mr-shevchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants