Rust OpenAI Integration (GPT-3)

  Рет қаралды 27,942

Code to the Moon

Code to the Moon

Күн бұрын

Пікірлер: 55
@kwadoo1897
@kwadoo1897 2 жыл бұрын
keep these tutorials going, really helpful and enjoyable to watch!
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks will do, glad you found it useful and entertaining!
@nicolaszulaica6201
@nicolaszulaica6201 2 жыл бұрын
This video is outstanding ! Easy to understand, super interesting and fun to watch !
@codetothemoon
@codetothemoon 2 жыл бұрын
Thank you, your description is precisely the goal I was shooting for when I made it. Glad you found it valuable!
@davidmaynard2508
@davidmaynard2508 Жыл бұрын
Wonderful. Very instructive on a whole lot of levels. Thank you!
@codetothemoon
@codetothemoon Жыл бұрын
Thanks, glad you found it valuable!
@anotidaisheneilmisi904
@anotidaisheneilmisi904 2 жыл бұрын
😂😂😂 LOL, that was hilarious. OpenAI loves Rust now
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks Anotidaishe, glad you liked it! Wasn't sure if folks would appreciate the humor ;)
@jacksmye4092
@jacksmye4092 Жыл бұрын
This channel is insane! Thank you for what you are doing!!!
@codetothemoon
@codetothemoon Жыл бұрын
Thanks for watching Jack! more to come!
@boi64pr60
@boi64pr60 2 жыл бұрын
Loved it, Haha. Got me a smile.
@codetothemoon
@codetothemoon 2 жыл бұрын
Nice, that's what I was going for!
@icelk
@icelk 2 жыл бұрын
Regarding printing a newline, you can omit the quotes: `println!()` will print an empty line.
@codetothemoon
@codetothemoon 2 жыл бұрын
ahh nice thanks for the tip!!
@protocode_227
@protocode_227 2 жыл бұрын
Wonderful 😌 Great vid, ty! 🙋🏻‍♂️
@codetothemoon
@codetothemoon 2 жыл бұрын
Thank you and thanks for watching!
@Cryptopunkstar
@Cryptopunkstar 2 жыл бұрын
Wow ! Thank you for example AI integrate with Rust ! Hey !
@codetothemoon
@codetothemoon 2 жыл бұрын
Glad you enjoyed it, thanks for watching!
@david-cn1xv
@david-cn1xv 2 жыл бұрын
I want to sign up for the beta but I am put off by the strict limitations of approved apps in their use case guidelines. This technology is so powerful so I understand why they might want to limit certain areas, but to draw limitations and cut off millions of potential developers/users because their use case could possibly not be human monitored is interesting. At least they could reject certain requests in the backend rather than cut off an entire audience of users due to a supposed guideline. But Elon Musk is one of the founders, and his ego definitely wants to make Open AI his own formulated mission. GPT-3 (or something very similar) needs to be fully open sourced.
@codetothemoon
@codetothemoon 2 жыл бұрын
Yeah the restrictions take a bit of the fun out of it, but its still fun to play with even if you're just using the built in playground environment. I hope to see a comparable project open sourced as well!
@dieSpinnt
@dieSpinnt Жыл бұрын
Yeah, let us include "Uber-Clippy", the endboss into our product. What could possibly go wrong? Jokes beside, thank you for the video and the in-depth explanation, CttM:)
@murugarajuperumalla5508
@murugarajuperumalla5508 2 жыл бұрын
Super duper awesome ❤️
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks, glad you liked it!
@irlshrek
@irlshrek 2 жыл бұрын
Hahahahah so funny. Love this channel and love the rust content!!
@codetothemoon
@codetothemoon 2 жыл бұрын
🙃 Thanks Eran!!
@billeterk
@billeterk 2 жыл бұрын
Lovely!
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks Karl!
@masiarek
@masiarek 2 жыл бұрын
Wow. Thank you
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks for watching!
@jeffg4686
@jeffg4686 2 жыл бұрын
Thanks for sharing. GPT-3 is really crazy. Almost as cool as the image gen stuff. Does this allow the opposite - interpreting text or speech to determine if someone likely answered a question correctly (I would see that as huge in gaming). Like, you configure - we're looking for certain words in answer. If they get at least "x" of those, then they answered correctly. I'm thinking in terms of VR where player makes some decisions or actions in game based on speech - regardless of whether the speech to text is a local transformation or part of the service.
@codetothemoon
@codetothemoon 2 жыл бұрын
I agree, it's pretty impressive! I think GPT-3 is quite capable of what you're saying - you can give it instructions on how to answer in plain language. For example your input could simply be "The question is x. the user's answer was y. The real answer is z. Did they answer the question correctly?" and GPT-3 should spit out a simple "yes" or "no" response. It might require a bit of tuning in terms of how close the user's answer needs to be to be considered correct, but it's definitely something GPT-3 is capable of.
@jeffg4686
@jeffg4686 2 жыл бұрын
@@codetothemoon - Thanks, I was thinking about it later, and determined that all I would really need is speech to text capabilities, then interpret the text for context and words, but GPT-3 would still be very useful for tons of stuff - really haven't thought of all the possibilities, but I know people will come up with amazing games using gpt-3. Rust has a wrapper for "deepspeech" library, deepspeech-rs, which is perfect.
@juanmacias5922
@juanmacias5922 2 жыл бұрын
Which text to speech program did you use?
@codetothemoon
@codetothemoon 2 жыл бұрын
Amazon Polly
@S0L4RW4V3
@S0L4RW4V3 Жыл бұрын
Im a very green rustacean, and only dabbled in Conversational ai via rasa about 3 years back... My follow up uestion to this video is how could one implement fully localized version of this chatbot? Circumventing the need to be online
@robrita
@robrita 2 жыл бұрын
where did you make your thumbnail? really cool!! 🔥🔥🔥
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks! I actually make all of my thumbnails with Adobe Illustrator, and I source many of the graphics from flaticon.com. In this particular one, the chip with the brain on it is from flaticon.com.
@bubblekill2311
@bubblekill2311 2 жыл бұрын
awsom
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks for watching!
@Mr.Legend_9
@Mr.Legend_9 2 жыл бұрын
It a good boy for advertising rest
@codetothemoon
@codetothemoon 2 жыл бұрын
Thanks for watching, I strive to be a good boy
@atrocitus777
@atrocitus777 10 ай бұрын
is this on github anywhere?
@robertodelgado1234
@robertodelgado1234 Жыл бұрын
Thanks for the great tutorial. Any chance we could get the GH repo for this? I'm getting a bunch of errors and would like to match my code with yours.
@codetothemoon
@codetothemoon Жыл бұрын
Thanks! The code is available here github.com/Me163/youtube/tree/main/RustOpenAI
@stevenhe3462
@stevenhe3462 2 жыл бұрын
Why are you not using `rust-analyzer`?
@codetothemoon
@codetothemoon 2 жыл бұрын
At first glance I thought it's functionality also existed in the "Rust" extension, but I didn't investigate too deeply. What set of VSCode extensions would you recommend for Rust development?
@chrismeys4791
@chrismeys4791 2 жыл бұрын
How does GPT-3 understand what humor is?
@codetothemoon
@codetothemoon 2 жыл бұрын
Great question - i haven't actually read the whitepaper, but my guess is that the concept of "attractiveness" and examples of humor both exist in the training data. I believe some flavor of deep neural network is trained on this data, so it can then infer appropriate responses to a prompt based on what it saw in the training data (even if that specific prompt didn't exist in the training data).
@chrismeys4791
@chrismeys4791 2 жыл бұрын
@@codetothemoon Wow! Thanks for your answer 👍.
@eparch2144
@eparch2144 Жыл бұрын
Couldn't you have just asked OpenAI to write all that code for you? lol
@codetothemoon
@codetothemoon Жыл бұрын
lol possibly! This video was made in the GPT-3 era, and I wasn't fully aware of what it was capable of...
@NakedSageAstrology
@NakedSageAstrology 2 жыл бұрын
Completely generated by the A.I without influence,.. oh by the way I hardcoded it to be biased.
@codetothemoon
@codetothemoon 2 жыл бұрын
Yep the responses are generated by gpt3 based on the users input and a static hardcoded string appended to that input. I said the responses weren’t pre-generated, not that they weren’t influenced by the input (all AI is and must be)
@NakedSageAstrology
@NakedSageAstrology 2 жыл бұрын
@@codetothemoon Not all A.I. relies on input, just wait for July 6th.
@schubertbach3961
@schubertbach3961 10 ай бұрын
I copy and paste the rustopenai code in my linux terminal, I run it , and I got this message !! thread main packinked at src/main.rs:42:51 called Result::unwrap() on an `Err` value: NotPresent note: run with `RUST_BACKTRACE=1` enviroment varialble to display a backtrace can you help please
Build A Rust Backend (Really FAST Web Services with Actix Web)
32:44
Code to the Moon
Рет қаралды 150 М.
Rust's Most Important Containers 📦 10 Useful Patterns
17:11
Code to the Moon
Рет қаралды 122 М.
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 19 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 49 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 62 МЛН
Run ALL Your AI Locally in Minutes (LLMs, RAG, and more)
20:19
Cole Medin
Рет қаралды 57 М.
Is GPT Engineer Actually Useful? 🤨
17:33
ArjanCodes
Рет қаралды 32 М.
Build Universal Libraries with Rust
20:59
Code to the Moon
Рет қаралды 60 М.
Ace Rust Macros ♠️ the declarative kind
14:06
Code to the Moon
Рет қаралды 39 М.
The Truth about Rust/WebAssembly Performance
29:47
Greg Johnston
Рет қаралды 181 М.
C++ vs Rust: which is faster?
21:15
fasterthanlime
Рет қаралды 395 М.
Emacs. But why?
51:20
(Bit-Mage)
Рет қаралды 2,5 М.
Is Rust the New King of Data Science?
15:38
Code to the Moon
Рет қаралды 137 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 171 М.
Win This Dodgeball Game or DIE…
00:36
Alan Chikin Chow
Рет қаралды 19 МЛН