Topic

LLM Reliability

All digests tagged LLM Reliability

Build for the Memo, Not the Demo — Shawn Chan, China Resources Holdings thumbnail

· 24:23

Build for the Memo, Not the Demo — Shawn Chan, China Resources Holdings

This talk contrasts 'demos' (polished, impressive marketing presentations) with 'memos' (deeply scrutinized documents that survive intense financial review). The speaker argues that most AI products are built for the demo—designed to impress for five minutes. However, for real-world applications involving significant capital, the product must pass the 'memo test,' which requires absolute verifiability and accountability. Key architectural requirements include ensuring every claim has a traceable source (provenance), reconciling conflicting data points, and maintaining clear separation between established facts and speculative guesses.

Key takeaways

  1. The Demo vs. Memo Test 9:06

    A demo aims for fluency and confidence; a memo must survive an argument and prove its accuracy under scrutiny. The moment real money is watching, every sentence becomes a memo sentence, meaning there is no safe demo anymore.

  2. Source Trust Hierarchy 15:45

    AI systems must differentiate between sources of varying trust levels (e.g., an audited filing vs. a group chat rumor). Treating all sources equally leads to unreliable outputs.

  3. Data Reconciliation is Mandatory 18:42

    The system must automatically check that figures agree across all sections of the document (e.g., page one vs. table on page eleven). Failure to reconcile numbers signals a critical flaw.

  4. Contradictions are Signals, Not Bugs 24:19

    Instead of smoothing over conflicts (e.g., CEO's number vs. official filing), the AI must surface contradictions. The gap between conflicting numbers is often the most important piece of information.

  5. Accountability and Provenance

    Every claim must be linked directly to its source paragraph (provenance), not just a citation tab. Furthermore, the final decision requires an auditable human sign-off gate.

Watch on YouTube Full article

The Art of Loop Engineering: How to Build Agents That Improve Over Time thumbnail

· 46:08

The Art of Loop Engineering: How to Build Agents That Improve Over Time

The video introduces 'Loop Engineering,' an emerging design pattern critical for building reliable, production-grade AI agents. Agents are inherently non-deterministic; therefore, they require structured loops—such as the Core Agent Loop, Verification Loop, Event-Driven Loop, and Self-Improvement Loop (Hill Climbing)—to ensure reliability, automate continuous improvement, and integrate seamlessly into existing systems. The LangSmith platform is presented as a key tool for managing this complex agent development lifecycle.

Key takeaways

  1. Core Agent Loop (Level 1) 10:30

    This basic action-taking loop involves the model receiving context, calling tools to complete tasks, and receiving observations until completion. Optimization focuses on selecting the right model intelligence for the task complexity and improving tool descriptions via prompt engineering.

  2. Verification/Goal Loop (Level 2) 15:20

    This loop adds reliability by introducing a 'Grader' or verification step. After the core agent attempts a task, the Grader scores the result against predefined criteria (rubrics). If criteria are not met, the process is fed back into the agent loop for correction.

  3. Event-Driven Loop (Level 3) 20:00

    Agents become powerful when triggered by external systems (e.g., Slack messages, emails). This loop integrates the agent into relevant workflows, making it a system improvement mechanism rather than just an isolated task executor.

  4. Self-Improvement Loop / Hill Climbing (Level 4) 23:20

    This advanced loop automates agent improvement by analyzing traces. A helper agent, like LangSmith Engine, detects failure modes (e.g., improper tool arguments, missed context) and autonomously updates the core harness—including prompts, tools, skills, or memory—to improve future performance.

Watch on YouTube Full article