OpenAI-Compatible Embeddings
ai.embeddings_openai_compatible · version 1 · AI sub-node
Embeddings from any server implementing the OpenAI /embeddings endpoint.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| output 0 | ai_embedding |
Credentials
| Slot | Accepted kinds | Required |
|---|---|---|
openAiCompatibleApi | openai_compatible/api |
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
model | string | yes | Identifier of the model to call, as listed by the provider. Values from lookup openai_compatible.models. | ||
options | collection | {} | Optional settings. | ||
options.dimensions | number | Shorten vectors to this many dimensions when the model supports it. | |||
options.batchSize | number | 512 | Batch Size. How many texts to send per request. | ||
options.stripNewLines | boolean | true | Strip New Lines. Replace line breaks with spaces before embedding. | ||
options.baseURL | string | Base URL. Send requests to this API root instead of the provider default. | |||
options.timeout | number | 600000 | Timeout (ms). Give up on a single request after this many milliseconds. | ||
options.maxRetries | number | 2 | Max Retries. How many times to retry after rate limiting or a server error. |
Import
No exported node type imports to this node.