Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spring AI integration to watsonx with Hilla

NotificationsYou must be signed in to change notification settings

rjtmahinay/watsonx-spring-ai-hilla

Repository files navigation

This is a demonstration of creating a simple chatbot using watsonx.ai and Spring AI. Thischatbot includes basic chat and streaming chat.

JDK

The following project uses JDK 21.

Chatbot Environment Variables

The chatbot needs to connect to watsonx.ai platform using an API Key and Project ID. These 2 properties is hidden andis declared inenv_vars.properties

  • Under the root project folder (watsonx-spring-ai-hilla), create a folder namedconfig
  • Create a file namedenv_vars.properties under the config folder
  • Define the properties below in the file:
API_KEY=PROJECT_ID=

How to Run

Recommended

  • Find in the project directory the class calledWatsonxSpringAiHillaApplication
  • Right-click and chooseRun

Running the Application

Optional Only: Terminal

The terminal approach assumes that you have a JAVA_HOME environment variable in your laptop and it is pointingin JDK 21.

For people who are inclined to start an application via terminal, please run the command below:

  • In your terminal, change directory to this project (watsonx-spring-ai-hilla)
  • Run the following command
    • Windows
    gradlew bootRun
    • Linux and Mac
      ./gradlew bootRun
    OR
      sh ./gradlew.sh bootRun

Documentations

About

Spring AI integration to watsonx with Hilla

Topics

Resources

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp