In this video, Marcus Hellberg walks you through building a ChatGPT-like experience using Java, Spring Boot, and LangChain4j on the backend, streaming responses to a React frontend with Hilla.
0:00 - Intro
0:16 - Tools used: LangChain, LangChain4j, Hilla
1:11 - Sample project overview
2:11 - Adding LangChain4j dependency
2:38 - Spring Boot service for calling OpenAI ChatGPT
5:50 - React UI for synchronous ChatGPT calls
11:21 - Streaming ChatGPT responses with LangChain and Spring Boot
14:36 - React UI for streaming ChatGPT responses
18:20 - Outro
Links
Code: https://github.com/marcushellberg/spr...
Hilla: https://hilla.dev
LangChain4j: https://github.com/langchain4j/langch...