Spring AI Introduction: Building AI Applications in Java with Spring

  Рет қаралды 19,252

Dan Vega

Dan Vega

Күн бұрын

For the longest time if you wanted to work with Machine Learning you were using Python. That was because python had a lot a really great set of tools for working in this space. Now that we have LLMs like Open AI’s GPT-4 where the P stands for pre-trained we can simply call them like we would any other API. Java is everywhere in the enterprise and we need to start thinking about how to integrate these capabilities into our applications.
In today’s tutorial I want to talk about communicating with an LLM like GPT-4 (or any other LLM) and some of the challenges you might come across. From there I’ll introduce you Spring AI which is going to help us build AI powered applications by solving some of these challenges.
🔗Resources & Links mentioned in this video:
👋🏻Connect with me:
Website: www.danvega.dev
Twitter: / therealdanvega
Github: github.com/danvega
LinkedIn: / danvega
Newsletter: www.danvega.dev/newsletter
SUBSCRIBE TO MY CHANNEL: bit.ly/2re4GH0 ❤️

Пікірлер: 34
@fibfranco
@fibfranco Ай бұрын
Such an amazing coincidence haha I started looking at the Spring AI project for the first time a couple hours ago and thought: "wonder if vega has posted something about it" and you just did :) thank you, man!
@DanVega
@DanVega Ай бұрын
That is funny 😄 I certainly don’t have all of my subscribers phones tapped 😂
@sohamsarkar174
@sohamsarkar174 Ай бұрын
Dan loved your session. Please upload a detailed video on RAG
@theunthinkable6280
@theunthinkable6280 Ай бұрын
Top, Clear, Informative. Good job!
@TobilobaOwolabi-wy8cq
@TobilobaOwolabi-wy8cq Ай бұрын
Hi Dan. Thank you for the subtle intro to Spring AI. I know you will be looking to do more videos on this topic and I would like to just point out some topics you can look into. 1. RAG with multiple documents instead of one 2. How to use more than one LLM and switch between them(maybe with dynamic configuration properties)
@younaspa1058
@younaspa1058 Ай бұрын
Thanks for the wonderful session
@user-dn8nm9ie2y
@user-dn8nm9ie2y 26 күн бұрын
Awesome @Dan Vega!! Keeping it simple but effective. Gave me the needed high level overview that I needed
@MohamedDernoun
@MohamedDernoun Ай бұрын
How clear is your explanation, best address for people who scare from java!
@WisomofHal
@WisomofHal Ай бұрын
Oh my goodness. In my current Springboot project I've created a complete "Python Engine", using Java's process builder, to create embedding, parse embeddings, run all the required python scripts, error handling and output to create and run RAG Chains. It was quite fun, but this will help tremendously to take that load off. Thanks for sharing will be looking deeper into this. Cheers!
@scitechplusexplorer2484
@scitechplusexplorer2484 Ай бұрын
Hey Dan, hello, Good Evening! Please make a full video on GraphQL including Pagination with latest Spring Boot version. It would be very helpful.
@DanVega
@DanVega Ай бұрын
I have done a video on pagination you can watch it here kzbin.info/www/bejne/aYq3hJtuq69rm7s
@douglasdotv
@douglasdotv Ай бұрын
Thank you for another video.
@CodeBank-rw9bq
@CodeBank-rw9bq Ай бұрын
Exactly this is what I was looking for ❤
@minarashidi868
@minarashidi868 14 күн бұрын
Thanks, that was so inspiring!
@stephaneislistening6103
@stephaneislistening6103 7 күн бұрын
Very cool Thanks !
@walterpalladino1965
@walterpalladino1965 Ай бұрын
Great video. Can Spring AI interact with a local LLM? If can do it, will be great to se an example. Thanks.
@backtoGodhead0
@backtoGodhead0 7 күн бұрын
so cool, God bless you!
@gsilveralan
@gsilveralan Ай бұрын
Geat video please do one with RAG
@sagarbhat1
@sagarbhat1 Ай бұрын
Thanks for taking time to make this video Dan. I’m building a RAG based application and have tried LangChain4j and Spring AI, and at this stage LangChain4j seems to have more features (Chat Memory, Hybrid semantic search with Azure AI search vector store) compared to Spring AI. But at the rate at which Spring AI is being developed, I’m sure it will catch up. Quick question - is there an easy way to log the requests and responses to/from the Open AI service in Spring AI? In Langchain4j it’s as simple as adding a property.
@DanVega
@DanVega Ай бұрын
Spring AI in an MVC stack is using the RestClient. You need to enable logging for what ever underlying http client you're using which by default is the HttpUrlConnection. You can set this logging level to see the request/response. I would take this one step further though and add the actuator where you can then get metrics on all of these calls. logging.level.sun.net.www.protocol.http.HttpURLConnection=DEBUG
@sagarbhat3884
@sagarbhat3884 Ай бұрын
@@DanVega I tried this (logging.level.sun.net.www.protocol.http.HttpURLConnection=DEBUG) but it did not help. I could not see any trace of the request and response to/from the AI model.
@terrabys
@terrabys Ай бұрын
Is there support for agentic workflow?
@kafkaesqued
@kafkaesqued 10 күн бұрын
Hello Sir, could you provide a reference for SVN to GitHub migration with the help of Spring Java + GenAI tech
@Bibhaw
@Bibhaw Ай бұрын
Well explained, Thanks vega :) Can't we directly autowired ChatClient ?
@BananBananski
@BananBananski Ай бұрын
Looks like the ChatClient is synchronous and some models take a long time to respond - that would be a bottleneck in many use cases. Is there an asynchronous implementation as well?
@DanVega
@DanVega Ай бұрын
Yes there is a StreamingChatClient docs.spring.io/spring-ai/reference/api/chatclient.html#_streamingchatclient
@adityasinghrajput7815
@adityasinghrajput7815 Ай бұрын
Sir please upload a full spring boot beginner to advanced series and after that spring security then spring cloud then micro servise then full project with spring boot integration of spring AI
@muslehhaj4164
@muslehhaj4164 Ай бұрын
Hello Spring Boss 💪, I have a course idea but no one in "Udemy" did it yet K I've tried few course in Udemy , but none of them completed... I'm looking for a full-stack project wise course using spring boot as backend & Vaadin for front end .... but not sure if Vaadin is the right choice to build a real-life application .... please Advise me Boss ⚠
@checkantetibo
@checkantetibo Ай бұрын
Interesting
@crampanelarutzi
@crampanelarutzi Ай бұрын
please make a video about weka framework.
@davidwaziri333
@davidwaziri333 16 күн бұрын
Can you use free ChatGPT API key for this?
@Gijox1
@Gijox1 Ай бұрын
Very nice!
@antonslonkin
@antonslonkin Ай бұрын
Interesting!!!
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 19 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 2,3 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 72 МЛН
5 Common Mistakes Spring Developers Make
18:06
Dan Vega
Рет қаралды 14 М.
Build Your First AI Project in 15 Minutes: Spring AI & OpenAI
15:14
15 crazy new JS framework features you don’t know yet
6:11
Fireship
Рет қаралды 196 М.
How Netflix Really Uses Java
50:31
InfoQ
Рет қаралды 39 М.
#miniphone
0:18
Miniphone
Рет қаралды 10 МЛН
🤔Почему Samsung ПОМОГАЕТ Apple?
0:48
Technodeus
Рет қаралды 433 М.
Carregando telefone com carregador cortado
1:01
Andcarli
Рет қаралды 1,7 МЛН
A4 Reset to zero
0:26
STYLE YT
Рет қаралды 17 М.