<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LangChain4j on SivaLabs</title><link>https://www.sivalabs.in/tags/langchain4j/</link><description>Recent content in LangChain4j on SivaLabs</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 20 Jul 2026 10:47:59 +0530</lastBuildDate><atom:link href="https://www.sivalabs.in/tags/langchain4j/rss.xml" rel="self" type="application/rss+xml"/><item><title>LangChain4j Retrieval-Augmented Generation (RAG) Tutorial</title><link>https://www.sivalabs.in/blog/langchain4j-retrieval-augmented-generation-tutorial/</link><pubDate>Sun, 25 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/langchain4j-retrieval-augmented-generation-tutorial/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Understand the need for &lt;strong&gt;Retrieval-Augmented Generation (RAG)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Understand &lt;strong&gt;EmbeddingModel&lt;/strong&gt;, &lt;strong&gt;EmbeddingStore&lt;/strong&gt;, &lt;strong&gt;DocumentLoaders&lt;/strong&gt;, &lt;strong&gt;EmbeddingStoreIngestor&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Working with different EmbeddingModels and EmbeddingStores.&lt;/li&gt;
&lt;li&gt;Ingesting data into EmbeddingStore.&lt;/li&gt;
&lt;li&gt;Querying LLMs with data from EmbeddingStore.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>LangChain4j AiServices Tutorial</title><link>https://www.sivalabs.in/blog/langchain4j-ai-services-tutorial/</link><pubDate>Thu, 22 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/langchain4j-ai-services-tutorial/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Using LangChain4j &lt;strong&gt;AiServices&lt;/strong&gt; to interact with LLMs.&lt;/li&gt;
&lt;li&gt;How to ask questions and map responses to different formats?&lt;/li&gt;
&lt;li&gt;Summarizing the given text in different formats.&lt;/li&gt;
&lt;li&gt;Analyzing the sentiment of the given text.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Generative AI Conversations using LangChain4j ChatMemory</title><link>https://www.sivalabs.in/blog/generative-ai-conversations-using-langchain4j-chat-memory/</link><pubDate>Tue, 20 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/generative-ai-conversations-using-langchain4j-chat-memory/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to use LangChain4j &lt;strong&gt;ChatMemory&lt;/strong&gt; and &lt;strong&gt;ConversationalChain&lt;/strong&gt; to implement conversation style interaction?&lt;/li&gt;
&lt;li&gt;How to ask questions using &lt;strong&gt;PromptTemplate&lt;/strong&gt;?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the &lt;a href="https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/"&gt;previous article&lt;/a&gt;, we have seen how to interact with OpenAI using Java and LangChain4j.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item><item><title>Getting Started with Generative AI using Java, LangChain4j, OpenAI and Ollama</title><link>https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/</link><pubDate>Sun, 18 Feb 2024 23:29:17 +0000</pubDate><guid>https://www.sivalabs.in/blog/getting-started-with-generative-ai-using-java-langchain4j-openai-ollama/</guid><description>&lt;p&gt;In this article, we will explore the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Brief introduction to Generative AI?&lt;/li&gt;
&lt;li&gt;How to interact with OpenAI APIs using Java?&lt;/li&gt;
&lt;li&gt;How to use LangChain4j to interact with OpenAI?&lt;/li&gt;
&lt;li&gt;How to run a LLM model locally using Ollama?&lt;/li&gt;
&lt;li&gt;Working with Ollama using LangChain4j and Testcontainers.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Let&amp;rsquo;s get started.&lt;/p&gt;</description></item></channel></rss>