Building an AI agent using a single large prompt is a common naive design where business rules, tool descriptions, and context are lumped together in hopes that the model adheres to them. This approach expects the language model to enforce rules, retrieve identity information, integrate data, and constrain behavior all simultaneously. In practice, models str…
Deep reads
Section-by-section takeaways from 7 newsletters (ByteByteGo, Daily Dose of DS, Berkeley RDI, ExplainThis, Latent Space, The Batch, DataTalks.Club Weekly); 228 articles in the last 120 days, 82 of them from ByteByteGo.
ByteByteGo announced that it will discontinue selling its all-in-one annual membership for ByteByteGo Live on October 28 at 2 PM PT due to lower-than-expected enrollment and customer confusion. Moving forward, the platform will switch to selling cohort-based live courses individually. Existing members and those who subscribe before the deadline will retain a…
Retrieval-Augmented Generation (RAG) is a technique that couples an information retrieval system with a large language model to generate context-grounded answers. Traditional RAG relies on a fixed, predefined retrieval step whose output quality is constrained by the initial context retrieved. In contrast, Agentic RAG uses an iterative agent that selects tool…
Distributed systems partition functionality across distinct components running on separate processes or machines, such as application services, database replicas, and background workers. In these architectures, components frequently need to communicate and wait for one another to complete tasks, a pattern referred to as coordination. While necessary, coordin…
Interactions with large language models incur monetary costs based on the number of input and output tokens processed. While output tokens typically carry a higher per-token price, input tokens can accumulate substantial costs due to system prompts, past conversation history, and large contextual reference materials attached to each query. Many applications…
Native mobile development involves creating applications tailored to a specific operating system using dedicated languages and frameworks, such as Swift and SwiftUI for Apple's iOS, or Kotlin and Jetpack Compose for Android. Because these environments are separate, building natively for both platforms requires maintaining two independent client codebases. Fr…
Platform engineering teams often expend substantial time providing repetitive technical support to internal developers via chat channels. At Uber, internal support channels receive roughly 45,000 questions per month, causing frequent delays and back-and-forth exchanges. Although the answers often exist across internal documentation such as Engwiki and an int…
The article outlines eight distinct chunking strategies designed for retrieval-augmented generation (RAG) agent pipelines. These techniques span simple programmatic approaches like fixed-size and recursive splitting, structural methods like document-based and hierarchical chunking, and advanced AI-driven workflows such as semantic similarity thresholds, LLM-…
This section provides an overview of recently published articles for ByteByteGo subscribers over the past month. Topics covered include the data lifecycle from creation to deletion, application engine migrations at scale, and foundational application networking concepts. Additionally, the newsletter released deep dives on database concurrency control and the…
Large language models acquire behavioral patterns alongside factual knowledge during their training process. In pretraining via next-word prediction, models adjust internal parameters to capture context, roles, and diverse personality traits exhibited across different texts. Developers then guide the model toward assistant-like conduct using demonstration ex…
In the early nineteenth century, Joseph Fourier developed methods using sine and cosine functions to mathematically represent complex patterns, such as heat distribution across materials. These sinusoidal functions enable the decomposition of intricate spatial or temporal variations into simpler, repeating components. In modern machine learning, large langua…
Large language models operate by predicting the next token in a sequence, making them effective at language tasks and knowledge recombination but structurally ill-suited for constraint satisfaction problems. Using Sudoku as a test case where leading LLMs achieved only a 6.9% success rate, the text identifies two fundamental architectural limitations: left-to…
This section provides an overview of recently published articles for ByteByteGo subscribers over the past month. Topics covered include the lifecycle of data from creation to deletion, as well as handling large-scale system migrations. Additional articles explore application networking fundamentals, database concurrency control mechanisms, and the evolution…
A recommendation system must primarily determine which items appear first in a user's recommendation list to prevent them from leaving the platform. This ordering process is driven by a ranker component, which assigns relevance scores using user interaction history, item metadata, and contextual information. At Netflix, this is performed by systems like GenR…
Sycophancy in large language models occurs when a system distorts its answer solely to agree with the user, even abandoning a correct response without any new valid evidence. This behavior causes the assistant to prioritize user agreement over factual correctness, often reinforcing the mistake with an apology that misleadingly appears trustworthy. Unlike sta…
When an application queries a large language model, the input context often contains instructions, conversation history, retrieved documents, code, and tool outputs rather than just the latest question. The model converts this entire input into tokens, with the maximum combined volume of the input and the generated output constrained by the context window. H…
Secure Shell (SSH) provides secure access to a remote machine across an unsecured network starting with a TCP connection. The client and server negotiate cryptographic algorithms and independently compute matching session keys that are never transmitted over the wire. Host verification occurs when the client checks the server's public key against the known_h…
State is the information retained by a system that influences its ongoing functionality, making it an essential component of useful software. Managing state is challenging because systems must preserve accuracy during overlapping requests, server scaling, machine failures, and software deployments. While common software advice suggests designing stateless ap…
Language models lack native access to external systems such as code repositories, incident reports, and production logs, requiring software integrations referred to as tools. An AI agent is an application that leverages a language model to orchestrate multi-step tasks by selecting and executing these tools. Tool outputs are fed back to the model iteratively…
In the context of large language models, hallucination refers to generated text that is factually incorrect, invented, or inconsistent with designated source material. A response does not need to be entirely false to be considered a hallucination, as a single fabricated detail can mislead a user who relies on it. Although hallucinations resemble confident fa…