Flow Engineering with LangChain/LangGraph and CodiumAI

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • "Flow Engineering" is a term that has been gaining in popularity recently. The first time it was mentioned as term was in CodiumAI paper on AlphaCodium, where they used flow engineering to produce state-of-the-art results on coding problems.
    Flow Engineering can be used for many problems involving reasoning, and can outperform naive prompt engineering. Instead of using a single prompt to solve problems, Flow Engineering uses an interative process that repeatedly runs and refines the generated result. Better results can be obtained moving from a prompt:answer paradigm to a "flow" paradigm, where the answer is constructed iteratively.
    "Flow Engineering" is also an incredibly apt name to describe the types of problems that the LangGraph framework seeks to solve. LangGraph is a low level, highly controllable framework for creating agentic and multi-agent applications.
    Hear from Itamar Friedman (CEO of CodiumAI) and Harrison Chase (CEO of LangChain) on best practices, insights, examples, and hot takes on flow engineering!

Комментарии • 17

  • @Bakobiibizo
    @Bakobiibizo 4 месяца назад +14

    I've reached a similar conclusion about LLMs and current approaches to writing agents. I've collaborated with two research groups to develop multimodal agents, but we encountered an issue of decoherence when loading too many decision-making processes and providing the agent with excessive options. I've found the most success with extremely narrowly scoped, finely-tuned models designed for specific steps in the required sequence. I use a state machine to manage the transition to the next step; the agent indicates when it believes it has completed its task, and then an evaluation model confirms the task's completion. Whenever possible, it's beneficial to offload extraneous context and decision-making to programmatic systems. I could envision an orchestration model that makes high-level decisions, but that seems questionable to me still.

    • @DougKingPDX
      @DougKingPDX 4 месяца назад +1

      Orchestration works well. Putting LLM classifiers in the orchestration steps to understand context, intent works well. Discrete steps in workflows allow for better guardrails and direction conforming to the workflow requirements.

    • @XShollaj
      @XShollaj 4 месяца назад

      Check Dify for quick prototyping

  • @BruceChouTW
    @BruceChouTW 4 месяца назад +6

    This is the best agentic workflow interview i’ve ever watched. thank for sharing.

  • @XShollaj
    @XShollaj 4 месяца назад +2

    This is great. Figuring out efficient agent architectures is the next big step.

  • @DonBranson1
    @DonBranson1 4 месяца назад +3

    Great video. I hope Itamar is brought back for a follow-up discussion on LangGraph. I've found that getting the LLM to generate and iterate on a mermaid.js model can lead to better flow engineering.

    • @jonclement
      @jonclement 4 месяца назад

      Good point. yaml as a nested dict misses links, markdown for txt layouts, but to fuel LLMs need for text descriptions of ER diagrams etc -- mermaid seems like a good choice.

  • @kenchang3456
    @kenchang3456 4 месяца назад

    I agree, this is a great interview and am definitely interested in its premise. Thank you for sharing.

  • @mr.daniish
    @mr.daniish 4 месяца назад

    Great guest and tons of value in the talk!

  • @AGI-Bingo
    @AGI-Bingo 4 месяца назад

    Fantastic Interview! Hope we get a chance to have you both on the channel ❤ doing an ai podcast segment for agentic flow developers.
    #WholesomeAGI coming soon

  • @IkechiGriffith
    @IkechiGriffith 4 месяца назад

    Amazing stuff. Thank you

  • @chandrurulz82
    @chandrurulz82 4 месяца назад

    Good job sir

  • @Aripb88
    @Aripb88 4 месяца назад

    Thank you for such an in depth discussion! So is the next step having models train on repos of flows? Ultimately you are left with an input/output problem with a performance metric 😂

  • @_ptoni_
    @_ptoni_ 4 месяца назад

    great talk, ty

  • @elimelethlopez6859
    @elimelethlopez6859 4 месяца назад

    luv Langchain ❤

  • @pnhbs392
    @pnhbs392 3 месяца назад

    What is your definition of "Flow Engineering?"