{"id":18322862,"url":"https://github.com/redhat-middleware-workshops/devsandbox-category-llm-basics","last_synced_at":"2025-06-15T15:35:27.059Z","repository":{"id":255342373,"uuid":"848918117","full_name":"RedHat-Middleware-Workshops/devsandbox-category-llm-basics","owner":"RedHat-Middleware-Workshops","description":"Get started setting up LLM essentials for your applications","archived":false,"fork":false,"pushed_at":"2024-11-17T00:09:33.000Z","size":7097,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-12T23:14:22.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedHat-Middleware-Workshops.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-28T16:37:52.000Z","updated_at":"2024-11-17T00:09:36.000Z","dependencies_parsed_at":"2024-11-05T18:44:54.853Z","dependency_job_id":null,"html_url":"https://github.com/RedHat-Middleware-Workshops/devsandbox-category-llm-basics","commit_stats":null,"previous_names":["redhat-middleware-workshops/devsandbox-category-llm-basics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fdevsandbox-category-llm-basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fdevsandbox-category-llm-basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fdevsandbox-category-llm-basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedHat-Middleware-Workshops%2Fdevsandbox-category-llm-basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedHat-Middleware-Workshops","download_url":"https://codeload.github.com/RedHat-Middleware-Workshops/devsandbox-category-llm-basics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643007,"owners_count":21138355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T18:26:16.448Z","updated_at":"2025-04-12T23:14:28.925Z","avatar_url":"https://github.com/RedHat-Middleware-Workshops.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!NOTE]  \n\u003e If this file is rendered in TEXT mode in VS Code, click the preview button. \\\n\u003e (upper-right corner, has a `📖+🔍` symbol)\n\n# LLM Basics in the Developer Sandbox\n\nGain 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.\n\n## Get started with the tutorial\n\n\u003e [!NOTE]  \n\u003e If using the Developer Sandbox for the first time, you'll be required to register for a Red Hat account.\n\nTo launch this tutorial, you only need 2 steps:\n\n1. If you haven't already done so, click the link below to provision the tutorial:\n\n    \u003csub\u003e(right-click \u0026 open in new tab)\u003c/sub\u003e \\\n    [Provision Tutorial in the Developer Sandbox](https://workspaces.openshift.com/#https://github.com/RedHat-Middleware-Workshops/devsandbox-catalog-demo.git)\n    \u003c!-- \u003ca target=\"_blank\" href=\"https://workspaces.openshift.com/#https://github.com/RedHat-Middleware-Workshops/devsandbox-catalog-ai-labs.git\"\u003eProvision Tutorial in the Developer Sandbox\u003c/a\u003e --\u003e\n\n2. \u003csub\u003e(In VS Code, open `Readme.md` in preview mode, if not showing automatically)\u003c/sub\u003e\n\n\n    Once provisioned, from VS Code in DevSpaces, unfold the `ENDPOINTS` group in the left panel, open the `Tutorial` documentation and make sure you choose the `LLM tools` tile to get started, as per the actions in the picture below:\n\n    ![](docs/labs/tools/images/00-open-tutorial.png)\n    *Mouse actions in VS Code to open the tutorial.*\n\n\u003cbr/\u003e\n\n### How to recover from failed workspace\n\nSometimes the provisioning process goes wrong. \\\nTry following the steps below to delete the failed workspace and restart.\n\n1. Click \u003cspan style=\"color:blue\"\u003eWorkspaces\u003c/span\u003e at the top of the screen as illustrated below. \\\n   *Dev Spaces*'s dashboard will open.\n  \n2. Find the \u003ckbd\u003e⋮\u003c/kbd\u003e button (failed workspace).\n\n3. Select \u003ckbd\u003eDelete Workspace\u003c/kbd\u003e\n\n4. In the confirmation panel, **tick** the box, and click **Delete**\n\n![](docs/labs/tools/images/35-recover-workspace.png)\n*Mouse actions in VS Code to delete failed workspace.*\n\nAfter the actions above, retry provisioning your lab. \\\nJump back to:\n - [Get started with the tutorial](#get-started-with-the-tutorial)\n\n\u003cbr/\u003e\n\n## Introduction\n\nThis 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.\n\nThe following article in _Red Hat Developers_ guides readers on how to get started to enjoy the learning material in the _Developer Sandbox_.\n\n* [Tutorial: Tool Up your LLM with Apache Camel on OpenShift](https://developers.redhat.com/articles/2024/09/26/tutorial-tool-your-llm-apache-camel-openshift)\n\n\u003cbr/\u003e\n\n## Running locally\n\nThis tutorial is intended to run in the Developer Sandbox.\n\nHowever, if you're familiar with the content and you just want to run the solution locally, you can. \\\nYou'll need to make sure you meet the pre-requisites and follow the steps below.\n\n### Pre-requisites\n\nYour environment must have:\n- Java 17 installed\n- Camel JBang installed (tested with 4.8.1)\n- Connectivity to an LLM with Tools support\n\n### Run with Camel JBang\n\n1. Change to the directory:\n    ```bash\n    cd camel/tools/solution/local\n    ```\n\n    \u003cbr\u003e\n\n1. Edit the `application.properties` file and configure the following setting:\n\n    - `llm.url`\n\n    \u003cbr\u003e\n\n1. Run the application using Camel JBang with:\n    ```bash\n    camel run *\n    ```\n\n### Export and Deploy\n\nIf you'd like to deploy on OpenShift, export the solution to a Camel Quarkus application using the following script:\n\n```bash\n../../scripts/xx\n```\n\nWhen the export complets, you can run locally your Camel Quarkus project with:\n\n```bash\n./mvnw quarkus:dev\n```\n\nIf you'd like to deploy on OpenShift\n\n1. Configure the `llm.url` setting as necessary.\n1. Make sure your `oc` client points to your target namespace. \n1. Run the command:\n    ```bash\n    ./mvnw package -Dquarkus.kubernetes.deploy=true\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-middleware-workshops%2Fdevsandbox-category-llm-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredhat-middleware-workshops%2Fdevsandbox-category-llm-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredhat-middleware-workshops%2Fdevsandbox-category-llm-basics/lists"}