Skip to content
latentSource

Articles

Projects, analysis, and explanations of data and AI systems.

948 ways to root

948 ways to root

An AI model wrote 948 working root exploits for the Linux kernel in a single run. The published vulnerability counts show the same acceleration, and it turns patching into daily work for anyone who runs systems.

AgentsAI trendsInfrastructure & local AI
Nov 12, 20264 min read
When meaning misses

When meaning misses

A World Cup project vanished from search after one missing letter. The scores explain why embeddings, correct prompts, and hybrid retrieval still need a test of relevance.

Embeddings & searchRAG & retrievalInfrastructure & local AI+1
Oct 19, 20267 min read
One GPU, your own models

One GPU, your own models

A model that fits on your GPU can still struggle with a real workload. How to budget for context and concurrent requests, avoid cold starts, and serve your own fine-tuned model through Ollama.

Infrastructure & local AIInference & efficiencyTraining & fine-tuning
Jul 1, 20266 min read
Inside a ReAct loop

Inside a ReAct loop

Follow a recorded movie-clip search through a ReAct loop: how the model chooses tools, what the application actually executes, and what a timestamp result can tell us.

AgentsReasoningPrompting & outputs
Jun 1, 202610 min read
Prompting is still a skill

Prompting is still a skill

A better prompt has to survive the cases that broke the old one, without breaking what already worked. Here is how to design and test that change.

Prompting & outputsReasoningPrivacy & safety
May 25, 20267 min read
Inside this AI-powered site

Inside this AI-powered site

How this site connects articles, recorded AI interactions, and supporting evidence so readers can inspect a project without starting a new model call.

RAG & retrievalEmbeddings & searchInfrastructure & local AI
May 18, 20265 min read
Make the output follow a grammar

Make the output follow a grammar

Grammar-constrained decoding rules out invalid continuations before the model samples a token. Follow what it guarantees, what it costs, and what still needs checking.

Prompting & outputsInference & efficiency
May 11, 20268 min read
Run AI on your own hardware

Run AI on your own hardware

A worked cost comparison shows when local AI can earn its hardware cost, and how model quality, memory, and operating effort change the decision.

Infrastructure & local AIInference & efficiency
May 4, 20269 min read
Your database can search vectors

Your database can search vectors

Keep article content, publication rules, and vector search in PostgreSQL. Learn where transactions help and how to test indexes and hybrid rankings.

Embeddings & searchData & analysisInfrastructure & local AI
Apr 27, 202611 min read
Claude Code in the terminal

Claude Code in the terminal

A pagination request shows how Claude Code can carry a task across files, and why accepting the change takes more than a passing test.

AI codingAgents
Apr 20, 20266 min read
Beyond a single prompt

Beyond a single prompt

A movie-clip search shows when tool results justify another model call, how agent loops differ from fixed workflows, and where to stop.

AgentsReasoningEvaluation
Apr 13, 202610 min read
Connect your agent with MCP

Connect your agent with MCP

One search tool, several AI clients. MCP makes the connection reusable, while leaving permissions and model decisions in the application.

AgentsPrompting & outputsInfrastructure & local AI
Apr 6, 20265 min read
Teach a smaller model

Teach a smaller model

A smaller model can learn from a larger one, but what survives depends on what you teach it. Soft targets, worked examples, and the tests that make distillation useful.

Training & fine-tuningInference & efficiency
Mar 30, 20267 min read
A million tokens of context

A million tokens of context

A model can receive the right information and still miss it. When does a million-token window help, and when should retrieval choose what goes inside?

Model architectureInference & efficiencyRAG & retrieval
Mar 23, 20267 min read
Give your LLM a knowledge graph

Give your LLM a knowledge graph

A knowledge graph lets an LLM follow explicit relationships. A worked example shows how to retrieve those connections, check their sources, and decide when the extra structure pays off.

RAG & retrievalData & analysisReasoning
Mar 16, 20268 min read
AI without the cloud

AI without the cloud

A phone can summarize a recording without a connection. Making that useful takes more than a small model: memory, battery, accuracy, and cloud fallback all matter.

Infrastructure & local AIInference & efficiencyPrivacy & safety
Mar 9, 20268 min read
Fine-tuning or RAG?

Fine-tuning or RAG?

A wrong answer can come from missing facts, poor task behavior, or broken output structure. Diagnose the failure before choosing retrieval, training, or both.

Training & fine-tuningRAG & retrievalEvaluation
Mar 2, 20268 min read
Let a small model draft

Let a small model draft

A small model drafts several tokens and a larger one checks them together. How speculative decoding preserves the target distribution, and when the saved passes repay the extra work.

Inference & efficiencyModel architecture
Feb 23, 20268 min read
Coding faster, learning less?

Coding faster, learning less?

AI can finish a coding task without teaching you how the result works. What productivity and learning studies tell us about keeping both gains.

AI codingAgentsEvaluation
Feb 16, 20266 min read
Give the model time to think

Give the model time to think

Two recorded attempts at the same puzzle show how extended thinking can help, what the extra computation does, and why a confident explanation still needs checking.

