A Spring Boot application that provides a REST API for handling chat-based interactions, including Retrieval-Augmented Generation (RAG) capabilities.
- RESTful API with Spring Boot
- JSON-based communication
- Retrieval-Augmented Generation (RAG) support
- Easily extendable architecture
- Supports Spring Boot 3+, Java 17+
- Maven/Gradle build system
Ensure you have the following installed:
Clone the repository:
git clone https://github.com/w0rm29/chatbot-app.git
cd chatbot-app./mvnw spring-boot:runPOST /chat/ask
Content-Type: application/json
Request-Body
{
"message": "Hello, chatbot!"
}
controller/→ Handles REST API requests.service/→ Contains business logic.model/→ Defines request/response data models.resources/→ Stores application configuration.application.yml→ Preferred configuration file using YAML format.application.properties→ Alternative properties-based configuration.
test/→ Contains unit and integration tests.pom.xml/build.gradle→ Manages dependencies.README.md→ Documentation.
This structure follows best practices for a Spring Boot application, making it modular and easy to maintain.
Made with ❤️ using:
- Spring Boot – Backend framework
- LangChain – AI/LLM Orchestration
- Ollama – Local LLM Inference
- RAG (Retrieval-Augmented Generation) – Context-aware chat intelligence