Rust OpenAI Integration (GPT-3)

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 55

  • @kwadoo1897
    @kwadoo1897 2 роки тому +17

    keep these tutorials going, really helpful and enjoyable to watch!

    • @codetothemoon
      @codetothemoon  2 роки тому +2

      Thanks will do, glad you found it useful and entertaining!

  • @nicolaszulaica6201
    @nicolaszulaica6201 2 роки тому +6

    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!

  • @anotidaisheneilmisi904
    @anotidaisheneilmisi904 2 роки тому +13

    😂😂😂 LOL, that was hilarious. OpenAI loves Rust now

    • @codetothemoon
      @codetothemoon  2 роки тому +5

      Thanks Anotidaishe, glad you liked it! Wasn't sure if folks would appreciate the humor ;)

  • @davidmaynard2508
    @davidmaynard2508 Рік тому +1

    Wonderful. Very instructive on a whole lot of levels. Thank you!

  • @jacksmye4092
    @jacksmye4092 2 роки тому +1

    This channel is insane! Thank you for what you are doing!!!

    • @codetothemoon
      @codetothemoon  2 роки тому

      Thanks for watching Jack! more to come!

  • @icelk
    @icelk 2 роки тому +4

    Regarding printing a newline, you can omit the quotes: `println!()` will print an empty line.

  • @boi64pr60
    @boi64pr60 2 роки тому +3

    Loved it, Haha. Got me a smile.

  • @david-cn1xv
    @david-cn1xv 2 роки тому +7

    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 роки тому +4

      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!

  • @protocode_227
    @protocode_227 2 роки тому +1

    Wonderful 😌
    Great vid, ty! 🙋🏻‍♂️

  • @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:)

  • @Cryptopunkstar
    @Cryptopunkstar 2 роки тому +2

    Wow ! Thank you for example AI integrate with Rust ! Hey !

    • @codetothemoon
      @codetothemoon  2 роки тому

      Glad you enjoyed it, thanks for watching!

  • @irlshrek
    @irlshrek 2 роки тому +1

    Hahahahah so funny. Love this channel and love the rust content!!

  • @jeffg4686
    @jeffg4686 2 роки тому +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.

  • @murugarajuperumalla5508
    @murugarajuperumalla5508 2 роки тому +1

    Super duper awesome ❤️

  • @robrita
    @robrita 2 роки тому +1

    where did you make your thumbnail? really cool!! 🔥🔥🔥

    • @codetothemoon
      @codetothemoon  2 роки тому +1

      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.

  • @billeterk
    @billeterk 2 роки тому +1

    Lovely!

  • @masiarek
    @masiarek 2 роки тому +1

    Wow. Thank you

  • @juanmacias5922
    @juanmacias5922 2 роки тому +2

    Which text to speech program did you use?

  • @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  Рік тому +1

      Thanks! The code is available here github.com/Me163/youtube/tree/main/RustOpenAI

  • @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

  • @stevenhe3462
    @stevenhe3462 2 роки тому +1

    Why are you not using `rust-analyzer`?

    • @codetothemoon
      @codetothemoon  2 роки тому +1

      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?

  • @Mr.Legend_9
    @Mr.Legend_9 2 роки тому +3

    It a good boy for advertising rest

    • @codetothemoon
      @codetothemoon  2 роки тому +3

      Thanks for watching, I strive to be a good boy

  • @bubblekill2311
    @bubblekill2311 2 роки тому +1

    awsom

  • @atrocitus777
    @atrocitus777 11 місяців тому

    is this on github anywhere?

  • @chrismeys4791
    @chrismeys4791 2 роки тому +2

    How does GPT-3 understand what humor is?

    • @codetothemoon
      @codetothemoon  2 роки тому +1

      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 👍.

  • @NakedSageAstrology
    @NakedSageAstrology 2 роки тому +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.

  • @eparch2144
    @eparch2144 Рік тому +1

    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...

  • @schubertbach3961
    @schubertbach3961 11 місяців тому +1

    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