Guide to run the IBU Insurance demo
This guide provides step-by-step instructions to set up this demo on macOS.
Table of Contents
- macOS Installation
- Step 1: Install Homebrew
- Step 2: Install Colima
- Step 3: Install Docker and Docker Compose
- Step 4: Start Colima
- Step 5: Clone the Demo Repository
- Step 6: Setup IBM watsonx.ai
- Step 7: Setup the Demo environment
- Step 8: Run the Demo
- Step 9: Demo scenario
macOS Installation
Step 1: Install Homebrew
Homebrew is a package manager for macOS that simplifies the installation of software.
To install Homebrew, open your Terminal and run the following command:
After the installation is complete, verify that Homebrew is installed:
Step 2: Install Colima
Colima is a lightweight container runtime for macOS that works with Docker.
To install Colima, run:
If you have an Apple Silicon (M1/M2) Mac, you need to install Rosetta:
Step 3: Install Docker and Docker Compose
Docker is essential for containerization, and Docker Compose helps in managing multi-container applications.
To install Docker and Docker Compose, run:
Step 4: Start Colima
Now, you can start Colima with the desired configuration. If you have an Intel Mac, run:
For Apple Silicon (M1/M2) Macs, run:
Step 5: Clone the Demo Repository
Now that your environment is set up, you can clone the athena-owl-demos repository. If you don't have Git installed, you can do so by running:
Then, clone the repository and navigate into the demo directory:
Step 6: Setup IBM watsonx.ai
-
Create an IBM watsonx.ai account
Visit the IBM watsonx.ai page and follow the links to set up a Cloud instance. -
Generate an API key
In your IBM Cloud account, go toProfile and settingsand generate an API key. -
Instantiate a watsonx.ai service
From your IBM Cloud account, create a new watsonx.ai service instance. -
Copy your watsonx.ai configuration parameters
WATSONX_URL=<your watsonx.ai URL> # example value = https://us-south.ml.cloud.ibm.com/
WATSONX_APIKEY=<your watsonx.ai API Key>
WATSONX_PROJECT_ID=<your watsonx.ai Project ID>
Step 7: Setup the demo environment
Navigate to the IBU Insurance demo directory:
Create your .env file. It contains some configuration parameters. Paste your watsonx.ai configuration parameters:
WATSONX_URL=<your watsonx.ai URL> # example value = https://us-south.ml.cloud.ibm.com/
WATSONX_APIKEY=<your watsonx.ai API Key>
WATSONX_PROJECT_ID=<your watsonx.ai Project ID>
If you plan to use other LLMs for which a key is needed, paste them here:
# Define the IBM KEY to access models deployed on watsonx.ai
IBM_API_KEY=USE_YOUR_IBM_API_KEY
# Only when you want to use one of Open AI model
OPENAI_API_KEY=USE_YOUR_OPENAI_API_KEY
# Only when you want to use one a Mistral AI model
MISTRAL_API_KEY=USE_YOUR_MISTRAL_API_KEY
# Use Tavily to do search on last news, that could be interesting to validate tool calling
TAVILY_API_KEY=USE_YOUR_TAVILY_API_KEY
# if you want to get traces in Langchain tracing - this is optional
LANGCHAIN_TRACING_V2=false
LANGCHAIN_API_KEY=USE_YOUR_LANGCHAIN_KEY
# If you want to use one of the Anthropic Claude models
ANTHROPIC_API_KEY=USE_YOUR_ANTHROPIC_KEY
Step 8: Run the Demo
Once everything is set up, you can run the project by executing:
After the project is running, you can access the Owl Agent at:
Step 9: Demo Scenario
Your environment should now be fully set up and ready for development and testing. If you encounter any issues, please refer to the documentation or raise an issue in the GitHub repository.