Use AI to chat with a relational SQL database with natural language!

Поделиться
HTML-код
  • Опубликовано: 13 май 2024
  • Demo app: github.com/alex-wolf-ps/chat-...
    Intro to Azure OpenAI
    • Learn Azure OpenAI - G...
    My other AI videos:
    Use AI to chat with a NoSQL database: • Use AI to chat with a ...
    Learn to code a simple AI powered app: • Learn Azure OpenAI - B...
    Learn to use AI to chat with your document data: • Learn Azure OpenAI - C...
    Learn Azure OpenAI fundamentals: • Learn Azure OpenAI - G...
    Learn how to authenticate to Azure OpenAI the RIGHT way: • Authenticate to Azure ...
    In this video we'll explore how to use the powerful OpenAI gpt-4 model to search your SQL Database using natural language. GPT-4 excels at understanding natural language, and can even understand database schemas and produces code and SQL queries of its own. We'll explore a working demo, the app architecture and the code necessary to get this working.
    00:00 Intro
    01:09 App demo
    05:53 Architecture
    07:12 Database setup
    09:17 AI service setup
    10:57 Explore the app code
    20:13 Search service concepts
  • НаукаНаука

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

  • @alexthecodewolf
    @alexthecodewolf  День назад

    The demo app is now available here: github.com/alex-wolf-ps/chat-sql-data-demo Sorry for the delays!

  • @lshagh6045
    @lshagh6045 Месяц назад

    That was very useful and professional. Thank you indeed and thanks for sharing 👍

  • @511Burak
    @511Burak 2 месяца назад +5

    Hi thank you for sharing. Is there a way to get the sample code?

  • @ShaharNardiaAllOverTheNet
    @ShaharNardiaAllOverTheNet 20 дней назад

    thank you very much wolf🙏
    exactly what I am coding right now for my customer

  • @bengroseclose1795
    @bengroseclose1795 2 месяца назад

    Your a helpful cheerful youtuber :D

  • @rubberuk
    @rubberuk 2 месяца назад +3

    Excellent video! Have you got a link to source code? thank you.

  • @liammcmullen4497
    @liammcmullen4497 2 месяца назад +1

    Thanks

    • @alexthecodewolf
      @alexthecodewolf  2 месяца назад

      Thanks so much for your support! It means a lot.

  • @Jake-td8nm
    @Jake-td8nm 2 месяца назад +5

    AI has so much coverage, and 99% of it is either "here's a photorealistic image that has 13.5 fingers" or even worse the generic "You should be terrified because AI is coming!" both of which hold no value, provide no context, and don't show any use case that's valuable to 95% of individuals, and 100% of enterprise.
    Conversely, this video shows an actual coherent use of AI that could blow up and be super valuable - actually improving the productivity of people using it. Bravo!

    • @alexthecodewolf
      @alexthecodewolf  2 месяца назад

      Thanks, I try to showcase real world demos instead of just flashy but useless concepts

  • @applepeel1662
    @applepeel1662 2 месяца назад +3

    Hey! Please share the source code!
    This is honestly really cool

  • @andrewherrick879
    @andrewherrick879 2 месяца назад +1

    hi this is pretty cool. is your code available open source? i checked your GH but didn't see it. thanks!

  • @mouradaissani8957
    @mouradaissani8957 2 месяца назад

    very good, thank you 🐺

    • @alexthecodewolf
      @alexthecodewolf  2 месяца назад +1

      Glad you enjoyed it

    • @mouradaissani8957
      @mouradaissani8957 2 месяца назад

      BTW ; 11:00 warning , ur openaikey is exposed ;) @@alexthecodewolf

  • @twenty4marc306
    @twenty4marc306 19 дней назад

    Hi, do you have a public demo?

  • @alexthecodewolf
    @alexthecodewolf  7 дней назад +1

    Due to the requests here I'm working on getting the source code available for this, it was tied to a project I couldn't release but am working that out.

    • @mukshobhit
      @mukshobhit 5 дней назад

      Thanks, did you get chance to get repo?

    • @user-wt5uy9pn5e
      @user-wt5uy9pn5e 2 дня назад

      Thank you Alex, looking forward to learn how to do it

    • @alexthecodewolf
      @alexthecodewolf  День назад

      @@mukshobhit It's available now, thanks.

    • @alexthecodewolf
      @alexthecodewolf  День назад +1

      It's available now, thanks.

    • @user-wt5uy9pn5e
      @user-wt5uy9pn5e День назад

      @@alexthecodewolf Thank you Alex, grateful for making it available

  • @sajjadmussani
    @sajjadmussani Месяц назад

    very informative. can you please share the code of your Razor app?

  • @sinamohammadpourinaeim1058
    @sinamohammadpourinaeim1058 7 дней назад

    Hi Code Wolf
    Thanks for your useful video, Is there any offline AI Service to use the same thing in our local machine or our own sever?

    • @alexthecodewolf
      @alexthecodewolf  17 часов назад

      Hey, thanks for watching. There are definitely local AI models, but I haven't worked with them enough to recommend any sort of solution for this. Would probably be a good topic to research for another video :)

  • @TellaTrix
    @TellaTrix 2 месяца назад +1

    Wowo ! No more developer required to binding data and complex query.

    • @alexthecodewolf
      @alexthecodewolf  2 месяца назад +1

      Yeah one of my favorite things about this is it can help devs as much as analysts because it can write your sql queries for you....to some extent :)

  • @jyothirmaimachavaram4307
    @jyothirmaimachavaram4307 28 дней назад

    Hello, Could you please let me know where can I get the source code for it?

  • @aeromeme
    @aeromeme Месяц назад

    Hi, could be possible to have database definition in azure storage file so that way we aboid large prompt, or is there any other solution.

    • @alexthecodewolf
      @alexthecodewolf  Месяц назад

      Hey, good question, this is something I'm also looking into myself - how to only have to send the schema once and be able to update and maintain that schema in an active context. So far I haven't found a solution I'm happy with yet but I'll respond here again if I do. The models are getting better at deconstructing large inputs all the time, but I understand from a cost perspective its not desirable.

    • @ShaharNardiaAllOverTheNet
      @ShaharNardiaAllOverTheNet 20 дней назад

      @@alexthecodewolf I tried using the assistant for that - sent him all the scheme in JSON files but it sucks 😔

  • @feelzzgaming6306
    @feelzzgaming6306 Месяц назад

    Hi @alexthecodewolf ! Thanks for the video. I have two questions: Is there a way to use OpenAI with and SQL database, without using the Azure OpenAI Service? It is currently only for people and companies who have requested special access. So Im wondering if there is a workout where I can use the OpenAI's API directly towards my own Azure SQL Database, and not have to rely on the OpenAI service on Azure?
    Number 2: Do you have the source code anywhere?
    Hope you will reply ASAP as im currently working on a project that has come to a halt.. Thank you very much! :D

    • @alexthecodewolf
      @alexthecodewolf  Месяц назад +1

      Hey, thanks for watching. You should be able to use the regular OpenAI service (non Azure) with this exact same approach, there might just be some slight differences in the code and authentication. I'm not sure how pricing differs between them.
      Currently this code is part of a separate project I'm working on that I adjusted for this demo, so at this point I can't distribute the source code to for a few reasons, sorry!

    • @feelzzgaming6306
      @feelzzgaming6306 Месяц назад

      @@alexthecodewolf any idea what the code for that approach would Look like? Spent all day today, but to no avail.. also, thanks for the response!!

  • @mohan007ish
    @mohan007ish 2 месяца назад

    Can we use GPT-35-Turbo instead of GPT 4?

    • @alexthecodewolf
      @alexthecodewolf  2 месяца назад +1

      You can certainly try using GPT-35-turbo, but GPT-4 included major improvements to understanding and responding with structural content. However it'd be interesting to see how well 35-turbo does in comparison, I didn't actually try that myself.

  • @hirenshekhda3567
    @hirenshekhda3567 19 дней назад

    Hello sir can you please source code for education purposes? Its working universe database?

  • @THEDTSMAN
    @THEDTSMAN Месяц назад

    What happens if someone says “delete all the data” ?

    • @alexthecodewolf
      @alexthecodewolf  Месяц назад +5

      That's a really valid concern, you'd want to make sure the app is running as a user that only has read permissions.

  • @Baraka-yl2dp
    @Baraka-yl2dp 17 дней назад

    Code Wolf, can you please share your source code?

  • @alexanderkamenev5529
    @alexanderkamenev5529 2 месяца назад +3

    GIT REPO IF YOU DONT MIND PLEASE