Build Your First AI Chat Bot with OpenAI and .NET in Minutes

Sdílet
Vložit
  • čas přidán 23. 04. 2024
  • Checkout .NET AI Samples: github.com/dotnet/ai-samples
    Let's start our AI developer learning journey by building out a simple chat bot powered by .NET, OpenAI, and Semantic Kernel. Let's send a few prompts into GPT-4 and parse the results in just a few lines of code. We will also talk a bit about Semantic Kernel which greatly simplified communicating with different LLMs, but also offers plugins which are then easily and automatically invoked by models, support for responsible AI via filters, includes instrumentation/metrics, and more!
    Semanatic Kernel: learn.microsoft.com/semantic-...
    GPT Overview: • But what is a GPT? Vi...
    Join this channel to get access to perks:
    / @jamesmontemagno
    👕 Buy some swag! - jamesmontemagno.myspreadshop....
    ☕️ Buy me a coffee - www.buymeacoffee.com/jamesmon...
    Follow:
    👨‍💻 GitHub: github.com/jamesmontemagno
    🦜 Twitter: / jamesmontemagno
    📄 Website: www.montemagno.com
    📰 Newsletter: newsletter.montemagno.com/
    Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me... James Montemagno! They are NOT officially affiliated or endorsed by Microsoft (my employer) in any way. Opinions and views are my own.
    What is on my hat? It is the CLE clothing logo because I am from Cleveland! Checkout their awesome CLE merch: cleclothingco.myshopify.com/
    What is that art on my wall? It is an original piece from the French street artist Gregos of La Butte Montmartre: / bcez1onhiqx
    My Setup:
    📷 Canon M50 Mark II - amzn.to/3P8R7lp
    💡 Nanoleaf Elements Lights - amzn.to/3umwJVW
    🎙 Blue Spark Microphone - amzn.to/3qgtYkq
    🎙 Blue Pop Filter - amzn.to/3jEWM3r
    🤳 Rode Microphone Arm - amzn.to/2Z68AlE
    🎧 Sony MDR7306 Headphones - amzn.to/372jxta
    📲 Stream Deck - amzn.to/373Uk1n
    🖱 MX Master 2S Mouse - amzn.to/3d7J2gj
    ⌨️ Tecware Phantom Keyboard - amzn.to/3aUP4y9
    Using links I provide I may receive a commission if you buy something which helps support the channel.
    #dotnet #openai #semantickernel #azureopenai #aspnetcore #ai
  • Věda a technologie

Komentáře • 28

  • @ymtan
    @ymtan Před 2 měsíci +13

    Superb video on OpenAI. James could you kindly please do more videos on this OpenAI integrated into .NET MAUI application ?

    • @JamesMontemagno
      @JamesMontemagno  Před 2 měsíci +1

      I would say this approach is what I would use. Build an API that talks to OpenAI or other models and have your app talk to it. You don’t want to put your api key in your app

  • @JohnPowellonplus
    @JohnPowellonplus Před 2 měsíci +9

    This is great, instead of interacting with python code from C# we can now use the features in the Symantic Kernel. Keen to explore if we can use Ollama and local models?

  • @MihaiMoisei
    @MihaiMoisei Před 2 měsíci +4

    Awesome introduction, Thanks.

  • @slashd
    @slashd Před 2 měsíci +1

    Awesome!

  • @mandlaenkosihlatshwayo2684
    @mandlaenkosihlatshwayo2684 Před 2 měsíci +6

    Can you do one in blazor whereby it interacts with the content of the website like the services a website provides. In the form of an AI chat agent in a chatbot box. Then second series you could do one whereby it functions in a e-commerce website and retrieves products such as when a person asks for the cheapest handbag etc. I don't know what you think about these ideas?

  • @appomobi
    @appomobi Před 2 měsíci +1

    Insanely simple

  • @tzurdo1
    @tzurdo1 Před 2 měsíci +3

    Great video! It'll be nice if you can make more Semantic Kernel content, specifically RAG integration. Thanks for the video :)

  • @AdamsTaiwan
    @AdamsTaiwan Před 2 měsíci +2

    Great. Now show us how we can use the latest announced Phi-3 + our own data offline with MAUI either on the desktop on phone.

  • @sulmarpl
    @sulmarpl Před 2 měsíci

    Greats! Please record next episode about C# ChatGPT Plugin

  • @annraoi
    @annraoi Před 2 měsíci

    Thank you for the great video, James! I'm looking forward to Embeddings and RAG being released. Would you happen to know when they will be available?

  • @scorpiondeity642
    @scorpiondeity642 Před 2 měsíci +1

    Initial phase with the echo back functionality working great but with the actual API I can't seem to solve only getting 500 Internal Server Errors back. Hoping to have this working soon though, it's a lot of fun

    • @JamesMontemagno
      @JamesMontemagno  Před 2 měsíci +1

      Did you sign up for the api key and deposited funds for gpt4 access?

    • @scorpiondeity642
      @scorpiondeity642 Před 2 měsíci +1

      @@JamesMontemagno Thank you for the reply - I did already have $5 sitting in my account, so had just created the key to work with. Interestingly, it was after adding another $5 to it, then it started working. So I'm good to go now, even though I now have $10 in there lol All good though, that's still worth it. Not sure if that was a glitch or why it needed the additional $5

  • @goldmund67
    @goldmund67 Před měsícem

    You're killing me, James. I convinced myself I have to learn Python and LangChain. I purposely ignored Semantic Kernel because...well...we've seen this "Microsoft vs the entire Open Source World" approach before...but...like a moth drawn to a lightbulb...having a dotnet SDK is...too...powerful...to...resist... Ugh.

  • @gorgik
    @gorgik Před měsícem

    Nice video. What if you send all previous messages, does it count against your input tokens and they will be charged over and over again? Also the chat will eventually finished when the tokens number became over the limit.

  • @feintfoot1589
    @feintfoot1589 Před 2 měsíci

    do we still need to register to have access to these?
    are the AI functionalities available to non-enterprise and non-Microsoft partners?

    • @JamesMontemagno
      @JamesMontemagno  Před 2 měsíci

      For Azure OpenAI I think you need to register. Here I’m using normal OpenAI

    • @feintfoot1589
      @feintfoot1589 Před 2 měsíci

      @@JamesMontemagno thanks for the clarification

  • @dotnetrealworldexample
    @dotnetrealworldexample Před 2 měsíci

    Where i can get openai key?? or can you share api key for learning prospective if possible

  • @afolabiolayemi2488
    @afolabiolayemi2488 Před 2 měsíci

    How do I use it on MAUI

  • @jasonyang696
    @jasonyang696 Před 2 měsíci +1

    I am the first?