In this tutorial, we build our first ChatBot using Spring Boot, OpenAI API (ChatPGT), and LangChain4j.
We take a look at how to specify custom system messages to ChatGPT. We explore how to create chat history using LanChain4j. And also try to receive complex Java objects as a response from OpenAI API response.
Link to the source code: https://github.com/caligula95/spring-...
00:00 - Intro
00:25 - Generate empty Spring Boot Project
01:10 - Get familiar with LangChain4J
01:57 - OpenAI API
03:40 - Add dependencies for LangChain4J
04:50 - Create Controller and Service Layer
08:05 - Implement LangChain4J model completion functionality
13:30 - Add SystemMessage and UserMessage
17:50 - Implement Chat Memory
32:20 - Consume generated answer as Java Object
39:55 - Specify custom Descriptions and Restrictions
En esta página del sitio puede ver el video en línea Spring Boot Application with ChatGPT API using LangChain4J de Duración hora minuto segunda en buena calidad , que subió el usuario Java Master 25 marzo 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,166 veces y le gustó 36 a los espectadores. Disfruta viendo!