LangChain4j AiServices Tutorial

LangChain4j AiServices Tutorial

In this article, we will explore the following: Using LangChain4j AiServices to interact with LLMs. How to ask questions and map responses to different formats? Summarizing the given text in different formats. Analyzing the sentiment of the given text. Sample Code Repository You can find the sample code for this article in the GitHub repository In the previous article, we have seen how to have a conversation using LangChain4j ChatMemory and ConversationalChain.

Continue reading »
Generative AI Conversations using LangChain4j ChatMemory

Generative AI Conversations using LangChain4j ChatMemory

In this article, we will explore the following: How to use LangChain4j ChatMemory and ConversationalChain to implement conversation style interaction? How to ask questions using PromptTemplate? In the previous article, we have seen how to interact with OpenAI using Java and LangChain4j. Sample Code Repository You can find the sample code for this article in the GitHub repository I will assume that you have created a Java project with the following dependency to your pom.

Continue reading »
Getting Started with Generative AI using Java, LangChain4j, OpenAI and Ollama

Getting Started with Generative AI using Java, LangChain4j, OpenAI and Ollama

In this article, we will explore the following: Brief introduction to Generative AI? How to interact with Open AI APIs using Java? How to use LangChain4j to interact with OpenAI? How to run a LLM model locally using Ollama? Working with Ollama using LangChain4j and Testcontainers. Introduction to Generative AI Unless you are living under a rock, you might have heard about Generative AI. It is a fascinating field of AI that is used to generate new content, such as images, text, audio, etc.

Continue reading »
Should I use a framework or libraries?

Should I use a framework or libraries?

In the software development world, trends come and go, and often we go through the same cycle again and again. It seems 2024 is the year of “Framework vs Libraries” debate. I mean this debate is not new, but it is getting louder again. For example, most of the Go community prefers to use libraries instead of a framework. The Java community is divided into two groups, one prefers to use Spring Boot or Quarkus or Micronaut, and the other prefers to use libraries.

Continue reading »
Its time to apply KISS principle to career

Its time to apply KISS principle to career

You might have heard from IT employees that there is no work-life balance in IT due to unrealistic deadlines, long working hours, etc. I did work crazy hours in the first 7 or 8 years of my career, but not anymore. Fortunately, I have been working in the companies that value work-life balance, and I never had to work beyond 8 hours in the recent past. However, I have been working on writing blogs, making videos, etc.

Continue reading »
Go for Java/SpringBoot Developers

Go for Java/SpringBoot Developers

I have been using Java for more than 17 years, and I really like Java and its ecosystem. Within the Java ecosystem, Spring Boot is my go-to framework for building applications. I used the Go language for an official project a couple of years ago, and initially I had mixed feelings about it. But the more I use it, the more I like it. I wanted to expand my skill set and decided to get more hands-on experience with Go.

Continue reading »
My First Year at AtomicJar as a Developer Advocate

My First Year at AtomicJar as a Developer Advocate

I joined AtomicJar as a Developer Advocate on 1st November 2022. Time flies when you are enjoying your work, isn’t it. Before joining AtomicJar, I worked as a TechLead/Architect at various companies for more than 15 years. When I got the opportunity to join AtomicJar, I was very excited to work with my favourite technology Testcontainers. I have been using Testcontainers for more than 4 years, and I am a big fan of it.

Continue reading »
Spring Boot + jOOQ Tutorial - 5 : Fetching Many-to-Many Relationships

Spring Boot + jOOQ Tutorial - 5 : Fetching Many-to-Many Relationships

In the previous tutorial, we have learned how to fetch One-to-Many relationships using jOOQ. In this tutorial, we will learn how to fetch Many-to-Many relationships using jOOQ. Source Code: You can find the complete source code of this project on GitHub: https://github.com/sivaprasadreddy/spring-boot-jooq-demo In our sample database, we have bookmarks and tags tables. Each bookmark can be associated with multiple bookmarks and vice-versa, so there is a Many-to-Many relationship between bookmarks and tags tables.

Continue reading »
Spring Boot + jOOQ Tutorial - 4 : Fetching One-to-Many Relationships

Spring Boot + jOOQ Tutorial - 4 : Fetching One-to-Many Relationships

In the previous tutorial, we have learned how to fetch One-to-One relationships using jOOQ. In this tutorial, we will learn how to fetch One-to-Many relationships using jOOQ. Source Code: You can find the complete source code of this project on GitHub: https://github.com/sivaprasadreddy/spring-boot-jooq-demo In our sample database, we have users and bookmarks tables. Each user can create multiple bookmarks, so there is a One-to-Many relationship between users and bookmarks tables. Let’s see how we can fetch a User details along with the bookmarks created by the user.

Continue reading »
Spring Boot + jOOQ Tutorial - 3 : Fetching One-to-One Relationships

Spring Boot + jOOQ Tutorial - 3 : Fetching One-to-One Relationships

In the previous tutorial, we have learned how to implement basic CRUD Operations using jOOQ. In this tutorial, we will learn how to fetch One-to-One relationships using jOOQ. Source Code: You can find the complete source code of this project on GitHub: https://github.com/sivaprasadreddy/spring-boot-jooq-demo Generally, when we are displaying a list of records, we will display minimal information about the record, and when the user clicks on the record, we will display the complete information about the record.

Continue reading »