1 Getting started with Spring AI

 

This chapter covers

  • Introducing Spring AI
  • Initializing a Spring AI project
  • Selecting an AI provider and model

Did you feel that?

Over the past year or more, there has been a seismic shift that has reshaped the landscape of human-computer interaction and that has potential to change virtually every industry, profession, and way of life. Systems like ChatGPT and Midjourney have brought Artificial Intelligence out of the realm of science fiction and academic research and into the public view.

Artificial Intelligence is not exactly new. But Generative AI, the specific branch of artificial intelligence that uses generative models, known as Large Language Models (LLMS) to produce text, images, and other content from natural language prompts, is what has put the notion of thinking machines into the hands of anyone with a smartphone, tablet, or computer. With generative AI, the average user can create works of literature, art, or simply answer questions by simply chatting with the models. Indeed, many tasks that once required special skills can now be performed by anyone who can type their request into a Generative AI-enabled application.

1.1 Hello, Spring AI!

 
 
 

1.1.1 Initializing the project

 
 
 

1.1.2 Submitting prompts

 
 
 

1.1.3 Trying it out

 
 

1.2 Choosing a model

 
 

1.2.1 Configuring OpenAI models

 
 

1.2.2 Serving models locally with Ollama

 

1.3 Previewing Spring AI’s capabilities

 
 

1.4 Summary

 
 
 
 
sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage