Kotlin-AI-Examples GitHub Details, Stars and Alternatives | OpenRepoFinder
Kotlin / repository
Kotlin-AI-Examples
A collection of Kotlin-based examples featuring AI frameworks such as Spring AI, LangChain4j, and more — complete with Kotlin notebooks for hands-on learning.
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
100
Community adoption25% weight
46
Maintenance state20% weight
100
License clarity10% weight
100
Project information10% weight
75
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
Kotlin AI Examples
Kotlin AI Examples is a repository showcasing various AI frameworks integrated into Kotlin-based projects.
Here you’ll find ready-to-use examples for Spring AI, LangChain4j, as well as interactive Kotlin notebooks.
springAI-demo: a Spring Boot application with Spring AI and Kotlin that loads
Kotlin standard library documents into a Qdrant vector store, implements endpoints for similarity search and a
RAG-powered chat interface, and integrates an LLM for detailed, document-driven answers.
mcp-demo: this tutorial briefly describes the process of creating an MCP server in Kotlin
to work with stock data from FMP, connecting it to Claude for Desktop,
and developing a custom client based on OpenAI using Compose.
Tutorial Series
This series of interactive notebooks provides a hands-on journey through Spring AI capabilities with Kotlin.
Each notebook builds on the previous one, guiding you from basic concepts to advanced AI integrations.
LangChain4j_Overview.ipynb: overview of LangChain4j with
Kotlin, demonstrating how to work with chat models, manage prompts, streaming, and produce structured responses.
SummarizingDocuments.ipynb: demonstrates how to split large
text documents into smaller chunks, summarize each chunk with an AI model, and then merge the summaries into a concise
final result.
OpenAI Java SDK Overview: overview of the OpenAI
Java SDK, demonstrating how to install the library, initialize clients, make basic API calls with various parameters,
compare prompt effectiveness, and implement function calling with a practical weather example
— all written in Kotlin for JVM applications.
OpenAI Image Recognition: demonstrates how to use OpenAI's
vision capabilities to analyze images by encoding them as base64,
sending them to GPT-4o via the OpenAI Java client, and displaying the AI's response about the image content.
WeatherAgent: demonstrates creating an agent that retrieves real-time
weather data for a specified location via WeatherAPI
TaskManagerAgent: task management agent showcasing how to create
a conversational AI that can add, remove, and list tasks through a clean API with function calling capabilities
SummarizerAgent: demonstrates creating an agent that summarizes web
pages (e.g., blog posts) by processing HTML and generating concise summaries
KIClassification.ipynb: how to set up a classification environment
using the KIEngine framework, manage cached data files, and perform inference on input data.
KIGPT2.ipynb: how to configure and run a GPT-2 model with KIEngine, handling
tokenization, caching, and text generation.
ORTClassification.ipynb: how to perform classification using
ORT-based inference, handling data loading, caching, and model execution steps.
ORTGPT2.ipynb: how to run GPT-2 inference using the ORT engine, handling
tokenization, caching, and generation of text outputs.
For projects — each project in projects/ has its own README with setup and run instructions
For notebooks — open in IntelliJ IDEA (Kotlin Notebook plugin is bundled), then open any .ipynb file
Prerequisites
Java 17+
Kotlin
Appropriate AI provider API keys (see each project’s README for more details)
[!NOTE]
Make sure you have the necessary access credentials for your chosen AI service (OpenAI, Azure, VertexAI, etc.) and the
required dependencies in your build scripts (Gradle/Maven).
Developed a collections of Jupyter notebooks that demonstrate concepts, patterns, and practical examples for building, running, and operating AI agents using an Agent Development Kit (ADK).
A collection of AI training environments and experiments built with OpenAI Gym. Includes interactive GUIs for CartPole and Lunar Lander, plus Jupyter notebooks to test and train reinforcement learning agents.
A collection of specialized AI assistants for JupyterLab and Data Science workflows, featuring models for notebook cell manipulation, vision-based chart analysis, and a Russian-language DS assistant.
A curated collection of Jupyter notebooks exploring design patterns for autonomous AI agents using frameworks like Microsoft AutoGen, LangGraph, Taskweaver, CrewAI, and more.