Learn how to build a semantic caching layer for LLM applications using Spring AI and Redis.
Also find me here:
Baeldung Author
Hardik Singh Behl
Software developer proficient in the Java, Spring and AWS ecosystem. Hardik is also an AWS Community Builder who has been sharing his knowledge through his open source projects and articles.
Here's what I've written (so far):
Baeldung on Java
- All
- Artificial Intelligence (15)
- Spring AI (14)
- Cloud (8)
- Spring Boot (7)
- Persistence (5)
- Spring Security (3)
- NoSQL (3)
- Testing (2)
- Spring Data (2)
- Spring Cloud (1)
- Networking (1)
- Java (1)
- Data (1)
- Core Java (1)
Configuring Multiple LLMs in Spring AI
Filed under Artificial Intelligence, Spring AI
Explore integrating multiple LLMs within a single Spring AI application
Using StatelessSession in Hibernate
Filed under Persistence
Learn how to use the StatelessSession API in Hibernate to perform JPA read and write operations without the stateful features of a regular Session.
Using Oracle Vector Database With Spring AI
Filed under Artificial Intelligence, Spring AI
Learn how to integrate the Oracle vector database with Spring AI to find semantically related content.
Creating an AI Agent in Java Using Embabel Agent Framework
Filed under Artificial Intelligence, Spring Boot
Learn how to use the Embabel Agent Framework to create AI agents in Java.
Text-to-SQL Implementation Using Spring AI
Filed under Artificial Intelligence, Spring AI
Learn how to use an LLM with Spring AI to translate a natural language query into executable SQL.
Transcribing Audio Files With OpenAI in Spring AI
Filed under Artificial Intelligence, Spring AI
Explore transcribing audio files with OpenAI in Spring AI.
Synchronous Communication With Apache Kafka Using ReplyingKafkaTemplate
Filed under Spring Boot
Learn how to implement the request-reply synchronous messaging pattern when working with a Kafka message broker in Java.
Building an AI Chatbot Using DeepSeek Models With Spring AI
Filed under Artificial Intelligence, Spring AI
Learn how to use DeepSeek Models with Spring AI to build a Chain of Thought chatbot.
Baeldung on Computer Science
- All
- Artificial Intelligence (2)
Understanding AI Prompt Injection Attacks
Filed under Artificial Intelligence
Understand the different types of prompt injection attacks, and a few prevention strategies.
Understanding User, Assistant, and System Roles in ChatGPT
Filed under Artificial Intelligence
Explore the user, assistant, and system roles in the ChatGPT API.
Baeldung on Ops
- All
- Cloud (2)
Understanding the AssumeRolePolicyDocument in AWS IAM
Filed under Cloud
Learn about the AWS IAM AssumeRolePolicyDocument and how to use it with CloudFormation.
Comparison of AWS CloudHSM and AWS KMS
Filed under Cloud
Compare the AWS CloudHSM and AWS KMS services and explored the key features and differences between them