Updates : ---------------------------------- 1) Spring AI repositories have been updated and all these OpenAI dependencies are available on the start.spring.io/ . It means you don't need to add the dependencies manually and it can be added directly just by clicking on the "Add Dependencies" on start.spring.io. 2) As you would be using updated version of Spring AI. Please do autowire ChatModel or OpenAIChatModel instead of AIClient.
Nice content brother but will it be actually usfull in ai industry? because they are mostly using python as it is widly usefull for ai and machine learning
Yes. you are right ! There is no comparison of Python and Java in traditional Machine Learning and AI space. But, for Gen AI, I feel there is a scope as SpringBoot is already a well known and established framework to build industry ready applications. So, if the platform itself gets matured enough (that's why they have introduced Spring AI) to handle Gen AI ecosystem as well then it would be easier to grasp for Java developers rather than learning new language and framework altogether.
Iam also worrying that java developers really required to switch the career to python with AI and machine learning..or shall we continue as java developer with AI?
I have placement in next year.. And i am thinking of integration of AI my portfolio like ai assistance that summarizes my projects to interviewer.. So my tech stack is springboot + react etc etc.... What should i choose python or speing AI I need only one feature now i have to learn python for that... Please help
Yes. By default, they are using gpt-3.5-turbo. You can change the model by updating this parameter in the resource/application.properties file. spring.ai.openai.chat.options.model = gpt-4o You can refer my latest videos in the Spring AI series for the same.
@@TechyTacos Another question is that how many tokens are allowed for an answer, I am trying to generate an itinerary hence would require atleast 300 tokens.
This totally depends on the model which you are leveraging in your application. All models would support the required tokens what you are looking for. Please refer this for the models and its corresponding token details : platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4
Updates :
----------------------------------
1) Spring AI repositories have been updated and all these OpenAI dependencies are available on the start.spring.io/ . It means you don't need to add the dependencies manually and it can be added directly just by clicking on the "Add Dependencies" on start.spring.io.
2) As you would be using updated version of Spring AI. Please do autowire ChatModel or OpenAIChatModel instead of AIClient.
I saw few other videos on the same topic but this is the simplest one, thanks for the video
Glad you liked it
Wow, thank you🎉
Nice, thanks brother
so i can now write more cleaner code thanks bro
Nice content brother but will it be actually usfull in ai industry? because they are mostly using python as it is widly usefull for ai and machine learning
Yes. you are right ! There is no comparison of Python and Java in traditional Machine Learning and AI space. But, for Gen AI, I feel there is a scope as SpringBoot is already a well known and established framework to build industry ready applications. So, if the platform itself gets matured enough (that's why they have introduced Spring AI) to handle Gen AI ecosystem as well then it would be easier to grasp for Java developers rather than learning new language and framework altogether.
Iam also worrying that java developers really required to switch the career to python with AI and machine learning..or shall we continue as java developer with AI?
I have placement in next year..
And i am thinking of integration of AI my portfolio like ai assistance that summarizes my projects to interviewer..
So my tech stack is springboot + react etc etc....
What should i choose python or speing AI I need only one feature now i have to learn python for that... Please help
I would suggest to go with Python as the ecosystem is more matured there. Spring AI will be there but it may take a while.
Ok❤
Which AI model is being used here, as we are not specifying the model being used like gpt-3.5-turbo,etc?
Yes. By default, they are using gpt-3.5-turbo.
You can change the model by updating this parameter in the resource/application.properties file.
spring.ai.openai.chat.options.model = gpt-4o
You can refer my latest videos in the Spring AI series for the same.
@@TechyTacos I want to look more into the class, but fail to identify any good documentations, can you help out?
@@TechyTacos Another question is that how many tokens are allowed for an answer, I am trying to generate an itinerary hence would require atleast 300 tokens.
This totally depends on the model which you are leveraging in your application. All models would support the required tokens what you are looking for.
Please refer this for the models and its corresponding token details : platform.openai.com/docs/models/gpt-4-turbo-and-gpt-4
Gpt-4o-mini is more economical and useful...
@@TechyTacos
How to connect this with frontend html
You can expose just as an traditional API and consume it at Frontend. This integration is not different than our what we have been already developing.