L-5 Chat with database using LangChain

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 45

  • @yasutakaueda3928
    @yasutakaueda3928 4 місяці тому +1

    Integrating database data with LLMs greatly expands the range of applications. Thank you for providing such valuable information.

  • @sangeethag8228
    @sangeethag8228 Місяць тому

    You explain complex topics in simple, step-by-step videos. Truly impressive! This channel deserves way more recognition!

    • @CodeWithAarohi
      @CodeWithAarohi  Місяць тому

      Thank you! I’m glad my videos are helpful. Your support means a lot!

  • @tech_devsecops
    @tech_devsecops 4 місяці тому

    Ma'am you demonstrated this in a really simple and great way.

  • @architectingme
    @architectingme 2 місяці тому +1

    Thank you for sharing. I will try this on SQL server

  • @aminelongo242
    @aminelongo242 4 місяці тому

    Really helpful video ! Thank you Aarohi

  • @Pallavi9187
    @Pallavi9187 Місяць тому

    Mam love u so much 😭

  • @careersuccessng3678
    @careersuccessng3678 2 місяці тому +1

    Great Job Aarohi! How about connecting to MS SQL server used by most enterprises

  • @soravsingla8782
    @soravsingla8782 2 місяці тому

    Phenomenal

  • @abdulqayyumshah9217
    @abdulqayyumshah9217 2 місяці тому

    Amazing!

  • @muhammadahsan2751
    @muhammadahsan2751 Місяць тому

    I tried these steps with MSSQL Server and found below error, Could you please help to resolve this.
    chain = create_sql_query_chain(llm, db)
    The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:

  • @DevShahin-zm8ni
    @DevShahin-zm8ni 2 місяці тому

    I want to make a report generating software using LLM on my ERP where nearly 200 tables are exists. In my report generating software I give a propmt and LLM will analysis this promps and make a sql query on the basis of my ERP databases. Can I do it using this procedure?

  • @19saikalyan84
    @19saikalyan84 17 днів тому

    Hello
    Can't we do directly by uploading the datasets in an csv file in the sql workbench
    hope you react to this.....!!

  • @eneso8657
    @eneso8657 2 місяці тому

    Do you know how can add memory to sql agent ?
    I have tried some ways but I could’nt

  • @rishabhsheoran6959
    @rishabhsheoran6959 4 місяці тому

    Hey Aarohi! How do we handle the cases where the LLM generates a wrong query other than exception handling?

    • @CodeWithAarohi
      @CodeWithAarohi  4 місяці тому

      You can train your LLM for such queries using few-shot learning.

  • @vickyrajeev9821
    @vickyrajeev9821 4 місяці тому

    Thanks

  • @amrzakaria5290
    @amrzakaria5290 4 місяці тому +1

    Thanks a lot , Can you connect to PostgreSQL DB ,Pls give me steps.

    • @CodeWithAarohi
      @CodeWithAarohi  4 місяці тому +2

      pip install langchain psycopg2
      import psycopg2
      from langchain import LangChain
      # Connect to your PostgreSQL database
      conn = psycopg2.connect(
      dbname="demodb",
      user="root",
      password="root123",
      host="localhost",
      port="5432"
      )

    • @amrzakaria5290
      @amrzakaria5290 4 місяці тому

      Thanks.

  • @oscarpirateman
    @oscarpirateman 3 місяці тому

    Is anybody else getting an error when running the line:
    chain = create_sql_query_chain(llm, db)
    The error i get is very long but at the end it says TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type:
    I cant find any solution for it

    • @muhammadahsan2751
      @muhammadahsan2751 Місяць тому

      Yes, The same error is appearing while i am trying execute the code,

  • @arnavthakur5409
    @arnavthakur5409 3 місяці тому

    Ma'am is there any possibility of getting trained under you as we are a group of 8 professionals working with an IT company

    • @CodeWithAarohi
      @CodeWithAarohi  3 місяці тому

      Please email me at aarohisingla1987@gmail.com

  • @mrnayan_2775
    @mrnayan_2775 19 днів тому

    Hello I'm facing some error with the tiktoken package.

  • @hendoitechnologies
    @hendoitechnologies 4 місяці тому

    kindly post video about Claude 3.5 sonnet API video for developers

  • @Beliver5894-l8h
    @Beliver5894-l8h 2 місяці тому

    how can we get final response in full sentence eg: the total customer count is ---
    can you also include some prompt engg technique

    • @CodeWithAarohi
      @CodeWithAarohi  2 місяці тому

      I will cover this in my upcoming videos.

    • @Beliver5894-l8h
      @Beliver5894-l8h 2 місяці тому

      @@CodeWithAarohi thank you..will be helpful

  • @harshitdtu7479
    @harshitdtu7479 4 місяці тому

    i am not able to connect by db can u please help me

  • @Umairkhan-j8p
    @Umairkhan-j8p 4 місяці тому

    Can you connect to MongoDB ,Please give me steps.

    • @CodeWithAarohi
      @CodeWithAarohi  4 місяці тому

      python.langchain.com/v0.2/docs/integrations/document_loaders/mongodb/

  • @ChrisLocke1969
    @ChrisLocke1969 4 місяці тому +1

    but what if my table names and fields are HGSD1245GSDF? game over. AI is all hype, can we stop now?? :(

    • @CodeWithMahmoud
      @CodeWithMahmoud 2 місяці тому

      You still can give first 5 rows like example to the llm and it will know what type of data in , and it will work 😊

    • @Pallavi9187
      @Pallavi9187 Місяць тому

      ​@@CodeWithMahmoudHey hi do u know that issues when we r using openai api key limit exceed ? Using in langchain

  • @mudgilgaurav
    @mudgilgaurav 7 днів тому

    Thanks for the walkthrough, it's very useful for beginners. I installed all dependencies using the requirement.txt which installs langchain 0.0.284 and I have python 3.11, while creating the SQL chain I am getting following issue
    #Convert question to SQL query
    from langchain.chains import create_sql_query_chain
    chain = create_sql_query_chain(llm, db)
    Error - TypeError: Expected a Runnable, callable or dict.Instead got an unsupported type: