Тёмный
The Code Wolf
The Code Wolf
The Code Wolf
Подписаться
Simplifying AI, cloud, coding, and creative tech with wolf-like focus. I love learning and teaching everything I can to help others.
Комментарии
@MartinMasella
@MartinMasella 2 дня назад
There are no words to say thanks for what you've given to the developers community. This video and the code provided has helped me a lot and saved tons of hours researching. Sincerely.
@alexthecodewolf
@alexthecodewolf 2 дня назад
Thank you, that means a lot!
@AbhinavKumar-tx5er
@AbhinavKumar-tx5er 3 дня назад
Thanks for making this video. So what is the probability that it won't hallucinate . Well I am using similar kind of prompting approach when using llama model but curious to know about hallucination.
@alexthecodewolf
@alexthecodewolf 3 дня назад
It's difficult to estimate hallucinations due to so many varying factors. However I'll just say anecdotally that the results for me have either generally been correct or just not worked at all (the SQL query doesn't work) - I'd have to setup a more rigorous test plan to estimate hallucinations better.
@AbhinavKumar-tx5er
@AbhinavKumar-tx5er 3 дня назад
@@alexthecodewolf I took one approach by first storing the table in the form of JSON and then asking the question from the JSON. but again the things didn't go well . Is it I have to do something with the prompt?
@PankajNikam
@PankajNikam 4 дня назад
Thanks for this video. It is really helpful; I am wondering if the tokens get consumed when we supply the chat history. What happens if the tokens run out (the limit set by each model)? How can we clear the history when we know that the tokens have ran out?
@alexthecodewolf
@alexthecodewolf 4 дня назад
Thanks! Chat history does count towards token history - anything you pass to the AI generally counts as tokens. The larger your token limit for a given model, the more history you could send, for example GPT-4 32k runs out faster than GPT-4 128k. Luckily the chat history is just a standard list, so whenever you send a prompt you can update your history list to only include the X number of most recent messages, whatever you think will fit in the token limit for your model. I believe the AI model auto-truncates the tokens provided and just ignores the excess but I'd have to double check on that. You could also store all the messages in one list for the user and for display purposes, but then just take the X most recent number of messages to actually send to the AI.
@PankajNikam
@PankajNikam 3 дня назад
@@alexthecodewolf Thanks for such detailed answer.
@gopikrishnag41
@gopikrishnag41 5 дней назад
So useful. thx a lot 👍🙏
@cartercordingley6062
@cartercordingley6062 5 дней назад
I need to find some time to play around with this. I have 15 years of experience in T-SQL and am a C# developer. I might find time to send suggestions
@skalippanbalippan6972
@skalippanbalippan6972 8 дней назад
Why do u use vs code?
@shue78123
@shue78123 10 дней назад
Great video! Can you make one on how to make and use an OpenAI account?
@alexthecodewolf
@alexthecodewolf 10 дней назад
Thanks, Do you mean how to use this same app/scenario but connect to non-Azure OpenAI, or do you just mean a general OpenAI or Azure OpenAI intro?
@shue78123
@shue78123 9 дней назад
@@alexthecodewolf I meant 'general OpenAI or Azure OpenAI intro', tnx!
@Rayburn96
@Rayburn96 11 дней назад
Thank you for these great videos, however it's not working for me. I downloaded the github repo and compiled it successfully, but when I test WebAssembly, I get the error "Upload failed. Error: Object reference not set to an instance of an object." Server Static and WebAssembly both throw the error "Could not find a part of the path." None of the options work.
@alexthecodewolf
@alexthecodewolf 9 дней назад
Thank you for alerting me of these issues - I was able to reproduce them from the GitHub repo. For the Server Static and Server Interactive, the issue was that there's no images folder included in the project by default so the file path for the upload doesn't work - I've added that folder and committed it to the repository. For the webassembly page, there was a missing handler method in the version on GitHub, so I updated that with the latest. these should all work now.
@000shah000
@000shah000 13 дней назад
Can this be done in Node.js?
@alexthecodewolf
@alexthecodewolf 13 дней назад
Yes, it can definitely be done in Node, there's an Azure OpenAI SDK for node and plenty of JavaScript UI frameworks.
@liammcmullen4497
@liammcmullen4497 13 дней назад
Thanks
@alexthecodewolf
@alexthecodewolf 10 дней назад
Thank you very much!
@nidhirajgr8
@nidhirajgr8 14 дней назад
Good one
@alexthecodewolf
@alexthecodewolf 13 дней назад
Thanks for the visit
@jazzyfusion
@jazzyfusion 15 дней назад
Hi Alex, good video, but Azure is killing the container and so the pot model disappears a few minutes later, do you know how to solve that issue? thanks
@andresfelipehiguera785
@andresfelipehiguera785 16 дней назад
Excellent video.
@Gekub
@Gekub 18 дней назад
Thank you for demonstrating! This information helps a lot!
@AbhinavKumar-tx5er
@AbhinavKumar-tx5er 18 дней назад
Hi, a very helpful video .Can you hit the URL of the video here where you have created the dashboard for this.
@alexthecodewolf
@alexthecodewolf 18 дней назад
Hey, thank you - are you referring to the video that shows you how to chat with a database? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hw6oTjw9_Ro.html
@AbhinavKumar-tx5er
@AbhinavKumar-tx5er 3 дня назад
@@alexthecodewolf Well , I am looking as how you have connected database using ollama in this video which starts from 10:20 sec. Do you have a github repository for this
@brunocarvalho3229
@brunocarvalho3229 18 дней назад
Hi! Thank you so much for this! I'm trying to work on a demo for my company where I want to read a table of incidents and summarize the resolution note of each one and send back to Service Now. The incidents table is already a view on our Azure enviroment, so I think I need first to get the query from AI, get the data from the table and then ask again the AI to iterate over the retrivied table and summarize the notes, structure the data again with the summarized notes and send back to Service Now via API maybe. Do you think this architecture makes sense? Really appreciate this knowledge shraring!
@AbhinavKumar-tx5er
@AbhinavKumar-tx5er 3 дня назад
Well , I have used to similar kind of approach too. Did you get any luck on this? Did your AI responded with the correct answer?
@brunocarvalho3229
@brunocarvalho3229 2 дня назад
@@AbhinavKumar-tx5er Hi, yes! I've getting some pretty good results with the GPT-4o. I followed this tutorial to adapt to my case: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-9ccl1_Wu24Q.html
@10Totti
@10Totti 19 дней назад
Great tutorial!
@alexthecodewolf
@alexthecodewolf 19 дней назад
Thank you!
@OlleHellman
@OlleHellman 20 дней назад
make sure you change your aiKey =)
@alexthecodewolf
@alexthecodewolf 20 дней назад
Thank you for the reminder, I remembered right after I published it 😆
@OlleHellman
@OlleHellman 20 дней назад
Thank you for simplifying!
@pvsherman
@pvsherman 22 дня назад
Excellent video. But unfortunately I'm getting very inconsistent results. As soon as a little bit more complicated SQL needs to be produced - every run returns a different result. Subqueries, unions are too much for it. Or I'm doing something wrong. Probably will have to create views so AI will be able to do simple selects.
@johannesschmidt8611
@johannesschmidt8611 24 дня назад
Great content! More AuthN/AuthZ in Azure would be great.
@richardwaldron1684
@richardwaldron1684 25 дней назад
Excellent demo, I hadn't used this before but need to understand it for my upcoming AZ-104 exam. Thanks for sharing
@aalamansari8643
@aalamansari8643 25 дней назад
Can we automate the process of adding data source in chat playground and train the model for that data using Python.
@darrenhatton3550
@darrenhatton3550 26 дней назад
would not work then I noticed the Ochange was missing and the SetFile method. Git version must need updating. Thanks great explanation and demo
@alexthecodewolf
@alexthecodewolf 26 дней назад
Thanks for letting me know!
@ABHISHEKSHARMA-fo4tf
@ABHISHEKSHARMA-fo4tf 26 дней назад
Hello sir this is very help full video , i have doubt can i used the 500 tables and then we can used for this retrieving the SQL Query. because i am using the SQL Database so i give the error of Rate Limit Error 429 , where token limit is 60000 and i request the token for the 157656 so its give the error because the lots of table it taken can you give me solution for this, it is very helpfull for me
@alexthecodewolf
@alexthecodewolf 26 дней назад
I believe current gpt models are limited to 128k tokens - I would recommend either breaking apart your schema to only the tables you need if possible, or searching for an AI model with higher token limits. There might also be local or self hosted models for code generation that support higher token inputs. I have some other videos about local ai models that show this database connection scenario
@ABHISHEKSHARMA-fo4tf
@ABHISHEKSHARMA-fo4tf 26 дней назад
​@@alexthecodewolf​ Thank you sir
@user-sz8ob8nv1e
@user-sz8ob8nv1e 28 дней назад
So where is free option?
@SocratesPonnusamy-pi9iu
@SocratesPonnusamy-pi9iu Месяц назад
Hello Alex, This video was very helpful. I have a question. Do you have a video showing how we can do the same thing from a chatbot?
@alexthecodewolf
@alexthecodewolf Месяц назад
I don't have this video yet, but I'm planning to make one!
@SocratesPonnusamy-pi9iu
@SocratesPonnusamy-pi9iu Месяц назад
@@alexthecodewolf Thanks. Can you please give me some pointers on how to do it? All the chatbots deals with indexer and cognitive services.
@adamdiment8385
@adamdiment8385 Месяц назад
Thanks -2024 update - the method services.AddStackExchangeRedisOutputCache is now in the namespace Microsoft.AspNetCore.OutputCaching.StackExchangeRedis not the one specified in the video
@jkaryskycoo
@jkaryskycoo Месяц назад
This feature is not available to the general public. Would have been nice to know that.
@alexthecodewolf
@alexthecodewolf Месяц назад
Hey, I probably should have mentioned you have to apply for openai access, but it's fairly easy to get approved. If you can't get access you can also substitute the AI service with gpt-4 similar alternatives like standard openai instead of azure openai, or even local ai models that are specifically trained for code generation
@lordsork
@lordsork Месяц назад
Great content. Clear and detailed!
@Ajmal_Yazdani
@Ajmal_Yazdani Месяц назад
Hi Thanks @The Code Wolf. Is function calling supported with Phi3 or any other local LLM?
@alexthecodewolf
@alexthecodewolf Месяц назад
Yep, local ai models support function calling.
@Ajmal_Yazdani
@Ajmal_Yazdani Месяц назад
@@alexthecodewolf Thanks, Can you showcase something or share any code article.
@alexthecodewolf
@alexthecodewolf Месяц назад
@@Ajmal_Yazdani You can find some examples in the semantic kernel docs at learn.microsoft.com/en-us/semantic-kernel/agents/plugins/using-the-kernelfunction-decorator?tabs=Csharp I would recommend using semantic kernel for local AI dev. Semantic kernel and more involved AI flows with local functions, plugins, services etc is a topic I plan on covering here in the near future. Semantic kernel is a big topic so I'm working on the best way to present tthat.
@OlleHellman
@OlleHellman Месяц назад
excellent pace, voice and content. Thank you.
@alexthecodewolf
@alexthecodewolf Месяц назад
Thanks for the feedback and view!
@DeepakShaw
@DeepakShaw Месяц назад
thanks
@JtendraShahani
@JtendraShahani Месяц назад
Why don't you do a complete Blazor course on Pluralsight. Learning blazor in bits is very difficult. I am new to blazor. If you already have the course, please point me in the right direction. Thank you.
@alexthecodewolf
@alexthecodewolf Месяц назад
Hey, thanks for the comment, there's already complete blazor courses on pluralsight by another author so I wouldn't be eligible to do that. I have thought about making one on RU-vid here of some sort but full courses are very time consuming and already exist on here as well, maybe at some point
@JtendraShahani
@JtendraShahani Месяц назад
@alexthecodewolf Yeah. But you don't get to learn all of it. Learning bit by bit on different RU-vid channels is difficult. Also, bootcams are way out of budget. I am from India, and platforms like Pluralsight help us with the volume of courses and also our pockets. I think this dilema will always remain. Thank you for your reply.
@alexthecodewolf
@alexthecodewolf Месяц назад
@@JtendraShahani Hey, you are correct that this is an ongoing challenge. As a self taught developer, I can relate. Many of the videos on this channel are oriented towards learners who already know the basics but are looking for guidance around new or specific topics so they don't have to watch additional courses, they can just supplement their knowledge on specific topics in shorter form content. However, I would like to get to the point where I have the time or incentives to create full courses on RU-vid. Thanks for sharing your thoughts on this!
@codeadmin2
@codeadmin2 Месяц назад
Hey wolf can this demo app work on local DB or on premise and if yes How? @alexthecodewolf
@alexthecodewolf
@alexthecodewolf Месяц назад
Hey, yes it can work with local DB and on prem. You would just replace the connection string placeholders in the demo app with localdb connection strings. You could then use the same Azure AI service or you could use a local AI model - I just posted a couple videos explaining how to setup and connect to local AI if that's what you're looking for.
@dareljohnson5770
@dareljohnson5770 Месяц назад
@The Code Wolf So, you saying that I don't need a GPU workload in Azure Container Apps to run ollama?
@dareljohnson5770
@dareljohnson5770 Месяц назад
@The Code Wolf How much does it cost to run that 4 vCPU, 8 Gib workload in Azure?
@TellaTrix
@TellaTrix Месяц назад
I would love to learn more about AI with dotnet things + local LLMS my fev one.
@justinkrawczak4929
@justinkrawczak4929 Месяц назад
Have you tried to connect your local LLM to talk to an on-premise network database without providing the schema in the instructions? Im wondering how well it would function or if this is even feasible. Asking for a friend :)
@justinkrawczak4929
@justinkrawczak4929 Месяц назад
Also, I want to add that this is great content. Useful real-world examples like this will be golden as more people leverage AI in the enterprise landscape.
@alexthecodewolf
@alexthecodewolf Месяц назад
Thanks for the feedback! I'm not sure if I understand your original question though - are you asking about essentially just giving the AI a connection string or something so it can access the database directly?
@justinkrawczak4929
@justinkrawczak4929 Месяц назад
Yes, exactly that. ​@@alexthecodewolf
@alexthecodewolf
@alexthecodewolf Месяц назад
@@justinkrawczak4929 As far as I know it's not possible to just give an AI a connection string and have it understand/explore a database. I think the closest solution I've seen to this is to add some kind of layer between the AI and the database, such as using a RAG solution where you connect the AI to a search service that has crawled your database, or using vector search capabilities to provide the AI with database data. I have a couple videos on my channel that explore these types of topics, but I don't know of any "Direct access" solutions.
@user-fqlt
@user-fqlt Месяц назад
Thanks for the very good content. You channel is underrated and you deserve a million subs.
@alexthecodewolf
@alexthecodewolf Месяц назад
Thank you, that really means a lot. Really trying to grow this channel into something big and deliver content that simplifies convoluted topics.
@goodtimeforever2035
@goodtimeforever2035 Месяц назад
Hi @Thecodewolf, Could you please explain how to set up a local laptop to run the .NET code? As I'm not a coding expert, any useful suggestions you can provide would be greatly appreciated. If you can outline the necessary steps, it would make it easier for us to follow along and perform the demo ourselves.
@alexthecodewolf
@alexthecodewolf Месяц назад
Hey, thanks for watching and providing feedback. This tutorial made some assumptions about coding knowledge with .NET or other languages, but I probably should have mentioned that up front. If you want to get started with .NET to recreate the code sample you can download visual studio here, which is the code editor I'm using that also installs .NET for you: visualstudio.microsoft.com/ You can then either clone the sample app from GitHub and just open it up in Visual Studio and follow along with the tutorial, or you can create a new project using Visual Studio and copy in the code. File -> New Project -> C# console app. Hope this helps a little bit!
@Joly0
@Joly0 Месяц назад
Is it possible to have a version, that works without azure? So using the normal openai api with a key and maybe other llm providers such as ollama?
@alexthecodewolf
@alexthecodewolf Месяц назад
I actually just made a video about this using Ollama, hah. It shows this same setup at the end using codellama ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-177qX6mpyMg.html The concepts in this video should work with any model that is skilled at text to code (such as code llama) and a SQL database of some sort. You'll have to experiment with different models and prompts to see which works best.
@bar10dr
@bar10dr Месяц назад
The AI stuff is only available to a few selected partners, the signup form even states that if you are not a part of the select group you will be denied. Trash.
@smithnigelw
@smithnigelw Месяц назад
Thank you. I’m most interested in the new C# 13 features.
@pwakabi
@pwakabi Месяц назад
Excellent piece
@ganherngyih
@ganherngyih Месяц назад
This is relevant for those taking AZ-104
@wiliam334
@wiliam334 Месяц назад
Been looking everywhere for it. Thanks a bunch
@goodtimeforever2035
@goodtimeforever2035 Месяц назад
Hey @alexthecodewolf - Can you able do the same video using AWS ?
@alexthecodewolf
@alexthecodewolf Месяц назад
Hey, this should work using any powerful large language model and SQL based database, did you have a specific scenario in mind?
@razakalsharafy4708
@razakalsharafy4708 Месяц назад
Big thanks for this great video. I'll be interested in the Aspire but mostly interested in ways to reduce spending too much time catching technology rather than producing. Meaning Applications Builder rather than technology while the App Bilder will take care of the underline technology changes/upgrades.
@CrashPreinsertion
@CrashPreinsertion Месяц назад
Hi Code Wolf. Just a quick note, I really appreciate you parsing out the relevant Build 2024 info for .Net devs. Watching Build is like standing in front of a firehose of AI, so thank you very much for a .Net dev oriented summary. Thumbs up & I'm now a new subscriber. Rock on! 👍🏻😎👍🏻
@alexthecodewolf
@alexthecodewolf Месяц назад
Thanks for this specific feedback - this is actually why I made the video. There was actually a good amount of .NET content at Build but it was sort of overshadowed by all of the AI, Azure, and tooling integration (copilots/analytics) news.