AI
|
This content was generated with the assistance of AI and should be verified against the official documentation of each tool and framework before being relied on in production. |
This section is a practical, vendor-neutral guide to using and building with large language models: from prompting and AI-assisted coding, through agents, the Model Context Protocol and command-line agent tooling, to retrieval-augmented generation, local and on-device models, conversational and voice channels, and finally the operations and security concerns of running all of this in production. It is written for developers of Python, Java/Spring, Node, mobile and desktop applications who want working examples against current, official documentation rather than a marketing overview of any one vendor’s product.
Each sub-section states and dates its own version baseline in its own landing page — the model IDs, SDK versions and framework releases it was written and verified against — because these move fast and a single site-wide baseline would go stale unevenly across 15 sub-sections. Check the sub-section’s own index before relying on a version number quoted deeper in one of its pages.
Sub-sections
-
LLM Foundations & Prompting — how LLMs work under the hood, and how to prompt and manage context for them reliably.
-
AI-Assisted Development — using AI coding assistants and Claude Code day to day: autocomplete, chat, agentic coding and code review.
-
Customizing AI Workflows — shaping Claude Code and GitHub Copilot to a team’s workflow with instruction and memory files, prompt files and slash commands, skills, subagents and custom agents, hooks, permissions and settings, MCP configuration, output styles and the status line, and plugins and marketplaces, using the ai-catalog repository as the worked example.
-
AI Agents — a framework-neutral guide to designing and building LLM agents: the agent loop and workflow patterns, tool design, context engineering, memory, planning, multi-agent systems and A2A, human-in-the-loop, evaluation, guardrails, UX, observability and the 2026 frameworks landscape, with examples in LangGraph, LangChain4j and Spring AI.
-
Model Context Protocol (MCP) — the 2026-07-28 revision of the protocol (stateless core, tools, resources, prompts, elicitation, Streamable HTTP, authorization) and the same
docs-assistantMCP server built three times — Python (official SDK, FastMCP, mounted in FastAPI), Spring Boot (Spring AI MCP starters) and Node.js (TypeScript SDK) — plus clients and hosts (Claude Code, VS Code and GitHub Copilot), testing with the Inspector, deployment, tool design, exposing a RAG system through MCP and MCP security. -
Building CLIs for AI Agents — designing command-line tools that humans, scripts and AI agents can all drive reliably and that can be wrapped as MCP servers or agent tools: design fundamentals (clig.dev, POSIX, GNU), streams and exit codes, TTY and colour rules, configuration and auth, machine-readable output, agent ergonomics, dry-run and confirmation safety, self-describing help, CLI versus MCP, frameworks for Python, Java, Node.js, Go, Rust, Swift and .NET, TUIs, wrapping a CLI as an MCP server or an agent tool, argument injection defence, packaging, testing, documentation and an agent-readiness checklist, all on the
docsctlrunning example. -
Running LLMs Locally — running open-weight models on a laptop, workstation or GPU server: hardware sizing and quantization, Ollama, llama.cpp, vLLM and SGLang, desktop runners and NVIDIA NIM, open-weight model licences, LLM gateways and inference optimisation, plugging local models into GitHub Copilot, Claude Code and the open coding assistants, and running it all in production.
-
Hugging Face & On-Device Models — finding, evaluating and downloading Hub models and checking their licences; model formats (safetensors, GGUF, ONNX, Core ML / Core AI, LiteRT, ExecuTorch, MLX); transformers v5 pipelines; curated speech, vision, small-LLM and embedding models; conversion and quantization; fine-tuning with PEFT and TRL; and integrating Hub models into Python and Spring Boot backends and into Apple, Android, Windows / .NET, web and cross-platform apps, with Inference Providers and Spaces as the cloud fallback.
-
LangChain — LangChain 1.x and LangGraph 1.x in Python: packages, chat models, prompts, LCEL, structured output, tools,
create_agentand middleware, graphs and workflows, checkpointers and stores, interrupts, streaming, multi-agent and Deep Agents, MCP adapters, multimodality and voice, guardrails, LangSmith observability, evaluation and deployment, local models, LangChain.js, and LangChain4j for Java. -
Spring AI — Spring AI 2.0 on Spring Boot 4: setup and starters,
ChatModelandChatClient, prompts, options, advisors and structured output, tool calling and tool search, chat memory and its repositories, streaming, an MCP client and server, multimodality, transcription, speech and images, observability, evaluation, testing, security and guardrails, agentic patterns, local models, production and deployment, the 1.x to 2.x migration, and a bridge to the vector-store and RAG reference. -
RAG Systems in Production — the day-2 engineering of retrieval-augmented generation on top of the Vector Databases & RAG foundations: parsing real documents and multimodal content, ingestion at scale and freshness, query routing and text-to-SQL, advanced indexing, conversational memory persistence, citations, hallucination control, guardrails, access control, serving RAG as a REST/SSE/WebSocket API and behind MCP, caching and cost, GraphRAG and text2cypher with Neo4j, evaluation at scale, observability and deployment — each build page in LangChain 1.x with FastAPI, Spring AI 2.0 and LangChain4j 1.20, on the DocsAssistant production service.
-
Conversational Channels — exposing the DocsAssistant RAG assistant through chat: a channel-agnostic core with adapters for streaming SSE and WebSocket APIs, chat UI protocols (AI SDK UI Message Stream, AG-UI), ready-made UIs, an embeddable widget, WebRTC data channels and XMPP, and for Microsoft Teams, WhatsApp Business, Apple Messages for Business, Slack, Telegram, Google Chat and RCS, with LangChain and Spring AI back-ends and operations guidance.
-
Voice Agents — giving the DocsAssistant RAG assistant a voice: hosted platforms (ElevenLabs Agents), realtime speech-to-speech APIs (OpenAI GPT-Live and Realtime, Gemini Live, Azure Voice Live), open-source frameworks (Pipecat, LiveKit Agents) and hand-rolled pipelines, speech-to-text and text-to-speech models, turn-taking and barge-in, delivery in the browser over WebRTC or WebSocket and over the phone with Twilio, Asterisk and SIP, with LangChain and Spring AI back-ends and operations guidance.
-
LLMOps & Evaluation — running LLM applications in production: offline and online evaluation, LLM-as-a-judge, eval sets and CI regression gates, serving at scale with vLLM and SGLang, deployment and release patterns behind a gateway, observability with the OpenTelemetry GenAI conventions, drift monitoring, feedback loops, cost management and governance, with the DocsAssistant as running example.
-
AI Security & Responsible AI — threat modelling and trust boundaries for LLM applications, the OWASP Top 10 for LLM Applications (2026) and for Agentic Applications, concrete defences against prompt injection, data leakage, excessive agency, unsafe output, RAG and supply-chain attacks and denial of wallet, guardrails, AI red teaming with garak, PyRIT and promptfoo, LLMSecOps, securing the developer toolchain, the NIST AI RMF and AI 600-1 and the EU AI Act, with the DocsAssistant as the system under attack and defence.
Books used in this section
The following requester-provided books are consulted references for this section’s concepts across its 15 sub-sections — never the primary source of any code example. Every example is verified against the current official documentation of the tool or framework it uses; on any discrepancy, that documentation is authoritative.
-
Huyen, Chip. AI Engineering: Building Applications with Foundation Models. O’Reilly Media, 2024/2025. Publisher page: https://www.oreilly.com/library/view/ai-engineering/9781098166298/ . Cited on LLM Foundations & Prompting’s bibliography, and on AI-Assisted Development’s bibliography, and on AI Agents' bibliography (Chapter 6), and on Running LLMs Locally’s bibliography, and on Hugging Face & On-Device Models' bibliography, and on RAG Systems in Production’s bibliography (Chapters 6 and 10), and on LLMOps & Evaluation’s bibliography (Chapters 3, 4, 9 and 10), and on AI Security & Responsible AI’s bibliography (Chapters 5 and 10).
-
Alammar, Jay, and Maarten Grootendorst. Hands-On Large Language Models: Language Understanding and Generation. O’Reilly Media, 2024. Publisher page: https://www.oreilly.com/library/view/hands-on-large-language/9781098150952/ . Cited on LLM Foundations & Prompting’s bibliography, on Running LLMs Locally’s bibliography, and on LangChain’s bibliography, and on Hugging Face & On-Device Models' bibliography.
-
Taulli, Tom. AI-Assisted Programming: Better Planning, Coding, Testing, and Deployment. O’Reilly Media, 2024. Publisher page: https://www.oreilly.com/library/view/ai-assisted-programming/9781098164553/ . Cited on LLM Foundations & Prompting’s bibliography, and on AI-Assisted Development’s bibliography.
-
Osmani, Addy. Beyond Vibe Coding: From Coder to AI-Era Developer. O’Reilly Media, 2025. Publisher page: https://www.oreilly.com/library/view/beyond-vibe-coding/9798341634749/ . Cited on LLM Foundations & Prompting’s bibliography, and on AI-Assisted Development’s bibliography, and on Customizing AI Workflows' bibliography, and on AI Security & Responsible AI’s bibliography (Chapter 8).
-
Lanham. AI Agents in Action. Manning, 2025. ISBN 978-1-63343-634-3. Publisher page: https://www.manning.com/books/ai-agents-in-action . Cited on AI Agents' bibliography, on Running LLMs Locally’s bibliography, and on Building CLIs for AI Agents' bibliography.
-
Albada. Building Applications with AI Agents. O’Reilly Media, 2025. ISBN 978-1-098-17650-1. Publisher page: https://www.oreilly.com/library/view/building-applications-with/9781098176495/ . Cited on Customizing AI Workflows' bibliography, on AI Agents' bibliography, on Model Context Protocol (MCP)'s bibliography, on Building CLIs for AI Agents' bibliography, and on Conversational Channels' bibliography (Chapters 3 and 13), and on Voice Agents' bibliography (Chapter 3), and on LLMOps & Evaluation’s bibliography (Chapters 9 to 11), and on AI Security & Responsible AI’s bibliography (Chapters 12 and 13).
-
Anthapu & Agarwal. Building Neo4j-Powered Applications with LLMs. Packt, 2025. ISBN 978-1-83620-623-1. Publisher page: https://www.packtpub.com/en-us/product/building-neo4j-powered-applications-with-llms-9781836206231 . Cited on LangChain’s bibliography, and on Spring AI’s bibliography, and on RAG Systems in Production’s bibliography.
-
Mendelevitch & Bao. Hands-On RAG for Production. O’Reilly Media, 2026. ISBN 979-8-341-62171-8. Publisher page: https://www.oreilly.com/library/view/hands-on-rag-for/9798341621701/ . Cited on Model Context Protocol (MCP)'s bibliography, and on LangChain’s bibliography, and on RAG Systems in Production’s bibliography, and on Conversational Channels' bibliography (Chapter 3), and on Voice Agents' bibliography (Chapter 8), and on LLMOps & Evaluation’s bibliography (Chapters 4 and 6), and on AI Security & Responsible AI’s bibliography (Chapters 3 and 4).
-
Lee. Hugging Face in Action. Manning, 2026. ISBN 978-1-63343-671-8. Publisher page: https://www.manning.com/books/hugging-face-in-action . Cited on Running LLMs Locally’s bibliography, on Model Context Protocol (MCP)'s bibliography, and on LangChain’s bibliography, and on Hugging Face & On-Device Models' bibliography, and on Voice Agents' bibliography.
-
Aryan. LLMOps: Managing Large Language Models in Production. O’Reilly Media, 2025. ISBN 978-1-098-15420-2. Publisher page: https://www.oreilly.com/library/view/llmops/9781098154196/ . Cited on Running LLMs Locally’s bibliography, and on LLMOps & Evaluation’s bibliography, and on AI Security & Responsible AI’s bibliography (Chapter 8).
-
Oshin & Campos. Learning LangChain. O’Reilly Media, 2025. ISBN 978-1-098-16728-8. Publisher page: https://www.oreilly.com/library/view/learning-langchain/9781098167271/ . Cited on LangChain’s bibliography, and on RAG Systems in Production’s bibliography (Chapters 2 and 3), and on Conversational Channels' bibliography (Chapters 8 and 11), and on LLMOps & Evaluation’s bibliography (Chapter 10).
-
Parasuraman. Mastering Spring AI. Apress, 2024. ISBN 979-8-8688-1000-8. Publisher page: https://link.springer.com/book/10.1007/979-8-8688-1001-5 . Cited on Spring AI’s bibliography.
-
Polzer. RAG with Python Cookbook. O’Reilly Media, 2026. ISBN 979-8-341-60056-0. Publisher page: https://www.oreilly.com/library/view/rag-with-python/9798341600553/ . Cited on Model Context Protocol (MCP)'s bibliography, and on LangChain’s bibliography, and on RAG Systems in Production’s bibliography, and on Voice Agents' bibliography (Chapter 3).
-
Walls, Craig. Spring AI in Action. Manning, 2026. ISBN 978-1-63343-611-4. Publisher page: https://www.manning.com/books/spring-ai-in-action . Cited on Model Context Protocol (MCP)'s bibliography, and on Spring AI’s bibliography, and on RAG Systems in Production’s bibliography (Chapters 4, 5 and 10), and on Conversational Channels' bibliography (Chapter 3), and on Voice Agents' bibliography (Chapter 8), and on LLMOps & Evaluation’s bibliography (Chapters 2 and 9), and on AI Security & Responsible AI’s bibliography (Chapter 10).
-
Wilson, Steve. The Developer’s Playbook for Large Language Model Security. O’Reilly Media, 2024. ISBN 978-1-098-16220-7. Publisher page: https://www.oreilly.com/library/view/the-developers-playbook/9781098162191/
-
Cited on Hugging Face & On-Device Models' bibliography (Chapter 9, model supply chain), and on AI Security & Responsible AI’s bibliography (the backbone of that sub-section).
-
oreilly.com answers automated fetches with an HTTP 403 response, but every publisher page above is a live,
reachable page when opened in a browser. These books are consulted references, not the primary source of any
example anywhere in this section; on any discrepancy the official documentation of the tool or framework in
question is authoritative.
Where AI material lives elsewhere on this site
Some AI-adjacent material already has a home elsewhere on this site and is linked from here rather than duplicated:
| Page | What it covers |
|---|---|
Embeddings, similarity search, ANN indexing, RAG fundamentals, agentic RAG and the LangChain / Spring AI vector-store integrations. |
|
Vector indexes and GenAI integrations inside the Neo4j graph database. |
|
RAG pipelines built specifically on the Qdrant vector database. |
|
Using Redis as a vector store from a Spring Boot application. |
|
Apple’s on-device Foundation Models framework: guided generation, tool calling and on-device inference. |
|
Microsoft Azure’s hosted AI, data and IoT service catalog. |
|
A catalog of Claude Code agents and skills for automating the issue-to-PR workflow. |