EmbeddingItem interface

Representation of a single embeddings relatedness comparison.

Properties

embedding

List of embeddings value for the input prompt. These represent a measurement of the vector-based relatedness of the provided input.

index

Index of the prompt to which the EmbeddingItem corresponds.

Property Details

embedding

List of embeddings value for the input prompt. These represent a measurement of the vector-based relatedness of the provided input.

embedding: number[]

Property Value

number[]

index

Index of the prompt to which the EmbeddingItem corresponds.

index: number

Property Value

number