To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
A single embedding vector OpenAI generated for one input text, as returned in the data list of CreateEmbeddingsResponse. The index ties the embedding back to the position of its input text in the original request.
Properties
| Property | Returns | Description |
|---|---|---|
| embedding | List<Float> | The embedding vector itself, as a list of floating point values whose length depends on the model used. |
| index | Integer | Zero-based position of the input text this embedding was generated for, matching its order in the original embeddings request. |
| object | String | Object type string OpenAI returns for this item, typically "embedding". |
Methods
getObject()
Returns: String
Object type string OpenAI returns for this item, typically "embedding".
getIndex()
Returns: Integer
Zero-based position of the input text this embedding was generated for, matching its order in the original embeddings request.
getEmbedding()
Returns: List<Float>
The embedding vector itself, as a list of floating point values whose length depends on the model used.