Build Your First AI Chat Bot with OpenAI and .NET in Minutes
ฝัง
- เผยแพร่เมื่อ 4 พ.ย. 2024
- Checkout .NET AI Samples: github.com/dot...
This demo: github.com/jam...
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.microsof...
GPT Overview: • How large language mod...
Join this channel to get access to perks:
/ @jamesmontemagno
👕 Buy some swag! - jamesmontemagn...
☕️ Buy me a coffee - www.buymeacoff...
Follow:
👨💻 GitHub: github.com/jam...
🦜 Twitter: / jamesmontemagno
📄 Website: www.montemagno...
📰 Newsletter: newsletter.mon...
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....
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 - วิทยาศาสตร์และเทคโนโลยี
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?
Superb video on OpenAI. James could you kindly please do more videos on this OpenAI integrated into .NET MAUI application ?
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
Great video! It'll be nice if you can make more Semantic Kernel content, specifically RAG integration. Thanks for the video :)
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?
Awesome introduction, Thanks.
Glad you liked it!
Glad you liked it!
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.
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?
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.
Insanely simple
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.
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
Did you sign up for the api key and deposited funds for gpt4 access?
@@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
Greats! Please record next episode about C# ChatGPT Plugin
link to building your first prompt article missing
It would be good if you just guided us step by step on project setup - maybe just use blazor server as it's quick and easy. Also the repo is huge and not just this project - no idea where this project is int the repo at all.
Here is a separate repo of just this github.com/jamesmontemagno/AIDemo
do we still need to register to have access to these?
are the AI functionalities available to non-enterprise and non-Microsoft partners?
For Azure OpenAI I think you need to register. Here I’m using normal OpenAI
@@JamesMontemagno thanks for the clarification
Awesome!
Where i can get openai key?? or can you share api key for learning prospective if possible
You have to register on the OpenAI portal
How do I use it on MAUI
Call the api from your app :)
You connected to chatGPT but in no way did you make a 'chat bot'
I am the first?