Это видео недоступно.
Сожалеем об этом.

SQL Chain Example | 🦜🔗 LangChain UseCases

Поделиться
HTML-код
  • Опубликовано: 15 авг 2024
  • SQL Chain Example | 🦜🔗 LangChain UseCases
    In this video, I will walk you through a SQL Chain example. I will demonstrate how you can use the SQLDatabaseChain for answering questions over a database. I will be using SQLite and Chinook database. We will also create a database, .db using .sql file. Happy learning and chaining 😎
    👉🏼 Links:
    GitHub code: github.com/sud...
    LangChain doc: python.langcha...
    ⏰ Time stamps:
    00:00 👋🏼 Introduction
    01:30 ⚙️ Setup
    01:54 📚 Creating database in SQLite from .sql file
    04:55 🤔💻 SQL Chain part
    12:04 🙏 Conclusion
    ☕ Buy me a Coffee: ko-fi.com/data...
    🔗 Other videos you might find helpful:
    PrivateGPT: • PrivateGPT 🔥 | No Data...
    LangChain playlist: • LangChain
    Python Virtual Env: • Python Virtual Environ...
    ▶️ Connect with me:
    *RUclips: www.youtube.co...
    *LinkedIn: / sudarshan-koirala
    *Twitter: / mesudarshan
    #langchain #llm #openai #sql #sqlite3

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

  • @AO-ip9hi
    @AO-ip9hi Год назад

    Tapai ko video haru Sarai ramro cha bro! Keep up the good work.

  • @foysalmamun5106
    @foysalmamun5106 Год назад

    Many Thanks

  • @praveenc2248
    @praveenc2248 Год назад

    Awesome, Thanks bro

  • @veeru18
    @veeru18 5 месяцев назад

    how we could get answer in json format please advice

  • @user-jj5et9ep7f
    @user-jj5et9ep7f Год назад

    Hi, thanks for the video.
    I have 2 questions:
    Question 1: what is the difference between "SQLDatabaseChain" and "SQLDatabaseToolkit"?
    Question 2: I get an error when i try using the create_sql_agent in the below code.
    toolkit = SQLDatabaseToolkit(db=db)
    agent_executor = create_sql_agent(
    llm=OpenAI(temperature=0),
    toolkit=toolkit,
    verbose=True
    )
    ValidationError: 1 validation error for SQLDatabaseToolkit
    llm
    field required (type=value_error.missing)
    Can you please help here? Appretiate your help

  • @rajivraghunathan9104
    @rajivraghunathan9104 Год назад

    Excellent info ,,, pls do one video in querying JSON Documents . No one has done any video

  • @hadjersa28
    @hadjersa28 5 месяцев назад

    I made a function to compare between LLMs results and humans results. is sql Query already exist in the database or is it you who makes them ?

    • @datasciencebasics
      @datasciencebasics  5 месяцев назад

      SQL queries are created by LLMs when we ask the natural langauge.

  • @python360
    @python360 Год назад

    Thank you, would querying a large database with say 1million row use up a lot of tokens / is there any for of caching that can be done with ChatGPT ?

    • @datasciencebasics
      @datasciencebasics  Год назад

      Hello, haven’t tested it out but you could try it out and have a look at OpenAI usage to see how it behaves.

  • @Anna00722
    @Anna00722 8 месяцев назад

    Can we plot a graph of thr output data

    • @datasciencebasics
      @datasciencebasics  8 месяцев назад

      this is quite old video and I haven’t tried myself yet. Give a try with latest models.

  • @roberthuff3122
    @roberthuff3122 Год назад +1

    Thank you. FUBAR! LOL

  • @colofthedead6101
    @colofthedead6101 Год назад +1

    Unfortunately, in reality this functionality is very early days and doesn't work very well, generating joins across non-existent columns and SQL that is engine specific. It's only good for playing around with at the moment.

    • @datasciencebasics
      @datasciencebasics  Год назад

      I agree, hopefully more functionality in the future as llms and usecases around it are quite in early stage.

    • @colofthedead6101
      @colofthedead6101 Год назад +2

      @@datasciencebasics I've persisted with this library and the more information about my database that I include in the prompt, the better the results. Less, denormalised tables help too. You can see the potential though and I've gotten some 'wow factor' from demoing it to management.

    • @datasciencebasics
      @datasciencebasics  Год назад

      @@colofthedead6101 Great findings. Eventually, everything in LLM ends in good prompt :)

  • @mariocuezzo8027
    @mariocuezzo8027 Год назад

    nice video! i try this with ggml-gpt4all-l13b-snoozy.bin and i have this problem : SQLQuery:The prompt size exceeds the context window size and cannot be processed.
    The prompt size exceeds the context window size and cannot be processed. any ideas?