Table of Contents What You’ll BuildPrerequisitesBootstrap Your Quarkus ProjectConfigure Ollama and Dev ServicesDefine the Sentiment EnumCreate the AI Classification ServiceExpose the Sentiment APIRun It!Test It!Final ThoughtsWhat’s Next? In a world full of opinions, tweets, reviews, chats, emails, understanding the tone …
-
Ensuring Safe and Reliable AI Interactions with LLM Guardrails
Table of Contents Understanding LLM guardrailsHow guardrails workEasily implementing guardrails with QuarkusInput guardrailsOutput guardrailsSanitizing LLM input and output Integrating Large Language Models (LLMs) into our applications is becoming increasingly popular. These models are extremely useful for creating content, searching documentation, …
-
SummarizingTokenWindowChatMemory: Enhancing LLM’s Conversations with Efficient Summarization
Table of Contents SummarizingTokenWindowChatMemoryThe Summarizer InterfaceSummarization LogicLLM SummarizationWhy This MattersConclusion LLM chat models have become an integral part of many applications today. We are all experimenting and exploring the best ways to utilize them effectively. For Java developers, LangChain4j has …
-
Foojay Podcast #62: Better Coding with AI: Friend or Enemy?
Table of Contents VideoPodcast (audio only)GuestsLinksContent AI, LLMs, ChatGPT—these are just a few of the buzzwords of the massive revolution unfolding right now. These tools are reshaping how we work, but they come with a catch: while they help us …
-
Langchain4J Musings
Table of Contents Choosing a LLMQuick introduction to LangChain4J and OllamaGetting our feet wetThe LangChain4j appThe Ollama infrastructureEnhancing with streamingRemembering historyAdding Retrieval-Augmented GenerationConclusion I’m coming relatively late to the LLM party, but I rarely come very early in the hype …
-
Run AI-enabled Jakarta EE and MicroProfile applications with LangChain4j and Open Liberty
Experience AI technology in Jakarta EE and MicroProfile applications that run on Open Liberty by using LangChain4j APIs.
-
Building a Simple Home Assistant using Langchain4j and Raspberry Pi
Discover how to build a smart home assistant using Langchain4j and Raspberry Pi, featuring capabilities such as question-answering with RAG, integrating external APIs, controlling smart devices, and utilizing camera and multimodal functionalities.
-
Foojay Podcast #47: Artificial Intelligence and Machine Learning with Java
The way we search for information and develop software has changed a lot since then as the use of Artificial Intelligence suddenly became a lot easier. What can we expect in the near future?
-
Calling Gemma with Ollama, TestContainers, and LangChain4j
Lately, for my Generative AI powered Java apps, I’ve used the Gemini multimodal large language model from Google. But there’s also Gemma, its little sister model.
-
Search in Documentation with a JavaFX Chat LangChain4j Application
Let’s use an existing documentation set as the data for a ChatGPT-like application, created with JavaFX and LangChain4J.