<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel>
<title>BYD Tech blog</title>
<link>https://bydtech.in/blog</link>
<atom:link href="https://bydtech.in/blog/rss.xml" rel="self" type="application/rss+xml"/>
<description>What changed in AI, apps and the web, releases of our open-source tools, and engineering deep dives.</description>
<language>en-us</language>
<lastBuildDate>Fri, 06 Nov 2026 00:00:00 GMT</lastBuildDate>
<item><title>LLM tokenization explained: BPE, vocabularies and why token counts differ</title><link>https://bydtech.in/blog/tokenization-explained</link><guid isPermaLink="true">https://bydtech.in/blog/tokenization-explained</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How LLM tokenizers work: BPE, byte-level BPE, WordPiece and Unigram, vocabulary size, and why one text costs different token counts across models.</description></item>
<item><title>Voice agent architecture: speech-to-text, LLM, text-to-speech and the latency budget</title><link>https://bydtech.in/blog/voice-agent-architecture</link><guid isPermaLink="true">https://bydtech.in/blog/voice-agent-architecture</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How voice agents work: cascaded STT, LLM and TTS versus speech-to-speech, the latency budget per turn, turn detection, barge-in, telephony and evaluation.</description></item>
<item><title>Building an MCP server: tools, resources, transports and authorization</title><link>https://bydtech.in/blog/mcp-server-transports-and-auth</link><guid isPermaLink="true">https://bydtech.in/blog/mcp-server-transports-and-auth</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Build an MCP server on the 2026-07-28 spec: tools, resources, prompts, stdio vs Streamable HTTP, stateless requests, OAuth 2.1 and security rules.</description></item>
<item><title>Sandboxing AI-generated code: containers, gVisor, microVMs and WebAssembly</title><link>https://bydtech.in/blog/ai-agent-code-sandboxing</link><guid isPermaLink="true">https://bydtech.in/blog/ai-agent-code-sandboxing</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to sandbox code an AI agent writes and runs: the threat model, containers, seccomp, gVisor, Firecracker microVMs, Kata, WebAssembly and practical limits.</description></item>
<item><title>System design: file uploads with presigned URLs, multipart uploads and processing</title><link>https://bydtech.in/blog/file-upload-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/file-upload-system-design</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to design file uploads: presigned URLs straight to object storage, multipart and resumable uploads, magic-number checks, malware scans and a CDN.</description></item>
<item><title>Zero-downtime database migrations: expand and contract, backfills and locks</title><link>https://bydtech.in/blog/zero-downtime-database-migrations</link><guid isPermaLink="true">https://bydtech.in/blog/zero-downtime-database-migrations</guid><pubDate>Fri, 06 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to change a PostgreSQL schema without downtime: expand and contract, safe recipes for columns and indexes, batched backfills, lock_timeout and rollback.</description></item>
<item><title>LoRA and fine-tuning explained: when to fine-tune an LLM and how adapters work</title><link>https://bydtech.in/blog/lora-fine-tuning-explained</link><guid isPermaLink="true">https://bydtech.in/blog/lora-fine-tuning-explained</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>When fine-tuning an LLM beats prompting or RAG, and how LoRA and QLoRA work: low-rank updates, rank and alpha, 4-bit training, adapter serving and data.</description></item>
<item><title>LLM guardrails architecture: input checks, output checks and policy layers</title><link>https://bydtech.in/blog/llm-guardrails-architecture</link><guid isPermaLink="true">https://bydtech.in/blog/llm-guardrails-architecture</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How LLM guardrails fit together: input checks, output checks, tool-call policy, rules vs classifiers vs LLM judges, streaming checks and fail-closed design.</description></item>
<item><title>Text-to-SQL agents: how LLMs answer questions from your database, and how to keep them safe</title><link>https://bydtech.in/blog/text-to-sql-agents</link><guid isPermaLink="true">https://bydtech.in/blog/text-to-sql-agents</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How text-to-SQL agents turn a question into SQL: schema retrieval, generation, validation and self-correction, and why the database must enforce the limits.</description></item>
<item><title>System design: search autocomplete (typeahead)</title><link>https://bydtech.in/blog/search-autocomplete-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/search-autocomplete-system-design</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to design search autocomplete: a trie with top-k per node, prefix indexes, suggestions from query logs, edge caching, typo tolerance and the client.</description></item>
<item><title>Distributed locks: leases, fencing tokens and when not to use one</title><link>https://bydtech.in/blog/distributed-locks</link><guid isPermaLink="true">https://bydtech.in/blog/distributed-locks</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How distributed locks fail under pauses, clock drift and slow networks, why leases need fencing tokens, the Redlock debate, and the alternatives to a lock.</description></item>
<item><title>Feature flags: how flag systems work, and how to keep them from becoming debt</title><link>https://bydtech.in/blog/feature-flags-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/feature-flags-system-design</guid><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How feature flag systems evaluate rules, bucket users for percentage rollouts, stream updates, fail safely and stay auditable, and how to clean up stale flags.</description></item>
<item><title>AI agent memory: short-term context, long-term stores and what to forget</title><link>https://bydtech.in/blog/ai-agent-memory</link><guid isPermaLink="true">https://bydtech.in/blog/ai-agent-memory</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How AI agent memory works: context windows, rolling summaries, retrieval by relevance, recency and importance, write policies, MemGPT, privacy and evaluation.</description></item>
<item><title>Multi-agent orchestration patterns: orchestrator-worker, pipelines, handoffs and debate</title><link>https://bydtech.in/blog/multi-agent-orchestration-patterns</link><guid isPermaLink="true">https://bydtech.in/blog/multi-agent-orchestration-patterns</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Multi-agent orchestration patterns compared: pipelines, routing, orchestrator-workers, voting, evaluator loops, handoffs and debate, plus costs and failures.</description></item>
<item><title>How LLM inference serving works: prefill, decode, continuous batching and throughput</title><link>https://bydtech.in/blog/llm-inference-serving-batching</link><guid isPermaLink="true">https://bydtech.in/blog/llm-inference-serving-batching</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How LLM serving works: prefill and decode, TTFT and inter-token latency, continuous batching, chunked prefill, disaggregation and speculative decoding.</description></item>
<item><title>Event sourcing and CQRS: storing what happened, not just the current state</title><link>https://bydtech.in/blog/event-sourcing-and-cqrs</link><guid isPermaLink="true">https://bydtech.in/blog/event-sourcing-and-cqrs</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How event sourcing and CQRS work: event streams and replay, projections, snapshots, upcasting, idempotent read models, GDPR deletion and when to avoid them.</description></item>
<item><title>Consistency models explained: CAP, PACELC, linearizability and eventual consistency</title><link>https://bydtech.in/blog/consistency-models-cap-theorem</link><guid isPermaLink="true">https://bydtech.in/blog/consistency-models-cap-theorem</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>What the CAP theorem really proves, PACELC, linearizable, causal and eventual consistency, quorums where R + W &gt; N, and how to pick a model for each feature.</description></item>
<item><title>System design: a notification system for email, push and SMS</title><link>https://bydtech.in/blog/notification-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/notification-system-design</guid><pubDate>Wed, 04 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to design notifications: preferences, templates, quiet hours by time zone, dedupe keys, per-channel queues, retries, push tokens, bounces and unsubscribe.</description></item>
<item><title>site-agent: let visitors ask your website to do things, with your rules</title><link>https://bydtech.in/blog/site-agent-release</link><guid isPermaLink="true">https://bydtech.in/blog/site-agent-release</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Releases</category><description>We published site-agent, an open-source tag that lets visitors ask your site to do things and calls only the WebMCP tools your page declared.</description></item>
<item><title>Have an AI feature on your site? What the EU AI Act asks of it now, and what’s due by 2 December 2026</title><link>https://bydtech.in/blog/eu-ai-act-december-2-ai-content-marking</link><guid isPermaLink="true">https://bydtech.in/blog/eu-ai-act-december-2-ai-content-marking</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>News</category><description>Article 50 of the EU AI Act has applied since 2 August 2026. Older generative AI systems have until 2 December 2026 to mark their output. A checklist.</description></item>
<item><title>Run our site, security and AI-config checks in GitHub Actions</title><link>https://bydtech.in/blog/audit-tools-github-actions</link><guid isPermaLink="true">https://bydtech.in/blog/audit-tools-github-actions</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Releases</category><description>site-audit, port-audit and agent-config-audit now ship as GitHub Actions on the Marketplace: one step scans, reports in the job summary and fails on Fix now.</description></item>
<item><title>RAG explained: how retrieval-augmented generation works, step by step</title><link>https://bydtech.in/blog/rag-explained</link><guid isPermaLink="true">https://bydtech.in/blog/rag-explained</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How retrieval-augmented generation works, step by step: parsing, chunking, embedding, indexing, retrieval, reranking and prompting, with a Python sketch.</description></item>
<item><title>Chunking strategies for RAG: fixed, recursive, structure-aware, semantic and more</title><link>https://bydtech.in/blog/chunking-strategies-for-rag</link><guid isPermaLink="true">https://bydtech.in/blog/chunking-strategies-for-rag</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Fixed-size, recursive, structure-aware, semantic, parent-child, contextual and late chunking for RAG: how each splits text, its trade-offs, and how to test it.</description></item>
<item><title>Hybrid search: combining BM25 and vector search, and how rank fusion works</title><link>https://bydtech.in/blog/hybrid-search-bm25-vector-search</link><guid isPermaLink="true">https://bydtech.in/blog/hybrid-search-bm25-vector-search</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How BM25 and vector search fail in different ways, how reciprocal rank fusion and weighted score fusion merge them, and how to tune and test the result.</description></item>
<item><title>How to evaluate a RAG system: retrieval metrics, answer faithfulness and a test set</title><link>https://bydtech.in/blog/how-to-evaluate-rag</link><guid isPermaLink="true">https://bydtech.in/blog/how-to-evaluate-rag</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Evaluate RAG in two halves: retrieval with recall@k, MRR and nDCG, and answers with faithfulness and relevance, on a labeled test set that runs in CI.</description></item>
<item><title>How LLM tool calling works: the agent loop, step by step</title><link>https://bydtech.in/blog/how-llm-tool-calling-works</link><guid isPermaLink="true">https://bydtech.in/blog/how-llm-tool-calling-works</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How LLM tool calling works: tool definitions, what the model returns, the agent loop, parallel calls, tool_choice, strict schemas, errors, safety and MCP.</description></item>
<item><title>System design: an AI chat assistant for a website</title><link>https://bydtech.in/blog/ai-chat-assistant-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/ai-chat-assistant-system-design</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>A system design for a website AI assistant: ingestion on publish, hybrid retrieval, SSE streaming, caching layers, guardrails, evaluation and failure modes.</description></item>
<item><title>Designing a rate limiter: token bucket, sliding window and limits across many servers</title><link>https://bydtech.in/blog/rate-limiter-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/rate-limiter-system-design</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How fixed window, sliding window and token bucket rate limiters work, how to hold one limit across many servers, and how to answer with 429 and Retry-After.</description></item>
<item><title>Idempotency and job queues: at-least-once delivery, retries and exactly-once effects</title><link>https://bydtech.in/blog/idempotency-and-job-queues</link><guid isPermaLink="true">https://bydtech.in/blog/idempotency-and-job-queues</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Why queues deliver at least once, and how idempotency keys, dedupe tables, the outbox pattern and dead-letter queues give you exactly-once effects.</description></item>
<item><title>Caching strategies: cache-aside, write-through, write-back, TTLs and invalidation</title><link>https://bydtech.in/blog/caching-strategies</link><guid isPermaLink="true">https://bydtech.in/blog/caching-strategies</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>Cache-aside, read-through, write-through and write-back compared, with TTL jitter, invalidation, stampede protection, eviction and HTTP caching headers.</description></item>
<item><title>Database indexing explained: B-trees, composite and covering indexes, and reading a query plan</title><link>https://bydtech.in/blog/database-indexing-explained</link><guid isPermaLink="true">https://bydtech.in/blog/database-indexing-explained</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How B-tree indexes work, what they cost, how to order composite indexes, when covering and partial indexes help, and how to read a PostgreSQL query plan.</description></item>
<item><title>Text embeddings explained: vectors, similarity, dimensions and quantization</title><link>https://bydtech.in/blog/text-embeddings-explained</link><guid isPermaLink="true">https://bydtech.in/blog/text-embeddings-explained</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How text embeddings work: contrastive training, cosine vs dot product, Matryoshka dimensions, token limits, int8 and binary quantization, and model choice.</description></item>
<item><title>Prompt caching and the KV cache: how reusing a prompt prefix cuts latency and cost</title><link>https://bydtech.in/blog/prompt-caching-and-kv-cache</link><guid isPermaLink="true">https://bydtech.in/blog/prompt-caching-and-kv-cache</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How the KV cache and prompt caching work: prefill and decode, prefix reuse in vLLM and SGLang, OpenAI, Anthropic and Gemini caching, and how to get hits.</description></item>
<item><title>Vector search indexes explained: HNSW, IVF and product quantization</title><link>https://bydtech.in/blog/vector-search-ann-indexes</link><guid isPermaLink="true">https://bydtech.in/blog/vector-search-ann-indexes</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How approximate nearest neighbor indexes work: HNSW graphs, IVF clustering, product quantization, DiskANN, filtered search, and how to benchmark recall.</description></item>
<item><title>Reranking for search and RAG: cross-encoders, ColBERT and LLM rerankers</title><link>https://bydtech.in/blog/reranking-cross-encoders</link><guid isPermaLink="true">https://bydtech.in/blog/reranking-cross-encoders</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How rerankers work in search and RAG: bi-encoders vs cross-encoders, ColBERT late interaction, LLM rerankers, candidate depth, score thresholds and evaluation.</description></item>
<item><title>How structured outputs work: constrained decoding, grammars and JSON Schema</title><link>https://bydtech.in/blog/constrained-decoding-structured-outputs</link><guid isPermaLink="true">https://bydtech.in/blog/constrained-decoding-structured-outputs</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How LLM structured outputs work: logit masking, JSON Schema compiled to automata, token boundaries, provider strict-mode limits, quality and retries.</description></item>
<item><title>LLM observability: tracing, metrics and evals for AI features in production</title><link>https://bydtech.in/blog/llm-observability-tracing</link><guid isPermaLink="true">https://bydtech.in/blog/llm-observability-tracing</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>What to record on every LLM call, how to trace agent runs with the OpenTelemetry GenAI conventions, redaction, sampling, alerts and online evals.</description></item>
<item><title>System design: a reliable webhook delivery system</title><link>https://bydtech.in/blog/webhook-delivery-system-design</link><guid isPermaLink="true">https://bydtech.in/blog/webhook-delivery-system-design</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>How to design webhook delivery: an outbox and a queue, retries with backoff and jitter, HMAC signatures, SSRF checks, dead letters, replay and delivery logs.</description></item>
<item><title>Sharding and consistent hashing: how data is split across many servers</title><link>https://bydtech.in/blog/consistent-hashing-and-sharding</link><guid isPermaLink="true">https://bydtech.in/blog/consistent-hashing-and-sharding</guid><pubDate>Tue, 03 Nov 2026 00:00:00 GMT</pubDate><category>Deep dives</category><description>When to shard, how to pick a shard key, and how consistent hashing, virtual nodes, rendezvous and jump hash keep keys in place when servers are added.</description></item>
</channel></rss>