Supported Models
You can find a list of supported models at IBM watsonx.ai Documentation. The currently supported model names are:ibm/slate-125m-english-rtrvribm/slate-30m-english-rtrvrsentence-transformers/all-minilm-l12-v2intfloat/multilingual-e5-large
Parameters
The following parameters can be passed to thecreate method:
| Parameter | Type | Default Value | Description |
|---|---|---|---|
| name | str | ”ibm/slate-125m-english-rtrvr” | The model ID of the watsonx.ai model to use |
| api_key | str | None | Optional IBM Cloud API key (or set WATSONX_API_KEY) |
| project_id | str | None | Optional watsonx project ID (or set WATSONX_PROJECT_ID) |
| url | str | None | Optional custom URL for the watsonx.ai instance |
| params | dict | None | Optional additional parameters for the embedding model |
Usage Example
First, the watsonx.ai library is an optional dependency, so must be installed seperately:create directly):