Samples showing how to build Java applications powered by Generative AI and Large Language Models (LLMs) using Spring AI.
Chatbot Chatbot using LLMs via Ollama.
Question Answering Question answering with documents (RAG) using LLMs via Ollama and PGVector.
Semantic Search Semantic search using LLMs via Ollama and PGVector.
Structured Data Extraction
Structured data extraction using LLMs via Ollama.
Text Classification Text classification using LLMs via Ollama.
Chat completion with LLMs via different model providers:
Vector transformation (embeddings) with LLMs via different model providers:
Image generation with LLMs via different model providers:
Speech generation with LLMs via different model providers:
Speech transcription with LLMs via different model providers:
Coming soon
Prompting using simple text:
Prompting using structured messages and roles:
Prompting using templates:
Converting LLM output to structured JSON and Java objects:
Including various media in prompts with LLMs:
Tool calling with LLMs via different model providers:
Using chat memory to preserve context in conversations with LLMs:
Guardrails for input and output with LLMs via different model providers:
Reading and vectorizing documents with LLMs via Ollama:
Document transformation with LLMs via Ollama:
Coming soon
Question answering with documents using different RAG flows (with Ollama and PGVector):
LLM Observability for different model providers:
Vector Store Observability for different vector stores:
Integrations with MCP Servers for providing contexts to LLMs.
Coming soon
Coming soon
$ claude mcp add llm-apps-java-spring-ai \
-- python -m otcore.mcp_server <graph>