AI & LLM for software engineers
From language-model basics through prompting, RAG and agents to MCP, evaluation and production.
- LLM fundamentals
How large language models predict the next token, what a context window is and where hallucinations come from.
- Prompt engineering
Writing instructions, examples and output formats so the model does what you actually want.
- Embeddings & vector databases
Turning text into meaning vectors and finding nearest neighbours fast.
- RAG
Answers grounded in your own documents: retrieve passages and put them into the prompt.
- Tool use (function calling)
The model proposes schema-checked tool calls; the application runs them and returns the results.
- AI agents
A model in a loop that plans, uses tools and decides the next step itself – and when a plain workflow is enough.
- MCP (Model Context Protocol)
An open standard for connecting AI applications to tools and data through MCP servers.
- Evals
Test sets and metrics that tell whether a prompt or model change actually helped.
- Fine-tuning
Training a model further on your own examples – when it pays off and when a prompt or RAG is better.
- LLMOps
Production: model gateways, caching, rate limits, observability and cost control.
- Guardrails & safety
Defending against prompt injection, data leaks and unsafe agent actions.
- Local LLMs
Running open models on your own hardware: quantization, performance and trade-offs.
- AI coding assistants
Working with AI on code: context, reviewing changes, tests and the limits of trust.
- AI in .NET
Semantic Kernel, Microsoft.Extensions.AI and official SDKs in .NET applications.
- AI in Java
Spring AI and LangChain4j: models, RAG and tools on the JVM.
- AI in Node.js
Vercel AI SDK, LangChain.js and provider SDKs in TypeScript – from chat to agents.
- AI in Python
LangChain, LlamaIndex and provider SDKs – the richest ecosystem for experiments and production.
- AI in Go
LangChainGo and official SDKs: simple, efficient services built on language models.
Articles
- Tool use: how a language model calls your application's functions Article · 17 min read
The model does not run code – it proposes tool calls that follow a schema, and your application executes them and sends the results back. The tool use loop step by step, good tool definitions, errors, parallel calls, the tool runner and…
- RAG: answers grounded in your own documents Article · 22 min read
Retrieval-Augmented Generation from basics to production – chunking, hybrid search with BM25 and RRF, reranking, cited answers with Claude, evaluation and the cases where RAG is unnecessary.
- Prompt engineering: writing instructions a model will actually follow Article · 17 min read
The anatomy of a good prompt, context instead of incantations, examples, structured outputs instead of begging for JSON, effort instead of "think step by step" and prompts treated as code – with examples in Python, TypeScript and C#.
- MCP (Model Context Protocol): one standard for connecting AI to tools and data Article · 14 min read
What the Model Context Protocol is, how the host–client–server architecture works, how tools, resources and prompts differ, how the stdio and Streamable HTTP transports work and how to write your own MCP server in Python, TypeScript and…
- Local language models: Ollama, llama.cpp, vLLM, quantization and the real trade-offs Article · 12 min read
How to run an open model on your own hardware, how much memory it really needs, what quantization and GGUF are, where generation speed comes from and when a local model makes sense instead of an API. Code in Python, TypeScript and C#.
- LLMOps: model gateways, caching, limits, observability and costs in production Article · 16 min read
What happens to an LLM application after the demo – a gateway, prompt caching, retries and fallbacks, per-customer limits, token and cost tracking, prompt versioning and safe rollouts. With code in Python, TypeScript and C#.
- LLM fundamentals: tokens, context windows and next-token prediction Article · 21 min read
How a large language model really works – from tokenization and the transformer, through context windows and sampling, to costs, hallucinations and a first API call in five languages.
- Fine-tuning language models: when it pays off, LoRA and QLoRA in practice Article · 15 min read
How fine-tuning differs from prompting and RAG, when it really makes sense, how to prepare data, how LoRA and QLoRA work and how to measure whether the tuned model is better – with code in Python, TypeScript and C#.
- Evaluating LLM applications (evals): tests for systems that are not deterministic Article · 18 min read
How to build an evaluation set, combine code checks with LLM-as-judge, count results honestly and stop regressions in CI – using a pierogi restaurant assistant, with code in Python, TypeScript and C#.
- Embeddings and vector databases: searching by meaning Article · 22 min read
What an embedding is, how to compute cosine similarity, which model to pick and how to store millions of vectors in pgvector, Qdrant or Chroma – with code in Python, TypeScript, C#, Java and Go.
- AI in Python: Anthropic SDK, Pydantic, LangChain, LlamaIndex and FastAPI in practice Article · 18 min read
A map of the richest AI ecosystem – when the provider SDK with Pydantic is enough and when LangChain or LlamaIndex pay off – plus streaming, tools, RAG with sentence-transformers and Qdrant, an MCP server and a FastAPI endpoint with tests.
- AI in Node.js and TypeScript: the Anthropic SDK, Vercel AI SDK and LangChain.js in practice Article · 13 min read
A map of the AI ecosystem for Node.js – when the provider SDK is enough, when to use the Vercel AI SDK and when LangChain.js – plus streaming to the browser, tools, agents and structured data with Zod, with production notes.
- AI in Java: the official SDK, Spring AI and LangChain4j in practice Article · 18 min read
A map of the AI ecosystem on the JVM – when the official Anthropic SDK is enough, when Spring AI and when LangChain4j – plus streaming, structured responses in records, tools, RAG with pgvector and tests with a fake model.
- AI in Go: the official SDK, LangChainGo and MCP in fast services Article · 17 min read
A map of the AI ecosystem in Go – the official Anthropic SDK, LangChainGo, the MCP Go SDK, pgvector and Ollama – plus SSE streaming with cancellation through context, structured responses, the tool runner, parallel calls with errgroup and…
- AI in .NET: Microsoft.Extensions.AI, official SDKs, Semantic Kernel and Agent Framework Article · 11 min read
A map of the .NET AI ecosystem and practical C# code – the official Anthropic and OpenAI SDKs, the IChatClient and IEmbeddingGenerator abstractions, a middleware pipeline in ASP.NET Core, tools, structured output, Semantic Kernel and…
- Guardrails and security for LLM applications: prompt injection, data leaks and tool permissions Article · 16 min read
Why prompt injection has no simple fix and how to build defence in depth – the OWASP Top 10 for LLM applications, input classifiers, least-privilege tools, human in the loop and safe output handling. Code in Python, TypeScript and C#.
- AI coding assistants: from editor suggestions to an agent that opens pull requests Article · 14 min read
How to work with AI on code so you gain speed without losing quality: modes of work, project context (CLAUDE.md, AGENTS.md), the explore–plan–implement–verify cycle, change review, tests, security and automated review in CI.
- AI agents: a model in a loop with tools – and when a plain workflow is enough Article · 18 min read
How an agent differs from a single call and from a workflow, five workflow patterns, an agent loop with limits and an approval gate, context management, costs and security – illustrated by complaint handling at a pierogi restaurant.