Skip to content

OpenAI.Embedding.Operator_Subscript

Andrew Lambert edited this page Jan 21, 2024 · 1 revision

OpenAI.Response.Operator_Subscript

Method signature

 Function Operator_Subscript(Optional ResponseIndex As Integer, VectorIndex As Integer) As Double

Return value

The vector at VectorIndex from the vector list corresponding to the ResponseIndex.

Remarks

Call this method with array-access syntax. The ResponseIndex is almost always zero, and may be omitted.

Syntax example

 Dim myEmbedding As OpenAI.Embedding ' assume populated
 Dim vector As Double = myEmbedding(5) ' retrieve 6th vector in the list

See also

Clone this wiki locally