MySQL database with PandasAI & Ollama & Streamlit

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Today, we'll cover how to analyze data in a MySQL database with local Llama 3 using Pandas AI, Ollama and Streamlit for free. Happy learning.
    ▶ Subscribe: bit.ly/subscri...
    ▶ Join my channel: bit.ly/join-ti...
    00:01 Introduction
    01:06 Setup
    02:47 Create a new database
    04:43 Load the model with Ollama
    06:41 Initialize the model
    08:29 Connect to the database
    10:45 Build the app
    12:41 Inference
    13:31 Data visualization
    RELATED VIDEOS:
    ▶ PandasAI Tutorials: bit.ly/pandasai
    ▶ Ollama Tutorials: bit.ly/ollama-...
    ▶ LangChain Tutorials: bit.ly/langcha...
    ▶ Generative AI for DS: bit.ly/genai-f...
    ▶ HuggingFace Tutorials: bit.ly/hugging...
    FOLLOW ME:
    ▶ Medium: / tirendazacademy
    ▶ X: / tirendazacademy
    ▶ LinkedIn: / tirendaz-academy
    Don't forget to subscribe and turn on notifications so you don't miss the latest videos.
    ▶ Project files: github.com/Tir...
    ▶ MySQL Download: dev.mysql.com/...
    ▶ Dataset: www.kaggle.com...
    Hi there, I'm a content creator on generative AI & data science, PhD. My goal is to make the latest technologies understandable for everyone.
    #ai #generativeai #datascience

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

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

    Can you make a video tutorial on role configuration for Botchat?. For example, only respond in English, and focus on using SQL to query data and respond to users.....

    • @nguyenngothuong
      @nguyenngothuong 4 หลายเดือนก่อน +2

      Added features to save chat history, suggest prompts after asking, etc.

  • @RaghuNandan-ug1pk
    @RaghuNandan-ug1pk 28 วันที่ผ่านมา

    Unfortunately, I was not able to answer your question, because of the following error: No code found in the response is the error I am getting

  • @erdemkoraysanl7547
    @erdemkoraysanl7547 4 หลายเดือนก่อน +2

    Hello, I wrote the same code, it works, but it is very slow, for example, when I say bring the first 4 data, it responds in 2 minutes 3 minutes, but it is very very fast in you. It is very fast when chatting normally with llama3. It is very fast in my database, but when I write this code, it works very slowly.

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

      The app answered quickly a response in the video because I used cache. Cache allows PandasAI to store the results of previous queries. My queries took some time. Which graphic card do you use?

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

      @@TirendazAI I use the Amd Rodeon rx580 graphics card. Actually, my goal is to use AI search on my website. Algorithms almost most of the time can not give correct results. I really thought that artificial intelligence would be very useful to think like a human, but it works very slowly.

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

      Very slow for me as well. I’m using an MacBook Pro m3 pro 36gb

  • @DarkNessShadow-
    @DarkNessShadow- 4 หลายเดือนก่อน +2

    Hi, awesome videos, can you make a video using agent pandasai with the explain and clarification questions features, i try to use it but doesn't work for me

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

      Thanks, noted!

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

    12:26 Gracias mil, la animación es muy adecuada cuando se intenta estas cosas y se consiguen mil errores hasta que por fin se logra el objetivo ja

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

    Great video. Thank you for making this easy.

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

    thanks for your video. from indonesia.. but why in my laptop result data is so long.. any idea ?. my spec is asus ryzen 7 gen 5

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

      Hi, to get a quick response, it is important to have a powerful graphics card.

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

    bro please tell me if pandasAI is free if, i host on my own server. why is PandasAI so expensive?

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

      PandasAI is free and open source.

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

    This is good for accessing a single table. How do we scale it up to handle a more complex environment? I have sales history, titles and customer information and I'd like to allow users to ask questions against the various tables.

  • @HimanshuSaxena16november
    @HimanshuSaxena16november 4 หลายเดือนก่อน +2

    Can we get data from multiple tables using prompts?

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

      PandasAI supports queries with multiple dataframes. You can utilize a SmartDatalake to implement such queries.

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

      @@TirendazAI what about joins in tables,what will be the prompt in that case?

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

      @@HimanshuSaxena16november Totally agree, if a DB with its ERD and relationships are loaded , it would be amazing.

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

      @@TirendazAI when i used smartdatalake to test with the 2 datasets employee and salary table, with llama3 in local, for the question who gets paid the most, the code produced by the llm provoked error and no result, however with pandas ai api the result is ok (but limited quota), what local model can we use to get good result ?

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

    Hi. I love your videos. Is there anyway to do same with MongoDB or any NoSQL database?

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

      Thanks for your feedback. PandasAI provides connectors for the following SQL databases: PostgreSQL, MySQL, Generic SQL, Snowflake, DataBricks, GoogleBigQuery, Yahoo Finance and Airtable.

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

    is there any solution to make the queries run faster? will gpu help?

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

    Thanks, do you have a tutorial doing it on a VPS?

  • @AbhinavKumar-tx5er
    @AbhinavKumar-tx5er 2 หลายเดือนก่อน

    Hi , I followed the same but I am getting error as
    "Unfortunately, I was not able to answer your question, because of the following error: No code found in the response" .

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

    Is it possible to use agents without the pandasapi and use ollama?

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

      You can use many agents with LangChain.