java-ai-cookbook
Runnable, minimal LLM examples for Java - Spring AI & LangChain4j. RAG, agents, MCP servers, tool calling, structured output, evals.
One folder = one command. Every example is isolated, has its own build, and runs in under a minute.
Power your agent
การติดตั้งจากผู้เผยแพร่ ไม่ใช่เอนด์พอยต์ของ PlugMCP
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดจากผู้เผยแพร่
Runnable, minimal LLM examples for Java - Spring AI & LangChain4j. RAG, agents, MCP servers, tool calling, structured output, evals.
One folder = one command. Every example is isolated, has its own build, and runs in under a minute.
Runnable, minimal LLM examples for Java - Spring AI & LangChain4j. RAG, agents, MCP servers, tool calling, structured output, evals. One folder = one command.
Most "AI in Java" examples are either a single hello-world or a full demo app with 40 dependencies. This repo sits in between: each recipe shows one pattern, in one file where possible, with no framework magic hidden.
git clone https://github.com/alxkm/java-ai-cookbook.git
cd java-ai-cookbook/spring-ai/01-chat-basic
export OPENAI_API_KEY=sk-... # or: export OLLAMA_BASE_URL=http://localhost:11434
./mvnw spring-boot:run
That's it. Open the folder of any recipe and run the command in its README.
More recipes are added regularly - see open issues for what's next, or propose one.
java-ai-cookbook/
├── spring-ai/
│ ├── 01-chat-basic/ # independent Maven project
│ │ ├── README.md # what it shows, how to run, what to look at
│ │ ├── pom.xml
│ │ └── src/
│ └── ...
├── langchain4j/
│ └── ... # same numbering, same patterns
├── docs/
│ ├── spring-ai-vs-langchain4j.md # honest side-by-side comparison
│ └── choosing-a-model.md
├── .github/workflows/build.yml # one CI job per recipe, no API keys
├── tools/ # run-all-tests, link and config-key checks
├── CONTRIBUTING.md
└── .env.example
Each recipe README follows the same shape: What / Run / Where to look / Gotchas.
All recipes read the same environment variables:
Copy .env.example to .env and fill in what you have. Nothing else is required.
Recipes are welcome. Keep them small, keep them runnable, keep them tested. See CONTRIBUTING.md for the recipe template.
Runnable, minimal LLM examples for Java - Spring AI & LangChain4j. RAG, agents, MCP servers, tool calling, structured output, evals. One folder = one command.
เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Java Ai Cookbook ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-10-28 Runnable, minimal LLM examples for Java - Spring AI & LangChain4j. RAG, agents, MCP servers, tool calling, structured output, evals. One folder = one command.