Skip to content

EmbeddingFloat uses a List<Double> #367

@SimonW-dev

Description

@SimonW-dev

Basically title

public class EmbeddingFloat {

    private Integer index;
    private List<Double> embedding;
    private String object;

}

the embedding object returned by openAI is a float array - which i think is what this class was intented for.

{
  "object": "embedding",
  "embedding": [
    0.0023064255,
    -0.009327292,
    .... (1536 floats total for ada-002)
    -0.0028842222,
  ],
  "index": 0
}

Is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions