@accordproject/concerto-graph • Docs
@accordproject/concerto-graph / getOpenAiEmbedding
getOpenAiEmbedding(
options
,text
):Promise
<number
[]>
Computes the vector embeddings for a text string.
Uses the Open AI text-embedding-3-small
model.
Parameter | Type | Description |
---|---|---|
options |
undefined | OpenAiOptions |
- |
text |
string |
the input text to compute embeddings for |
Promise
<number
[]>
a promise to an array of numbers