Site Map
3 guides · 66 guide parts · 32 posts · 7 benchmarks.
RecallRun
Your account
Benchmarks
- All benchmarks
- Chunk size sweep: 200 to 2,000 characters
- Five chunking strategies on real docs
- Hybrid search: BM25 + vectors, alpha swept 0 to 1
- Exact vector search vs HNSW, 10k to 1M vectors
- Golden-set evals in CI: catching retrieval regressions
- A TF-IDF router instead of an LLM call
- Predicting embeddings vs tokens with less data
Blog
- All posts
- What to log in a RAG request: a JSON schema, its cost, and what it caught
- RAG system design interview questions, with answers backed by measurements
- Is a cross-encoder reranker worth the latency? Measured on 2,908 FastAPI doc chunks
- Caching RAG answers: a 0.95 semantic cache gave 2.5% wrong answers (corrected from 16%)
- A fail-closed tool gate for AI agents: a denylist let 25 of 29 bad calls through, an allowlist 0
- Validating LLM JSON with Pydantic: repair fixed 26 of 51 bad outputs, 2 silently wrong
- Dockerizing a FastAPI LLM service: slim image 59 MB vs 441 MB, hardening adds 0.3 s startup
- What one RAG query costs: a token-by-token breakdown (with calculator)
- pgvector vs numpy on 100k vectors: exact scan is 5x slower, HNSW is 7x faster
- BM25 from scratch in Python: 27 lines, score-identical to rank_bm25 and up to 1.7x faster
- Prompt injection through documents: 12 poisoned chunks, 3 regex detectors, 1 of 8 new attacks caught
- Recovering headings from PDFs for RAG chunking: font size alone found 26%
- Embedding dimensions: what 256 vs 1024 vs 3072 costs in memory, latency and recall
- Multi-tenant RAG without data leaks: 5 designs, one test suite
- Streaming LLM answers from FastAPI with SSE: sources first, then tokens
- Make your RAG say 'I don't know': a score threshold, measured
- Reciprocal Rank Fusion k=60: what the constant does, measured on real BM25 + vector runs
- Build an MCP server in Python for your docs: stdio and HTTP, with measured payload sizes
- Metadata filtering in vector search: post-filter loses results, measured
- Databricks control plane vs compute plane (data plane), explained
- FastAPI headers: read, validate and set them (and the underscore trap)
- OpenAI Responses API vs Chat Completions: what changes in your code
- Does chunk overlap help? Measured at 0, 10, 20 and 40 percent
- Chunk size sweep: 200 to 2,000 characters on real docs
- RAG evals that fail CI: a golden-set harness in about 100 lines of Python
- JEPA vs LLMs: what LeCun's world models actually change for engineers
- Do you need a vector database? Brute-force search benchmarked from 10k to 1M vectors
- Hybrid search in Python: BM25 + vectors with Reciprocal Rank Fusion, alpha swept 0 to 1
- Jev vs LLMs: when a decision model beats a chat model (and when it doesn't)
- RAG chunking, measured: heading-aware chunks doubled hit@1 on the FastAPI docs
- The RAG production checklist: 25 checks before real users see it
- Stop fake citations in RAG: validate them server-side in 25 lines of Python
- Topics
- agents
- ai-engineering
- api
- bm25
- checklist
- chunking
- citations
- classification
- cloud
- cost
- data-engineering
- databricks
- decision-models
- deployment
- docker
- embeddings
- evals
- fastapi
- hnsw
- http
- hybrid-search
- interviews
- jepa
- latency
- llm
- llm-reliability
- llm-routing
- mcp
- observability
- openai
- pdf-parsing
- performance
- pgvector
- production
- prompt-injection
- pydantic
- python
- rag
- reranking
- retrieval
- security
- spark
- streaming
- structured-output
- vector-search
- world-models
Community
- Community blog
- asyncio, threads or processes? Choosing Python concurrency by workload
- Idempotency keys: making POST requests safe to retry
- Composite indexes in SQL: why column order decides everything
- Prompt injection: practical defences for LLM apps that read untrusted text
- Caching for backend engineers: cache-aside, TTLs and the stampede problem
- Logs, metrics and traces: a practical introduction to observability with OpenTelemetry
- Git workflows for small teams: trunk-based development vs feature branches
- Vector embeddings explained for developers: similarity, normalisation and the mistakes that hurt search
- uv: one fast tool for Python packages, virtual environments and versions
- Ruff: replacing Flake8, isort and Black with one fast linter and formatter
- DuckDB: fast SQL analytics on Parquet, CSV and DataFrames without a server
- pgvector: vector search inside the Postgres you already run
- Ollama: run open LLMs locally for development, privacy and offline work
- Pydantic v2: validate data at the edges of your Python application
- gitcollect: group GitHub and GitLab repos into collections, with per-repo access control
- Write for RecallRun
Guides
- All guides
- AI Engineering
- What an LLM actually is
- Tokens, embeddings & the transformer
- Sampling, latency & cost
- Prompt engineering that holds up
- Why RAG exists
- Embeddings & vector databases
- Ingestion & chunking
- Retrieval that actually works
- Build a RAG pipeline in Python
- Evaluating RAG
- Tool use & agents
- MCP: the Model Context Protocol
- Build an MCP server in Python
- MCP clients & security
- Why LLM apps need observability
- OpenTelemetry fundamentals
- Tracing LLM calls with OpenTelemetry
- Langfuse: LLM tracing & evals
- Grafana, Prometheus, Tempo & Loki
- Guardrails, security & cost control
- Project: an observable docs copilot
- OpenAI SDK
- How the OpenAI API works
- Setup, keys & your first call
- Responses API vs Chat Completions
- Models, parameters & tokens
- Streaming responses
- Structured outputs with Pydantic
- Function calling: the tool loop
- Built-in tools
- Images, files & audio
- Embeddings & semantic search
- Async client & concurrency
- Errors, retries & timeouts
- Cost & latency optimisation
- Files, vector stores & managed retrieval
- Conversation state & memory
- Safety, moderation & data handling
- The OpenAI Agents SDK
- Testing & evaluating LLM code
- Realtime & voice
- Project: retail analyst assistant
- FastAPI
- What FastAPI really is
- Setup, tooling & the dev loop
- Path, query & header parameters
- Request bodies & Pydantic v2
- Responses & serialization
- Dependency injection in depth
- Routers, layers & project structure
- Configuration with pydantic-settings
- Errors & a consistent error contract
- Lifespan, state & shared resources
- async def vs def: the concurrency model
- Middleware
- Background work & task queues
- Streaming, SSE, WebSockets & files
- Databases with async SQLAlchemy 2.0
- Pagination, concurrency & migrations
- Authentication: passwords, JWTs & API keys
- Authorization & API security
- Testing FastAPI apps
- API design & OpenAPI
- Logging, metrics & tracing
- Performance & scaling
- Deployment & graceful shutdown
- The production pitfalls checklist
- Project: a production-grade orders API