<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Adamant Tools blog: practical AI engineering</title>
  <link>https://tools.adamant-solutions.com/blog/</link>
  <atom:link href="https://tools.adamant-solutions.com/blog/feed.xml" rel="self" type="application/rss+xml"/>
  <description>Tested, practical guides for developers who put AI models into real applications: APIs, streaming, tools, RAG, costs, errors and security. Every code sample compiles and runs.</description>
  <language>en</language>
  <item>
    <title>Timeouts and cancellation for LLM calls: idle timeout, total deadline, stop button (Python, Node.js)</title>
    <link>https://tools.adamant-solutions.com/blog/llm-timeouts-cancellation/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/llm-timeouts-cancellation/</guid>
    <pubDate>Tue, 10 Nov 2026 08:00:00 GMT</pubDate>
    <description>A model call can be slow, silent or endless. Four kinds of timeout, why a read timeout never stops a streaming answer, and tested Python and Node.js code with a cancel.</description>
  </item>
  <item>
    <title>Ollama in Docker on a server without a GPU: what to expect and how to measure it</title>
    <link>https://tools.adamant-solutions.com/blog/ollama-docker-cpu/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/ollama-docker-cpu/</guid>
    <pubDate>Tue, 03 Nov 2026 08:00:00 GMT</pubDate>
    <description>Run Ollama in Docker on a CPU-only server, keep the model loaded, limit memory and queue, and measure load time and tokens per second from the API response.</description>
  </item>
  <item>
    <title>Expose a REST API as an MCP server, safely (Python, MCP SDK 2.x)</title>
    <link>https://tools.adamant-solutions.com/blog/mcp-server-from-openapi/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/mcp-server-from-openapi/</guid>
    <pubDate>Sat, 31 Oct 2026 08:00:00 GMT</pubDate>
    <description>Turn a few operations of an OpenAPI-described REST API into MCP tools with the official Python SDK - an allow-list of operations and response fields, strict input validation, a fixed base URL, the server's own credentials, short errors and a rate limit - tested with the SDK client and no API key.</description>
  </item>
  <item>
    <title>Prompt injection: practical defenses you can test (Python and JavaScript)</title>
    <link>https://tools.adamant-solutions.com/blog/prompt-injection-defenses/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/prompt-injection-defenses/</guid>
    <pubDate>Sat, 31 Oct 2026 08:00:00 GMT</pubDate>
    <description>What prompt injection is, why no filter stops it, and five defenses in code that limit the damage - separating data from instructions, a tool allow-list, argument checks with the user's permissions, human confirmation and output validation - tested with malicious inputs.</description>
  </item>
  <item>
    <title>Minimal RAG with PostgreSQL and pgvector and a local model (Python)</title>
    <link>https://tools.adamant-solutions.com/blog/rag-postgres-pgvector/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/rag-postgres-pgvector/</guid>
    <pubDate>Sat, 31 Oct 2026 08:00:00 GMT</pubDate>
    <description>Store embeddings in PostgreSQL with pgvector, search them with an HNSW index and cosine distance, and answer with a local Ollama model that cites its sources. Tested in CI without a model.</description>
  </item>
  <item>
    <title>Tool calling explained with an example that runs (Anthropic and OpenAI, Python)</title>
    <link>https://tools.adamant-solutions.com/blog/tool-calling-basics/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/tool-calling-basics/</guid>
    <pubDate>Sat, 31 Oct 2026 08:00:00 GMT</pubDate>
    <description>What really happens when a model calls a function, a manual loop for the Anthropic Messages API and the OpenAI Responses API, error handling, a step limit, and tests against a fake server with no API key.</description>
  </item>
  <item>
    <title>Count tokens and estimate costs before you call a model (Python and JavaScript)</title>
    <link>https://tools.adamant-solutions.com/blog/count-tokens-costs/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/count-tokens-costs/</guid>
    <pubDate>Fri, 30 Oct 2026 08:00:00 GMT</pubDate>
    <description>Three ways to count tokens (local tokenizer, provider endpoint, usage), how to turn them into a cost range, and a budget check that blocks expensive calls.</description>
  </item>
  <item>
    <title>HTTP 429 from AI APIs: retry with backoff and Retry-After (Python, Node.js, Java)</title>
    <link>https://tools.adamant-solutions.com/blog/retry-429-retry-after/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/retry-429-retry-after/</guid>
    <pubDate>Fri, 30 Oct 2026 08:00:00 GMT</pubDate>
    <description>When a model API answers 429 Too Many Requests, retrying immediately makes things worse. What the standards say, which errors to retry, and tested retry code with no dependencies in Python, JavaScript and Java.</description>
  </item>
  <item>
    <title>Calling an LLM from Spring Boot with Spring AI 2.0: chat, streaming and structured output</title>
    <link>https://tools.adamant-solutions.com/blog/spring-ai-ollama-chatclient/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/spring-ai-ollama-chatclient/</guid>
    <pubDate>Fri, 30 Oct 2026 08:00:00 GMT</pubDate>
    <description>A tested Spring Boot 4.1 + Spring AI 2.0 example with a local Ollama model: a plain answer, a streamed answer and an answer mapped to a Java record, plus the configuration changes that break older tutorials.</description>
  </item>
  <item>
    <title>Stream an LLM answer to the browser with Server-Sent Events (FastAPI + fetch)</title>
    <link>https://tools.adamant-solutions.com/blog/stream-llm-sse-browser/</link>
    <guid isPermaLink="true">https://tools.adamant-solutions.com/blog/stream-llm-sse-browser/</guid>
    <pubDate>Fri, 30 Oct 2026 08:00:00 GMT</pubDate>
    <description>Show a model's answer word by word: a FastAPI endpoint that relays Ollama as SSE, browser code that reads it with fetch and POST, and a working Stop button.</description>
  </item>
</channel>
</rss>
