Introduction
Java GenAI with LangChain4j: Just make it work!
()
1. Generative AI and Basic LangChain4j Review
A look at an LLM app without context
()
Patterns, taxonomy, and non-deterministic IT
()
The critical nature of context
()
Prompts and prompt techniques
()
Hands-on lab: Build a simple app with context
()
2. Advanced Prompting with Templates
A look at a prompt template with text summarization
()
PromptTemplate usage and syntax
()
Parameter injection and placeholder formatting
()
Hands-on lab: Build an advanced template
()
3. Higher-Level Components with LangChain4 Services
A look at a multi-user chatbot with conversational context
()
Review of chatbot architecture
()
Introduction to LangChain4j’s AiService
()
Hands-on lab: Simple AiService for chatbot component
()
Multiuser chat
()
Hands-on lab: Multiuser AiService
()
4. Streaming LLM Responses
A look at streaming output generated by an LLM
()
Benefits of streaming output
()
Implementing streaming with LangChain4j
()
Streaming with CompletableFuture
()
Hands-on lab: Adding streaming to chatbot
()
5. Improving Context
A look at determining similarity of text strings
()
Quick review of RAG, similarity, and embeddings
()
Generating embeddings using LangChain4j
()
Hands-on lab: Comparing two strings via their embeddings
()
6. Embedding Vector Stores
A look at searching for similar text
()
Using an EmbeddingStore to store embeddings
()
Searching an embedding space
()
7. Building a Basic RAG Chatbot
A look at searching for similar text in our private documents
()
Detailed look at LangChain4j's data ingestion architecture
()
Loading content into an EmbeddingStore
()
Semantic searching
()
Hands-on lab: Creating a mini RAG using multiple files
()
8. Introduction to Agents
A look at how LLMs can call our Java methods
()
Function-calling
()
LangChain4j's tool primitives
()
Hands-on lab: Using tools with a simple AiService
()
Agents and LangChain4j
()
Conclusion
Review and key takeaways
()
Ex_Files_Building_Generative_AI_Java_Applications_using_LangChain4j.zip
(31 KB)