ReasoningInference & efficiencyTraining & fine-tuning
Feb 9, 20268 min read
DeepSeek R1 changed what you could run yourself

DeepSeek R1 changed what you could run yourself

DeepSeek R1 put competitive reasoning into downloadable models. What the benchmarks, training recipe, and smaller variants actually let practitioners do.

ReasoningTraining & fine-tuningAI trends
Feb 2, 20268 min read
What comes next for AI?

What comes next for AI?

Six January forecasts for AI in 2026, the decisions they would change, and what would count as evidence that they worked out.

AI trendsAgentsReasoning
Jan 26, 20268 min read
AI went mainstream

AI went mainstream

How reasoning models, agent tools, and lower costs changed what developers could build in 2025, and what they still had to prove before deployment.

AI trendsAgentsInference & efficiency
Jan 19, 20268 min read
See the shape of meaning

See the shape of meaning

The same embeddings can produce very different maps. Use PCA, t-SNE, and UMAP to explore relationships, then check which ones survive the projection.

VisualizationEmbeddings & searchData & analysis
Jan 12, 20269 min read
Give Gemini your documents

Give Gemini your documents

Use Gemini File Search to turn documents into searchable evidence, with a resume example that separates finding information from verifying a qualification.

RAG & retrievalEmbeddings & search
Jan 5, 20267 min read
Make room on your GPU

Make room on your GPU

A model can fit on your GPU and still run out of memory. Separate weights, training state, and serving caches to choose the fix that actually helps.

Infrastructure & local AITraining & fine-tuningInference & efficiency
Dec 29, 20258 min read
Build your first RAG pipeline

Build your first RAG pipeline

Build a RAG pipeline by following one question from source document to answer, and learn how to find the point where useful evidence goes missing.

RAG & retrievalEmbeddings & searchData & analysis+1
Dec 22, 202512 min read
Who is adopting AI?

Who is adopting AI?

AI adoption depends on what you count. Dated survey evidence explains the differences across industries and regions, and what it takes to turn use into dependable work.

AI trendsData & analysis
Dec 15, 20258 min read
The Cost of Intelligence

The Cost of Intelligence

Falling token prices can make an AI feature affordable. A fixed support task shows what changes, what still costs money, and why quality belongs in the calculation.

Inference & efficiencyAI trendsInfrastructure & local AI
Dec 8, 20259 min read
Scaling laws of LLMs

Scaling laws of LLMs

Chinchilla showed why a smaller model can win on the same training budget. Serving it millions of times changes the calculation again.

Training & fine-tuningModel architectureInfrastructure & local AI
Dec 1, 20255 min read
How neural networks evolved

How neural networks evolved

From a network that cannot learn XOR to Transformers, each architecture changes what is easy to learn and what it costs.

Model architectureTraining & fine-tuning
Nov 24, 20259 min read
Inside the Transformer

Inside the Transformer

Follow one sentence through attention, position, and prediction to understand how Transformers use context, and why access to a word does not guarantee understanding.

Model architectureTraining & fine-tuning
Nov 17, 20259 min read
Mapping Star Wars

Mapping Star Wars

A fun data experiment: embedding fifteen Star Wars characters, testing which clusters actually show up, and finding out the model sorts them by rank and story arc instead of light and dark.

Embeddings & searchVisualizationData & analysis
Nov 10, 20257 min read
Find your customer clusters

Find your customer clusters

Customer clusters become useful when they support a decision. Follow the choices behind K-Means, from meaningful features to campaigns worth testing.

Data & analysisEvaluationVisualization
Nov 3, 20258 min read
Visualizing word embeddings

Visualizing word embeddings

How words acquire useful geometry, why vector analogies work, and what a two-dimensional plot can tell you about a learned embedding.

Embeddings & searchVisualization
Oct 27, 20258 min read
Navigating latent space

Navigating latent space

Follow an image into a compact representation and back to see how latent spaces make generation possible, and how to test whether their geometry is useful.

Embeddings & searchModel architectureVisualization
Oct 20, 20257 min read
Search by meaning

Search by meaning

How vector search finds related text, why fast searches can miss useful results, and what happens when metadata filters shrink the candidate list.

Embeddings & searchData & analysisRAG & retrieval
Oct 13, 202510 min read
Show your reasoning

Show your reasoning

Two recorded letter counts show how writing out intermediate steps can help an LLM, and why a convincing explanation still needs checking.

Prompting & outputsReasoning
Oct 6, 20257 min read
When AI sees and speaks

When AI sees and speaks

A model can explain a chart and still misread its numbers. Follow how images become language-model inputs, what that makes possible, and where detail gets lost.

Model architectureEvaluation
Sep 29, 20257 min read
Get JSON you can use

Get JSON you can use

Two recorded order extractions show what structured output gets right and what an application still needs to check. A Gemini calendar example follows the path from a schema to a validated, authorized action.

Prompting & outputsAgentsInference & efficiency
Sep 22, 20259 min read
From chat to action

From chat to action

A movie-clip agent shows how tools, memory, and feedback turn a request into action, and why knowing when to stop belongs in the design.

AgentsReasoning
Sep 15, 202510 min read

41 of 41 articles