Navigation
๐Ÿค–

Apps & Agents

Building with models โ€” multi-model routing, RAG pipelines, and agent execution infrastructure.

0 / 13 chapters

Multi-Model Systems

01

Model Routingcoming soon

Classifying input difficulty and dispatching to small/medium/large models.

02

Cascadingcoming soon

Try a cheap model first, escalate if confidence is low โ€” cost-quality tradeoffs.

03

Multi-Model GPU Sharingcoming soon

Co-locating models on shared GPUs, scheduling, memory partitioning.

04

Cost-Quality Optimizationcoming soon

Pareto curves, finding the optimal model mix for a given budget and quality target.

RAG Infrastructure

05

Embedding Pipelinecoming soon

Chunking strategies, embedding model selection, incremental index updates.

06

Vector Database Infrastructurecoming soon

Milvus, Faiss, Weaviate, Pinecone โ€” index types, sharding, replication, query latency at scale.

07

Reranker Servingcoming soon

Cross-encoder models as second-stage filter โ€” when and how to deploy.

08

End-to-End RAG Servingcoming soon

Orchestrating retriever โ†’ reranker โ†’ generator with latency budgets and caching.

Agent Infrastructure

09

Sandbox Typescoming soon

Containers, microVMs (Firecracker), gVisor โ€” isolation vs startup latency tradeoffs.

10

Agent State Managementcoming soon

Preserving filesystem, running processes, and conversation history across tool calls.

11

Agent Securitycoming soon

Prompt injection into tools, filesystem escape, resource exhaustion, AppArmor/seccomp, network egress.

12

Agent Scalingcoming soon

Thousands of concurrent sandboxes, CPU overcommit, sandbox pooling and warm-start.

13

Agent Orchestrationcoming soon

Loop placement (CPU vs GPU), preemption/recovery, command log replay for state reconstruction.