To run the demo locally using IBM Watsonx.ai, follow the instructions below. For more information, refer to the Watsonx AI product page.
-
Create an IBM Watsonx.ai Account:
- Follow this guide to set up your IBM Cloud instance.
-
Instantiate Watsonx.ai Service:
- Once your account is created, instantiate a Watsonx.ai service from your IBM account.
-
Generate an API Key:
- In your IBM Watsonx console, navigate to the
Profile and settings
section and generate an API key. - Learn how to generate an API key.
- The API key will follow this format:
cpd-apikey-{username}-{timestamp}
where{username}
is your IBMid and{timestamp}
indicates when the key was generated.
- The API key will follow this format:
- In your IBM Watsonx console, navigate to the
-
Create a Project:
- Create a project within your IBM Watsonx account. Refer to this guide.
- Make a note of the project ID. To get the project ID:
- Open your project in Watsonx.ai.
- Click the Manage tab.
- Copy the Project ID from the Details section under the General tab.
- Open a new terminal
git clone https://github.com/DecisionsDev/rule-based-llms.git
cd rule-based-llms
Since this demo runs with Watsonx.ai in the cloud, we’ll use the watsonx.env configuration.
- Copy the
watsonx.env
file to llm.env so that the demonstration will used this mode.
cp watsonx.env llm.env
- Edit the llm.env file and replace the placeholders with your specific information:
You should adjust the variables :
- WATSONX_APIKEY=
- WATSONX_PROJECT_ID=
- WATSONX_URL=https://us-south.ml.cloud.ibm.com (Depending of your location)
Once the environment is set up, you are ready to run the demo. Follow the instructions on how to launch the demo with docker
The files in this repository are licensed under the Apache License 2.0.
© Copyright IBM Corporation 2024.