Skip to content

EmbeddingResponse should be a List<float> rather than List<double> #219

Description

@guygodin

In most algorithms, computing the dot-product for embeddings to check for text similarity will be done against 2 float arrays so it would make more sense to read the data as float rather than double.

There could always be typed CreateEmbeddingResponseFloat and CreateEmbeddingResponseDouble classes.

Great library btw, love using it!
Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions