GenAI Routing
Overview
This documentation walks through how to leverage generative AI to route a user's request to the most appropriate action/workflow or perform RAG on the most relevant data corpuses. This generative AI routing can be carried out by one of two methods.
- watsonx.ai
- watsonx.gov
watsonx.ai
Create watsonx.ai custom extension
- In your assistant, navigate to Integrations page, click "Build custom extension" -> click "Next" -> Input Extension name
watsonx
-> click "Next" . - download json file: watsonx-openapi.json and import file to WA
- click "Next" -> click "Finish"
- Lower Right corner of the watsonx extension, click "Add" -> click "Add" -> click "Next"
- In Authentication page, in the Authentication type dropdown, select "OAuth 2.0"
- For Apikey, create and copy a new API key from API key
- Click "Next", click "Finish", click "Close"
Action configuration
- Create a new action leveraging the extension created above
- Configure the model parameters to the appropriate values for the desired use case
watsonx.gov Walkthrough
Follow the instructions from here