Skip to content

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

@guygodin

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!

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