AI Systems
The Hard Part of AI Engineering: APIs, Retries and Idempotency
Engineering field notes on REST contracts, webhook delivery, job idempotency and ambiguous AI-provider outcomes in MailTrace and Instant Deck.
Read articleANDREA CAPERA / ENGINEERING JOURNAL
Technical field notes on building reliable AI products. Explore retrieval-augmented generation (RAG), machine learning, LLM systems, data engineering and the decisions behind production software.
RESEARCH / BUILD / SHIP
FEATURED SERIES / 35 ARTICLES
Inside a source-linked AI evidence product: document ingestion, embeddings, retrieval, evaluation, production constraints and the engineering trade-offs.
Read the engineering seriesSTART HERE / TECHNICAL DEEP DIVE
How to design RAG and semantic retrieval for evidence, compliance and document-heavy workflows using source boundaries, pgvector and auditability.
Read the articleTHE KNOWLEDGE LIBRARY
Follow the technical problem, not just the technology.
Capability ownership, understandable interfaces and shared web and Android workflows.
19 ARTICLES02 / FIELD NOTESSource preservation, email features, attachments and document processing.
5 ARTICLES03 / FIELD NOTESSemantic search, hybrid retrieval, grounded answers and citation validation.
13 ARTICLES04 / FIELD NOTESCandidate groups, distinct requests, broad families and reversible decisions.
7 ARTICLES05 / FIELD NOTESClassifiers, leakage prevention, reviewer labels and honest quality measurement.
15 ARTICLES06 / FIELD NOTESDurable jobs, saved results, observability and task-specific model selection.
8 ARTICLES07 / FIELD NOTESRelated writing on websites, dashboards, visualisation and data product design.
4 ARTICLESALL RESEARCH & ARTICLES
Browse practical guides, engineering notes and experiments.
71 articles found
AI Systems
Engineering field notes on REST contracts, webhook delivery, job idempotency and ambiguous AI-provider outcomes in MailTrace and Instant Deck.
Read articleArchitecture & product
Engineering note · Part 1
How MailTrace connects correspondence, evidence, issues and saved answers without losing their source history.
Read articleArchitecture & product
Engineering note · Part 2
A practical boundary between model interpretation and the backend rules that protect source evidence.
Read articleEvidence & preparation
Engineering note · Part 3
How useful email features combine semantic text with explicit context, and why missing context should remain visible.
Read articleEvidence & preparation
Engineering note · Part 4
Use derived text for retrieval while preserving original messages, source hashes and a route back to the evidence.
Read articleEmbeddings & retrieval
Engineering note · Part 5
Where text embeddings fit in MailTrace, how source chunks are indexed, and what similarity does not prove.
Read articleEmbeddings & retrieval
Engineering note · Part 6
How explicit embedding contracts prevent incompatible indexes and make migrations reviewable.
Read articleEmbeddings & retrieval
Engineering note · Part 7
Why evidence search needs both paraphrase matching and exact terms, with a small rank-fusion example.
Read articleClustering & issue review
Engineering note · Part 8
How complete-link candidates and contextual constraints can reduce misleading issue merges.
Read articleClustering & issue review
Engineering note · Part 9
Keep broad navigation families separate from the number of concrete issues in a case.
Read articleClustering & issue review
Engineering note · Part 10
Why request references, dates and missing context must constrain semantic grouping.
Read articleEmbeddings & retrieval
Engineering note · Part 11
How scoped retrieval, structured answer proposals and saved artifacts fit together in MailTrace Q&A.
Read articleEmbeddings & retrieval
Engineering note · Part 12
Validate source scope, freshness and exact quotations before treating an answer as evidence-grounded.
Read articleClustering & issue review
Engineering note · Part 13
How proposal, apply and restore stages keep AI organisation changes understandable and recoverable.
Read articleClustering & issue review
Engineering note · Part 14
What a synthetic consolidation fixture revealed about bounded AI output, unassigned evidence and active issue visibility.
Read articleProduction & efficiency
Engineering note · Part 15
Why a saved job lifecycle matters more than a spinner when AI work is slow, retryable and paid.
Read articleProduction & efficiency
Engineering note · Part 16
How reuse, explicit invalidation and saved artifacts reduce latency without hiding stale evidence.
Read articleML experiments & evaluation
Engineering note · Part 17
Separate deterministic regression tests, provider integration checks and real evidence quality evaluation.
Read articleArchitecture & product
Engineering note · Part 18
Turn backend states into clear actions, saved progress and honest explanations for people working with evidence.
Read articleML experiments & evaluation
Experiment design · Part 19
A proposed baseline experiment for narrow email triage, with a scikit-learn pipeline example.
Read articleML experiments & evaluation
Experiment design · Part 20
Where tree ensembles might help structured email triage, and how to compare them without inventing a winner.
Read articleClustering & issue review
Experiment design · Part 21
Compare clustering assumptions against the actual cost of merging or separating case evidence.
Read articleClustering & issue review
Experiment design · Part 22
Explore soft cluster membership without mistaking model responsibilities for evidence certainty.
Read articleEmbeddings & retrieval
Experiment design · Part 23
A proposed second-stage relevance check for MailTrace retrieval, with clear limits on cost and authority.
Read articleML experiments & evaluation
Experiment design · Part 24
How to evaluate email models without training on near-duplicates of the evidence used to test them.
Read articleML experiments & evaluation
Experiment design · Part 25
Turn reviewed decisions into a governed evaluation dataset before using them to train another model.
Read articleEvidence & preparation
Experiment design · Part 26
Combine attachment signals without excluding a useful file solely because it is small.
Read articleML experiments & evaluation
Experiment design · Part 27
Use embedding visualisations to investigate patterns without treating a two-dimensional picture as a clustering verdict.
Read articleML experiments & evaluation
Experiment design · Part 28
Explore anomaly detection for import quality while keeping unusual evidence distinct from invalid evidence.
Read articleML experiments & evaluation
Experiment design · Part 29
Decide whether a measured failure belongs to retrieval, prompting, validation or model training before fine-tuning.
Read articleProduction & efficiency
Experiment design · Part 30
A task-specific routing experiment that weighs quality, latency and cost without using model size as a safety rule.
Read articleArchitecture & product
Architecture proposal · Part 31
Explain where deep-learning frameworks could fit without implying that every AI product needs its own neural-network training stack.
Read articleArchitecture & product
Architecture proposal · Part 32
Evaluate orchestration frameworks against durable jobs, explicit tool permissions and the existing application workflow.
Read articleEvidence & preparation
Engineering note · Part 33
Distinguish a stored file from searchable text, and expose unsupported media processing honestly.
Read articleArchitecture & product
Architecture proposal · Part 34
Share evidence rules and saved jobs across clients while giving Android an interface suited to mobile use.
Read articleArchitecture & product
Architecture proposal · Part 35
Why consolidation needs maintained capability owners, explicit contracts and workflow tests rather than another collection of copied modules.
Read articleRAG & AI Evaluation
A practical guide to improving RAG systems through embedding fine-tuning, FAISS optimisation, hybrid retrieval, generative-model tuning, evaluation and continuous monitoring.
Read articleRAG Fundamentals
A clear explanation of how decision-support logic fits into RAG, what FAISS does, and why RAG can provide better domain-specific context than a standalone LLM.
Read articleGraphRAG & Knowledge Systems
How combining Retrieval-Augmented Generation with knowledge graphs improves entity linking, relationship-aware retrieval, multi-hop context and grounded answers.
Read articleAgentic RAG
How agentic RAG extends standard retrieval-augmented generation with planning, iterative retrieval, tool use, validation and multi-step reasoning.
Read articleAgentic AI
Practical lessons from building Open Tools: bounded agents, explicit permissions, durable task memory, validation gates and deployment checks.
Read articleRAG & Search
How to design RAG and semantic retrieval for evidence, compliance and document-heavy workflows using source boundaries, pgvector and auditability.
Read articleAI Product Design
Why AI outputs should often remain drafts until reviewed, and how structured schemas, confidence and confirmation improve trust.
Read articleAI Product Engineering
A practical production checklist from DDDecks.ai: observability, error contracts, security, failure handling, data boundaries and deployment.
Read articleCRM & Product Design
Product lessons from Founder CRM: goals, people, companies, opportunities, warm paths, scoring and next actions.
Read articleGenerative AI
Lessons from Instant Deck on evidence extraction, research, memo synthesis, narrative planning, visual planning and controlled rendering.
Read articleVector Search
Practical guidance on using PostgreSQL and pgvector for semantic search, with metadata filters, ownership boundaries and retrieval evaluation.
Read articleAI Evaluation
How schemas, validation, critique, repair and regression testing improve reliability in LLM-powered workflows.
Read articleTechnical SEO
Lessons from migrating a large content site: route inventories, canonical URLs, indexing gates, media migration and deterministic content.
Read articleAI Strategy
A cross-project framework for deciding where AI belongs: workflow mapping, structured context, model boundaries, human review and measurable outcomes.
Read articleParallel AI
How to design embedding pipelines that scale with batching, partitioning, retries, idempotency and cost-aware concurrency.
Read articleHPC & ML Systems
Lessons from scientific HPC that apply directly to batch inference, evaluation, document processing and AI pipelines.
Read articleMachine Learning
A practical comparison of DBSCAN and K-means based on safeguarding and marketplace segmentation projects.
Read articleResponsible ML
How synthetic data can support privacy-preserving prototyping without pretending simulated labels are real-world evidence.
Read articleML Evaluation
Why precision, recall, F1, calibration, failure costs and operational thresholds matter more than one headline metric.
Read articleData Science
Practical ways to turn event-level histories into trends, volatility, rolling windows and cohort-comparable features.
Read articleData Products
How to integrate models into interactive dashboards without overwhelming non-technical users.
Read articleHuman-Centred AI
Human-centred principles for alerting, triage and machine-learning outputs in sensitive workflows.
Read articleRAG Evaluation
A practical RAG evaluation framework covering retrieval recall, citation correctness, unsupported claims, latency and cost.
Read articleSearch Engineering
Why production search often combines semantic retrieval, lexical matching and metadata filters.
Read articleRAG & Search
How reranking can improve retrieval quality without replacing your vector database.
Read articleAgentic AI
A practical observability model for agent runs, tool calls, retries, failures and sensitive data boundaries.
Read articleAI Evaluation
How to stop prompt edits and model upgrades from silently breaking production behaviour.
Read articleProduction AI
How to route requests across models based on task complexity, risk and response-time requirements.
Read articleProduction Engineering
How request IDs, event names and redaction make AI systems easier to debug and safer to operate.
Read articleAI Systems
Why document processing, report generation and multi-step AI tasks should often move out of the request-response cycle.
Read articleAI Product Architecture
Why durable AI products need explicit entities, source records, artifacts and model-run metadata—not just chat history.
Read articleTechnical Product
How entities and relationships turn vague AI features into buildable product specifications.
Read articleTechnical Product Management
How to prioritise platform capability, configuration and experiments when model capability and customer needs move quickly.
Read articleEnterprise AI
What has to change when an AI proof of concept becomes a real multi-user product.
Read articleData Visualization
What a large London marketplace dataset taught me about aggregation, filtering, coordinated views and analytical storytelling.
Read articleSearch and filtering work in your browser. Each article has its own permanent, indexable URL.