WhoBuilt

The LLM Triangle: Engineering Principles for Robust AI Applications

Feb 22, 2025· 26 min· 1.5K views·Watch on YouTube

Speaker

Almog Baku, a serial entrepreneur and founder of the J Israel Community, explains engineering principles for robust LLM applications at an AI Engineer session.

Treat LLM apps as engineering work

Baku says many current LLM projects are small workflow enhancements, while production applications are difficult to make reliable. He argues that building them takes roughly 10% model sophistication and 90% experimentation and data-driven engineering.

Turn expert work into a procedure

Baku frames an LLM application around a model, engineering techniques, and data, guided by a standard operating procedure. He compares an LLM to a smart but inexperienced intern and recommends interviewing an expert to uncover the implicit steps in a task, such as creating a landing page.

Build predictable flows where needed

Baku describes engineering techniques across prompts, software, and combinations of both. For a Wikipedia writer, a flow might normalize a request, research the subject, format information, and draft a table of contents, using code for deterministic steps. Autonomous agents are quick and flexible but harder to debug; crafted flows take more effort and offer more predictable quality.

Choose a model for the task

Baku recommends weighing task complexity, infrastructure, latency, cost, and available data when selecting a model. He suggests starting with a large model to learn how the application behaves, then optimizing or fine-tuning once there is evidence to guide those changes.

Give the model focused examples and context

Baku explains that a model receives text assembled from prompts and has no memory between calls. Too much context can bury relevant details, while too little leaves gaps. Few-shot examples can teach a desired classification style, and example selection can use similarity search or simple rules.

Takeaways

  • Map expert workflows into explicit steps before designing prompts or agents.
  • Use deterministic code for steps where consistent output matters.
  • Give autonomous agents clear boundaries and keep their scope manageable.
  • Start with a capable model, then optimize using what you learn from real usage.
  • Curate relevant context and examples instead of sending every available detail.

Mentioned in this talk

Search inside this talk

What was claimed 6

  • metric
    J Israel Community: 5,000 engineers, researchers, and data scientists
    “We're the largest community in Israel, with 5,000 engineers, researchers, and data scientists”
    YouTube
    Unverified1 source· Talk
  • founded
    “I'm also the founder of the J Israel Community.”
    YouTube
    Unverified1 source· Talk
  • feature
    software architecture: Splits an SOP into steps handled by multiple agents and sometimes code
    “take the SOP and split the process into multiple steps, multiple agents”
    YouTube
    Unverified1 source· Talk
  • feature
    AI agents: Can choose how to plan and solve a task using tools
    “given the liberty to decide how to implement a task”
    YouTube
    Unverified1 source· Talk
  • feature
    Prompting: Uses examples in context to teach a model a task or preferred output style without fine-tuning
    “learning from the context we provide without fine-tuning”
    YouTube
    Unverified1 source· Talk
  • feature
    LLM Triangle: Combines the model, engineering techniques, and contextual data, guided by an SOP
    “composed of three key principles: the model, the engineering techniques, and the contextual data, all guided by the OP”
    YouTube
    Unverified1 source· Talk

Related talks