Note
If this file is rendered in TEXT mode in VS Code, click the preview button.
(upper-right corner, has a 📖+🔍
symbol)
Gain familiarity with LLM tools by learning how to easily create them with Apache Camel. In this lab, you'll create an agent that uses live feeds to assist clients.
Note
If using the Developer Sandbox for the first time, you'll be required to register for a Red Hat account.
To launch this tutorial, you only need 2 steps:
-
If you haven't already done so, click the link below to provision the tutorial:
(right-click & open in new tab)
Provision Tutorial in the Developer Sandbox -
(In VS Code, open
Readme.md
in preview mode, if not showing automatically)Once provisioned, from VS Code in DevSpaces, unfold the
ENDPOINTS
group in the left panel, open theTutorial
documentation and make sure you choose theLLM tools
tile to get started, as per the actions in the picture below:
Sometimes the provisioning process goes wrong.
Try following the steps below to delete the failed workspace and restart.
-
Click Workspaces at the top of the screen as illustrated below.
Dev Spaces's dashboard will open. -
Find the ⋮ button (failed workspace).
-
Select Delete Workspace
-
In the confirmation panel, tick the box, and click Delete
Mouse actions in VS Code to delete failed workspace.
After the actions above, retry provisioning your lab.
Jump back to:
This repository contains a collection of labs runnable in the Developer Sandbox, a free to use OpenShift environment, where users can follow guided instructions to fully cover the material in a fully remote development platform.
The following article in Red Hat Developers guides readers on how to get started to enjoy the learning material in the Developer Sandbox.
This tutorial is intended to run in the Developer Sandbox.
However, if you're familiar with the content and you just want to run the solution locally, you can.
You'll need to make sure you meet the pre-requisites and follow the steps below.
Your environment must have:
- Java 17 installed
- Camel JBang installed (tested with 4.8.1)
- Connectivity to an LLM with Tools support
-
Change to the directory:
cd camel/tools/solution/local
-
Edit the
application.properties
file and configure the following setting:llm.url
-
Run the application using Camel JBang with:
camel run *
If you'd like to deploy on OpenShift, export the solution to a Camel Quarkus application using the following script:
../../scripts/xx
When the export complets, you can run locally your Camel Quarkus project with:
./mvnw quarkus:dev
If you'd like to deploy on OpenShift
- Configure the
llm.url
setting as necessary. - Make sure your
oc
client points to your target namespace. - Run the command:
./mvnw package -Dquarkus.kubernetes.deploy=true