IBM Watson
A RocketRide LLM node that connects IBM watsonx foundation models to a pipeline via the IBM Cloud API.
What it does
Connects IBM watsonx foundation models to your pipeline via the IBM Cloud API. Used primarily as an llm invoke connection by agents and other nodes that need an LLM. Can also be used directly via lanes.
Uses the ibm-watsonx-ai SDK (ModelInference with TextChatParameters). The service URL is derived from the configured location as https://<location>.ml.cloud.ibm.com. The location is validated against a fixed allowlist of known IBM Cloud regions before any connection is made. Temperature is fixed at 1.
All four configuration fields are required. The node raises a configuration error at pipeline start if the API key, location, model ID, or project ID is missing, or if the location is not a known IBM Cloud region.
Token counts are estimated with a simple word-based approximation (roughly 0.75 tokens per word) rather than the model's native tokenizer.
Configuration
Lanes
| Lane in | Lane out | Description |
|---|---|---|
questions | answers | Send a question directly, receive a generated answer |
Fields
| Field | Type | Description |
|---|---|---|
apikey | string | IBM Cloud API key (required) |
location | enum | IBM Cloud region (required, see below) |
model | string | watsonx model ID, specified directly; no preset profiles (required) |
project_id | string | IBM watsonx project ID (required) |
Locations
The location value must be one of the following known IBM Cloud regions. Any other value is rejected at startup.
| Value | Region |
|---|---|
us-south | Dallas |
us-east | Washington DC |
eu-gb | London |
eu-de | Frankfurt |
eu-es | Madrid |
jp-tok | Tokyo |
jp-osa | Osaka |
au-syd | Sydney |
ca-tor | Toronto |
br-sao | Sao Paulo |
Invoke functions
When used as an llm invoke connection, the node exposes the following functions to connected agents and other nodes:
| Function | Description |
|---|---|
ask | Send a question and receive the generated answer |
getContextLength | Total context window size, in tokens |
getOutputLength | Maximum output size, in tokens |
getTokenCounter | Token-counting function (word-based approximation) |