new OpenAIEmbeddingProvider(openaiApiKey)
OpenAI Embedding Provider
Parameters:
Name | Type | Description |
---|---|---|
openaiApiKey |
string |
- Source:
Methods
(async) get(text)
Retrieves the embedding for the given text using the OpenAI API.
Parameters:
Name | Type | Description |
---|---|---|
text |
string | Text to retrieve embedding for |
- Source:
(async) makeRateLimitedRequest(url, options)
Parameters:
Name | Type | Description |
---|---|---|
url |
RequestInfo | URL | |
options |
RequestInit | undefined |
- Source: