Spring Boot Application with ChatGPT API using LangChain4J

preview_player
Показать описание
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.

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
Рекомендации по теме
Комментарии
Автор

you are a great teacher
thank you so much for this tutorial

mohamedgad
Автор

00:01 Enrich Spring Boot with ChatGPT model
03:03 Using LangChain4J for integrating with openAI without additional API calls or client management.
10:28 Using model name and API key for ChatGPT API integration
13:58 ChatGPT API can interpret user and system messages
21:18 Providing personalized memory for each user
23:56 Setting up chat functionality with LangChain4J API in Spring Boot Application
30:12 ChatGPT API usage and customization
33:28 Utilizing LangChain4J for extracting book objects from specified text.
41:29 Using prompts and parameters for better ChatGPT results
45:35 Specify response format as JSON for ChatGPT API

krushnnabaviskar
Автор

Thanks brother i was looking for same.Great VIdeo.

krushnnabaviskar
join shbcf.ru