Home

Awesome

Practical AI examples using Spring AI

Included examples

Requirements

The application expects you to have the following two API keys as environment variables:

Running the examples

Run Application.java in your IDE or use the following command:

mvn spring-boot:run

Using local models

You can use local models with Ollama by updating the spring-ai dependency in the pom.xml file, and defining which models to use in the application.properties file.