This demo demonstrates the integration of a local LLama3 model for handling JSON responses within the Spring AI framework, positioning the model as a 'business logic' executor. This provides a starting point specifically tailored for simple artificial intelligence workflows, using Java and Spring AI.
- Java 17/21
- Maven 3.3+ for building and managing the project
- Spring Boot: Simplifies the bootstrapping and development of new Spring Framework applications.
- Spring AI: Provides AI capabilities integrated seamlessly with Spring applications. In this project, we use local LLM
spring-ai-ollama-spring-boot-starter
for integrating the LLama3 llm. - Ollama: a tool to run Large Language Models locally for manage safe private data.
- Install and run LLama3 with Ollama:
ollama run llama3
- Clone the Repository:
git clone https://your-repository-url-here cd search-book-with-llm
- Build the Application:
mvn clean install
- Run the Application:
mvn spring-boot:run