Langchain Agents | EP01 | SQL Chain vs Agent | Langchain | LLM

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024
  • Welcome to this video where we are going to explore the world of Langchain agents, focusing specifically on SQL agents. We'll discover how SQL agents offer a more flexible approach to interacting with SQL databases compared to SQL chains. Throughout this video, we'll not only explain these concepts clearly, but we'll also dive into code examples to see them in action.
    Agenda for the Video:
    1. Implement a SQL Chain
    2. Limitations of SQL Chain and Potential Solutions
    3. Introduction to SQL Agent and Benefits of SQL Agent over SQL Chain
    Code Notebook and Data : github.com/The...
    #langchain #agent #chain #llm #openai #tools #sqldatabase #sqldatabasechain #deeplearning #conversationalai #nlp
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 10

  • @singhrajiv774
    @singhrajiv774 4 หลายเดือนก่อน +1

    Very Informative video

  • @aryanjain5535
    @aryanjain5535 หลายเดือนก่อน

    Good going

  • @arunbhyashaswi1515
    @arunbhyashaswi1515 4 หลายเดือนก่อน

    Quite insightful of a video.

  • @jjawal
    @jjawal 3 หลายเดือนก่อน +1

    Very detailed video and very informative. I also wanted to can we provide some prompt to agent so that we will get only specific result always

    • @theailearner1857
      @theailearner1857  3 หลายเดือนก่อน

      1. One way is to pass a prefix to your agent something like this:
      prefix = """
      You are an agent designed to interact with a sqlite database.
      Given an input question, create a syntactically correct {dialect} query to run, then look at the results of the query and return the answer.
      Unless the user specifies a specific number of examples they wish to obtain, always limit your query to at most {top_k}
      results.
      """
      agent_executor = create_sql_agent(llm, db = db, prefix=prefix, agent_type=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose = True)
      2. Another way is to create a "custom agent" where you would be having more freedom to customize the agent as you want. Check out the following video:
      th-cam.com/video/OaQ6XrhEvjI/w-d-xo.htmlsi=BKYbwjQLZbixjmA4

  • @rajupresingu2805
    @rajupresingu2805 4 หลายเดือนก่อน +1

    Very good video , can you make one for SQL 0:57 agent using llama 3

    • @theailearner1857
      @theailearner1857  4 หลายเดือนก่อน

      You can check out this video : th-cam.com/video/GlyvykfIPJI/w-d-xo.html

    • @rajupresingu2805
      @rajupresingu2805 4 หลายเดือนก่อน

      Awesome thanks !

  • @Trymore-r4i
    @Trymore-r4i 2 หลายเดือนก่อน

    help me to connect my data base bro .i am facing some problems