Skip to content

BootcampToProd/langchain4j-getting-started-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– LangChain4j Getting Started: Build Your First AI Application

This repository demonstrates how to build a very simple AI Chat Application using LangChain4j and Spring Boot. The application exposes a REST API endpoint that allows you to interact with Large Language Models (LLMs), translating natural language questions into intelligent AI responses.

πŸ“– Complete Guide: For detailed explanations and a full code walkthrough, read our comprehensive tutorial.
πŸ‘‰ LangChain4j Getting Started: A Simple Guide for Beginners

πŸŽ₯ Video Tutorial: Prefer hands-on learning? Watch our step-by-step implementation guide.
πŸ‘‰ YouTube Tutorial - Getting Started with LangChain4j | Build Your First AI Chat API

Getting Started with LangChain4j | Build Your First AI Chat API

▢️ Watch on YouTube


✨ What This Project Demonstrates

This application showcases how to integrate LangChain4j with Spring Boot:

  • LangChain4j Spring Boot Integration - Seamlessly connecting LLMs to the Spring ecosystem using the specialized starter.
  • Unified Model API - Communicating with models like OpenAI using the standardized ChatModel interface.
  • RESTful AI Interaction - A simple chat endpoint that serves as a bridge between user prompts and AI reasoning.

πŸ› οΈ Prerequisites

To run this application, you will need the following:

  1. OpenRouter API Key: This project uses OpenRouter to access free AI models.
  2. Setup Environment Variables: Set your API key as an environment variable:
# Set your OpenRouter API Key
export OPENROUTER_API_KEY=your_api_key_here

πŸš€ How to Run and Test

For detailed instructions on how to set up, configure, and test the application, kindly go through our comprehensive article:
πŸ‘‰ Click here for Setup & Testing Instructions


About

A simple Spring Boot application showcasing LangChain4j integration and building a chat endpoint for interacting with Large Language Models (LLMs).

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages