Gen-AI Developer Classroom notes 20/May/2025

Agentic AI

How to build an Agent

Variables

  • Model
    • Foundational Models:
      • OpenAI
      • Google Gemini
      • Anthropic
      • LLAMA
    • Small language models:
      • LLAMA
      • Hugging Face Transformers:
        • microsoft phi
        • Google Gemma
    • Fine tuned models
  • Framework
    Preview

Preview

Workflow steps

  • Static Steps: (Router) This is a fixed set of steps and conditional logic around when which node has to be called
    Preview
  • Dynamic Steps: (Autonomous Agent): LLM decides steps
  • Dynamic steps has very less reliability.
  • To exactly solve this problem, Langgraph was introduced.
  • Langraph also provides
    • Human in the loop options
    • Persistence
    • Tools
    • LLM
    • State

LangGraph Concepts

  • Refer Here for casual reading of graph theory
  • Node: This can be any computation
    • interacting with llm
    • calling tools
    • retrieving data from vectorstore
  • Edge: Connection between node to node
  • State: This is common data that is accessible to all the Nodes when they are executing. Nodes can change the state
    Preview

  • Graph is a workflow defined using nodes, edges and state
    Preview

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading