AI Engineering

Sandbox

Start from a known design

Each template opens in the sandbox. Trace a request, inject failures, read the review — then change it and watch the numbers move. Two are deliberately flawed so you can fix them.

  • Naive RAG chatbot

    Embed the question, take the top 5 chunks, paste them into a big model. Where everyone starts.

    • One retriever, no reranking, no budget
    • Fixed-size chunks imported once
    • No guardrails, evals or tracing — the linter will tell you

    9 blocks5.8 s · $0.0188/requestrecall@5 0.930 errors · 6 warnings

  • Production RAG assistant

    Hybrid search with ACL pre-filters, reranking, a budgeted assembler, guardrails, a per-tenant semantic cache, fallbacks, and incremental ingestion.

    • Hybrid + rerank + rewrite: measured on the bundled corpus
    • Gateway with two providers, retries and timeouts
    • Incremental ingestion through a queue and worker

    27 blocks3.4 s · $0.0042/requestrecall@5 0.980 errors · 0 warnings

  • Enterprise search (permissioned)

    Connectors sync content and ACLs; every query is pre-filtered by the employee’s groups.

    • ACL pre-filter on both retrievers
    • Content + permission sync, incremental
    • Citations through the assembler

    21 blocks3.7 s · $0.0053/requestrecall@8 0.980 errors · 1 warnings

  • Support agent with refunds

    An agent with read tools, a capped refund tool behind a permission layer with approvals, and a handoff to people.

    • Permission layer with validation, allow-list and approval for irreversible actions
    • Budgets and max steps on the agent
    • Idempotent refunds with timeouts

    26 blocks8.8 s · $0.0094/requestrecall@5 0.960 errors · 1 warnings

  • Document extraction pipeline

    A durable workflow: parse → extract to schema → validate → human review for low confidence → system of record.

    • Durable workflow with checkpoints
    • Validation as an output guard
    • Idempotent writes to the system of record

    12 blocks65 ms · $0.0031/request0 errors · 0 warnings

  • Voice agent

    STT → small fast model with one tool → TTS. Plain turns fit the ~1 s budget; tool turns need a filler line.

    • Small model with a cached prefix
    • Two-step agent cap
    • Transfer to staff as a tool

    11 blocks4.1 s · $0.0014/request0 errors · 4 warnings

  • Coding assistant

    A large-model agent with code search and a sandbox for running tests, checkpoints and compaction for long runs.

    • Sandbox with no network
    • Compaction for long runs
    • Evals on tasks with hidden tests

    13 blocks26 s · $0.0599/request0 errors · 3 warnings

  • Text-to-SQL agent

    Schema retrieval, validated read-only SQL through a permission layer, result explained.

    • Read-only role and validation
    • Schema/semantic layer as retrieval
    • Evals on question → result pairs

    13 blocks6.7 s · $0.0066/request0 errors · 1 warnings

  • Deep research

    Queued jobs; an orchestrator plans, three worker agents search in parallel through an egress allow-list, then it synthesises.

    • Async: the user gets a job, not a spinner
    • Parallel workers on a small model
    • Allow-listed web access

    16 blocks60 ms · $0.0313/request0 errors · 6 warnings

  • Ticket triage router

    A small-model router sends easy tickets down a cheap path and escalates the rest.

    • Routing cuts cost on the easy majority
    • Escalation to humans
    • Idempotent ticket updates

    11 blocks3.7 s · $0.0025/request0 errors · 1 warnings

  • Email assistant (unsafe on purpose)

    Reads your inbox, sees your CRM, can send email — with nothing in between. Run the injection failure.

    • Untrusted input + private data + outbound channel
    • No permission layer, budgets or tracing
    • Fix it with the linter’s moves

    7 blocks9.3 s · $0.0142/request3 errors · 7 warnings