Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 796 Bytes

getOpenAiEmbedding.md

File metadata and controls

29 lines (17 loc) · 796 Bytes

@accordproject/concerto-graphDocs


@accordproject/concerto-graph / getOpenAiEmbedding

Function: getOpenAiEmbedding()

getOpenAiEmbedding(options, text): Promise<number[]>

Computes the vector embeddings for a text string. Uses the Open AI text-embedding-3-small model.

Parameters

Parameter Type Description
options undefined | OpenAiOptions -
text string the input text to compute embeddings for

Returns

Promise<number[]>

a promise to an array of numbers

Source

functions.ts:28