This section describes core concepts that Spring AI uses. We recommend reading it closely to understand the ideas behind how Spring AI is implemented. Models AI models are algorithms designed to process and generate information, often mimicking human cognitive functions. By learning patterns and insights from large datasets, these models can make predictions, generate text […]
LangGraph is a framework for building stateful, multi-step AI workflows and AI agents that can make decisions, execute tools, maintain state, and control their execution flow. It is part of the LangChain ecosystem and is designed for applications where AI needs to do more than simply receive a prompt and return an answer. For example, […]
To understand why LangChain is needed, first understand how we interact with an LLM without using any framework. Suppose you want to build an AI chatbot using an LLM such as GPT or Ollama. 1. Without LangChain You can directly call an LLM API from your application. For example, using Java Spring Boot: This approach […]
LangChain is a framework that simplifies the development of applications using LLMs. Instead of writing all the integration code yourself, LangChain provides reusable components to connect different AI capabilities. Key features LLM integration: Connect to OpenAI, Anthropic, and other model providers. Prompt templates: Create reusable prompts with dynamic inputs. Retrieval-Augmented Generation (RAG): Retrieve information from […]
Spring AI provides a comprehensive framework for integrating Artificial Intelligence capabilities into Java and Spring Boot applications. Its core features can be grouped into the following areas. 1. Model API – Chat and AI Model Integration Spring AI provides a unified API to interact with different AI model providers. Supported model integrations include: Ollama OpenAI […]