$0 Embeddings (OpenAI vs. free & open source)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มิ.ย. 2024
  • What is the cheapest way to generate text embeddings? And how do they compare to OpenAI?
    To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/RabbitHoleSyndrome. The first 200 of you will get 20% off Brilliant’s annual premium subscription.
    This video was sponsored by Brilliant.
    The video is going to explore the world of open source embedding models, how to use them, and how they compare to OpenAI's text-embedding-ada-002.
    Source code: github.com/rabbit-hole-syndro...
    Sentence Embeddings (SBERT): sbert.net/
    MTEB Leaderboard: huggingface.co/spaces/mteb/le...
    00:00 Intro
    02:02 Project setup
    03:29 Embeddings 101
    05:07 Server-side Embeddings
    06:14 SBERT & Hugging Face
    10:22 Sentence Transformers Models
    17:18 MTEB
    28:35 Inference API
    55:37 Transformers.js
    1:10:38 Embeddings in the Browser
    1:20:19 The Future of Embeddings
    1:24:23 Thanks for watching!
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 275

  • @phobosmoon4643
    @phobosmoon4643 11 หลายเดือนก่อน +116

    45 seconds in and you have already asked all of the correct questions. you have my attention, sir.

    • @kop-lg7lo
      @kop-lg7lo 9 หลายเดือนก่อน

      And my like

    • @ssathessa
      @ssathessa 7 หลายเดือนก่อน +1

      16:00 in and you have completely lost my attention, along with my hopes for being to do this as a 1st timer😂

  • @TC-Loom
    @TC-Loom 9 หลายเดือนก่อน +7

    After watching dozens of hours of similar videos this year, this is the best one. Thank you

  • @bakistas20
    @bakistas20 9 หลายเดือนก่อน +4

    I love how detailed your tutorials are! Keep on

  • @jimg8296
    @jimg8296 4 หลายเดือนก่อน +2

    Wow that was comprehensive and informative. Never realized there was so much involved in selecting models for creating embeddings.
    Thank you so much!

  • @justinyoung1762
    @justinyoung1762 7 หลายเดือนก่อน +3

    This is the best ML for JS tutorial I've seen. SUPER helpful that you started with foundational topics. Thanks for making this.

  • @fille.imgnry
    @fille.imgnry 5 หลายเดือนก่อน +4

    This is sooo good. The way your thinking, explaining, digging deeper, wanting to understand why things are happening the way they do. Thank you!

  • @M110ification
    @M110ification 5 หลายเดือนก่อน

    This is the tutorial I've been trying to find. I like how you describe the different components of the system and didn't just start with a walk thru how to setup a dev environment and other mundane pieces.

  • @MadeInJack
    @MadeInJack 5 วันที่ผ่านมา

    Man, you are the reason why TH-cam is such an awesome platform. Thank you so much for this golden course!

  • @JohnnysaidWhat
    @JohnnysaidWhat 8 หลายเดือนก่อน +1

    I used clip to embed some fields of study and then feed it user input which would "fuzzy map" to my embeddings. Worked so so well and saved me a ton of heartache. Didn't realize this model could do text2image and vice versa. Will have to try that out as well!

  • @shuaiber
    @shuaiber 7 หลายเดือนก่อน +2

    Fantastic content. Loved the contextual information in the beginning which is relevant to understand all the different components in the ecosystem.

  • @papa4614
    @papa4614 11 หลายเดือนก่อน +5

    Yes very nice to see your still doing vids ❤❤❤ there is so much your teaching us, thanks for that. I hope you still do the part 3 video series on the electron screensaver project 🤩 stay save

  • @mohamedamine_47
    @mohamedamine_47 2 หลายเดือนก่อน +1

    While I didn't originally come to watch the TypeScript implementation, I found myself fully immersed in your explanations. It wasn't until I'd watched the first 30 minutes that I realized the video was over an hour long.
    Thank you for sharing this!

  • @lofikiwii
    @lofikiwii 11 หลายเดือนก่อน +1

    My man!!!! Huge! (it's tony), glad to see a new video! And this was one a monster video! Its jammed pack with so much information man.
    Keep it going my man!

  • @vinitjha_
    @vinitjha_ 8 หลายเดือนก่อน +1

    Great explaination. You simplified every bit of detail👏

  • @borknagarchile
    @borknagarchile 5 หลายเดือนก่อน +1

    Your video is amazing, you pretty much see all the possible the use cases for when you are trying to implement something like this. Thanks 🎉

  • @eyemazed
    @eyemazed 11 หลายเดือนก่อน +15

    damn i love when i dive head into NLP content, get instantly overwhelmed and then a video like this gets randomly recommended and instantly clears away about 120 questions that i had. thanks man

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน +1

      Awesome!

    • @Richardziani
      @Richardziani 11 หลายเดือนก่อน +1

      Hey, I totally feel you! 😍 It's amazing how stumbling upon the perfect video can make all those overwhelming questions disappear in an instant! 🙌 Thank you so much for sharing your experience, it's truly inspiring! 🌟 Keep diving headfirst into NLP content, my friend! 💪

    • @Mullheimer
      @Mullheimer 11 หลายเดือนก่อน

      It's amazing how Google just reads your mind. At this point it is just getting retarded. Every day exactly the right yt vid comes up. I've been querying large pdfs today via chatgpt...

  • @eru6ite
    @eru6ite 8 หลายเดือนก่อน +1

    Dang! I'm not even halfway and I've already learned so much. Amazing content, mate! 🍻

  • @SantamChakraborty
    @SantamChakraborty 6 หลายเดือนก่อน +1

    Thank you ! That was amazingly lucid and well put together. Keeping an eye out for your future videos.

  • @SamirLohiya-sm7ze
    @SamirLohiya-sm7ze 3 หลายเดือนก่อน +2

    This is a great video, and it makes me feel like there is no need to refer to any other video.
    What a great piece of content!

  • @comptvlee
    @comptvlee 10 หลายเดือนก่อน +54

    Insanely helpful content. You've been one of the content leaders carrying the burden of disseminating all these complex topics into my head. Started with the supabase docs all the way here and I'm grateful!!! This is game changing for my career

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  10 หลายเดือนก่อน +1

      I appreciate the kind words. Glad they have been helpful!

  • @richardyim8914
    @richardyim8914 หลายเดือนก่อน +2

    This was crazyyy useful. Not a software or web developer, but trying to use embeddings for academic research. Really great walkthrough!

  • @stephensinclair276
    @stephensinclair276 10 หลายเดือนก่อน +1

    That was one of the best videos I have seen on this topic. Going to look for more!

  • @scign
    @scign 11 หลายเดือนก่อน +1

    I love how my head comes up with a question and you go down that exact rabbit hole! You just won a new subscriber here.

  • @AngelEduardoLopezZambrano
    @AngelEduardoLopezZambrano 11 หลายเดือนก่อน +5

    This video got me into the rabbit hole of your channel! You just got a new subscriber. Excited to see what you'll come up with next. Particularly, I'd like to see how to fine tune text generation models in modest hardware using javascript. Thanks!

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน

      Will keep that in mind - thanks for the sub!

  • @roguesherlock
    @roguesherlock 8 หลายเดือนก่อน +1

    man this was so helpful. Thank you!
    Also, I loved all the btws, fyis, fun facts and side quests haha

  • @abagatelle
    @abagatelle 9 หลายเดือนก่อน +2

    I'm.....overwhelmed! Learn't that it's a very long road. Very pleased I found your excellent channel.

  • @yuri.caetano
    @yuri.caetano 11 หลายเดือนก่อน +2

    Bro your video is hell good edited and content is good, congratulations

  • @rickgeyer9685
    @rickgeyer9685 หลายเดือนก่อน

    This is absolutely the best explanation of embeddings I have ever seen. Thanks so much for this excellent video!

  • @mortocks
    @mortocks 11 หลายเดือนก่อน +9

    First tutorial that actually makes sense and explains the ecosystem without hand waving. Thanks!!!!!!

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน +2

      You bet! Thanks for watching 😃

  • @danielbusquets3282
    @danielbusquets3282 2 หลายเดือนก่อน +1

    Very good video. I just implemented a semantic search engine in my app and it works like magic

  • @stephenk8632
    @stephenk8632 หลายเดือนก่อน +1

    Amazing video! Thanks. It was uncanny how questions would be popping in my head and you'd answer them in the next sentence lol. Thanks again

  • @monterourena
    @monterourena 8 หลายเดือนก่อน +1

    Amazing job! Please continue doing these videos 🙌🏻

  • @mytechnotalent
    @mytechnotalent 11 หลายเดือนก่อน +1

    Great job and very detailed I like the JS internals showing the steps.

  • @moy2010
    @moy2010 11 หลายเดือนก่อน +1

    Probably the best content I have watched on the subject. Kudos!

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน +1

      Happy to hear! Thanks for watching 😃

  • @superwin06
    @superwin06 16 ชั่วโมงที่ผ่านมา

    Thank you for covering a lot of sub topics without going deep too much! I learned a lot

  • @crometica
    @crometica 7 หลายเดือนก่อน +1

    It's incredibly valuable, and you've gained a fan ❤. Keep up the fantastic work!

  • @zeelthumar
    @zeelthumar 8 หลายเดือนก่อน +1

    I have never watched full tutorial that contains javascript bcz I'm a python guy but for the first time I have gone through the whole tutorial and obviously I subscribed...................U are just awesome...............keep it up

  • @erikmejiass
    @erikmejiass 10 หลายเดือนก่อน +10

    I don’t usually post comments, but in this case would do an exception to thank you for the easy to understand and to the point explanation. It’s rarely found these days.
    Hats off to you 💪

  • @johngrant7197
    @johngrant7197 5 หลายเดือนก่อน +1

    I love that you rock Typescript in domains usually reserved for Python.

  • @PatrickSteil
    @PatrickSteil 4 หลายเดือนก่อน +1

    Wonderful video... helping to teach us how all this stuff is working under the covers... new subscriber!

  • @rikvermeer1325
    @rikvermeer1325 11 หลายเดือนก่อน +2

    Hmmz... finally a good overview on embeddings that is in depth AND understandable
    I will watch this multiple times

  • @jakubwerner11
    @jakubwerner11 3 หลายเดือนก่อน +1

    So well explained, thank you!

  • @ahmedali-hy9ew
    @ahmedali-hy9ew 9 หลายเดือนก่อน +5

    Keep it up with the great content, really love the way you explain stuff, we want more ai tutorials please.

  • @RishuKumar-zo2hc
    @RishuKumar-zo2hc 10 หลายเดือนก่อน +1

    Very informative
    Please release more videos
    Love your content

  • @adrienazie
    @adrienazie 7 หลายเดือนก่อน +1

    Thanks for the time and effort you have put into creating this video. Great content and explanation.

  • @aksh1618
    @aksh1618 11 หลายเดือนก่อน +3

    Another great one! I'm really hooked onto the high quality content you're producing! On a related note, which one of these open source embedding models would you consider using for something like ClippyGPT, and are actually you planning to switch to one of these?

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน

      Thanks for watching! Great question - we will definitely consider it. Will have to do a deeper dive, but ideally a model that performs well with retrieval. Also need to consider practicalities around deployment and operation, so usually smaller model = better.

  • @snsa_kscc
    @snsa_kscc 11 หลายเดือนก่อน +24

    Another banger, bro! You are on 🔥. I love the fact ML ecosystem is morphing with TS/JS web dev. Massive thanks, this was a joy to watch. Have a nice one.

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน +1

      Appreciate it & thanks for watching! Very excited to see the new possibilities in the TS/JS ecosystem.

  • @danjsy
    @danjsy 10 หลายเดือนก่อน +1

    Great video thank you an excellent channel. For corporate use cases where they are predominantly Microsoft houses, for retrieval use cases can you see past the new OpenAI implementations? Thanks !

  • @TheTaygan
    @TheTaygan หลายเดือนก่อน +1

    Great video with awesome explanations... well done

  • @grant_vine
    @grant_vine 7 หลายเดือนก่อน +1

    Best hour and 24 mins spent this week 😊

  • @khangvutien2538
    @khangvutien2538 9 หลายเดือนก่อน +1

    With this video, you got a new subscriber.
    Thanks.

  • @handlez411
    @handlez411 5 หลายเดือนก่อน +1

    Awesome video! Thank you!

  • @pranjalagnihotri6072
    @pranjalagnihotri6072 11 หลายเดือนก่อน +3

    Thank you so so much for this banger video few days ago I was working on a side project (inspired by Wesbos talk) to find the similarity between a tweet replies and group them together I first used bag-of-words to generate word vectors and then used OpenAI embeddings only to find out I need to setup a paid account because of that I had to pause my side project and I would say right after this I am going and will complete my projects using huggingface models thank you so much. I explored HF but was not able to gather such details like you explained everything in video❤

  • @eliaweiss1
    @eliaweiss1 9 หลายเดือนก่อน +1

    wow!!! amazing stuff, thanks for all this info!

  • @browland601
    @browland601 10 หลายเดือนก่อน +4

    Love the level of detail here!
    I'm working on an idea to do text classification using sentence embeddings as input features and then doing logistical regression. If the labels (binary classifier for now) correspond well with the embeddings generated from training examples, then my hope is the logistical regression model will work with inputs not seen before but close semantically.
    One of the considerations is which embedding model to use, so lots of food for thought here!

    • @theepicosityofpizza
      @theepicosityofpizza 7 หลายเดือนก่อน +1

      This is how they tested classification performance in the benchmark mentioned, so you're on the right track

    • @omijmangukiya8984
      @omijmangukiya8984 7 หลายเดือนก่อน

      i suggest using setfit

  • @cesarsanchez5576
    @cesarsanchez5576 11 หลายเดือนก่อน +1

    I've watched just two of your videos and I feel like I've learnt 6 months of ML Engineering. Many many thanks

  • @martinp3839
    @martinp3839 10 หลายเดือนก่อน +2

    Excellent! Especially the way you build up the episode from explaining core concepts to a layman..glad I stumbled upon your channel..

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  10 หลายเดือนก่อน

      Glad it was helpful!

    • @martinp3839
      @martinp3839 10 หลายเดือนก่อน

      I am new to javascript and typescript. When I cloned the repo and tried executing "npm run dev" in the "HuggingFace/apps/embeddings-huggingface/src", get this error "TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts"", Hit a roadblock. Kindly advise how I can fix this.

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  10 หลายเดือนก่อน

      Sounds like you may be running the code as JavaScript (TypeScript has a compile step). The easiest way to get off the ground is probably to install ts-node and run your TS files through that.

  • @sheikhakbar2067
    @sheikhakbar2067 3 หลายเดือนก่อน +3

    It's almost 3:00 in the morning, I am going to sleep and watch this excellent video tomorrow!

    • @JoEl-jx7dm
      @JoEl-jx7dm 3 หลายเดือนก่อน

      Same but different day

  • @mbrochh82
    @mbrochh82 4 หลายเดือนก่อน +1

    super good tutorial!!

  • @Muennighoff
    @Muennighoff 10 หลายเดือนก่อน +3

    Amazing video! Will work on adding a ranking for the individual MTEB task tabs. Also we're working on adding more tasks (e.g. code embeddings) & other models to the leaderboard! 🤗

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  10 หลายเดือนก่อน +1

      That’s amazing Niklas, thanks for the update!

    • @cklim78
      @cklim78 10 หลายเดือนก่อน

      Great! Look forward to the updates especially on the code embeddings task, may I know any targeted date when the updates will be released?

  • @lakinmohapatra
    @lakinmohapatra 9 หลายเดือนก่อน +1

    Very nice explanation. Thanks a lot

  • @ninjagaskin
    @ninjagaskin 11 หลายเดือนก่อน +5

    This beats watching Netflix. Thank you for such a well-put-together tutorial/lecture on embeddings 101.
    I would really value your advice (and this community too) on a question I have for a personal project:
    I am attempting to build a pdf analyzer for financial reports - 10ks, Annual Reports, Financial Statements, etc...
    What is the best metric / category you recommend I use for my embedding model and LLM too?
    the goal is to allow the upload of any pdf, embed the pdf, store in a vector db, and then query some question answering along with memory capabilities.
    - new subscriber

    • @RabbitHoleSyndrome
      @RabbitHoleSyndrome  11 หลายเดือนก่อน +3

      Great use case! I would focus on a retrieval based model which is best suited for question-answer style matching. In terms of which one - I think you will just need to try some of them and test to see if your queries are matching with the content you expect. Good luck (thanks for the sub)!

  • @shinchima
    @shinchima 6 หลายเดือนก่อน +2

    just the ticket - cheers for uploading

  • @JunYamog
    @JunYamog 6 หลายเดือนก่อน +1

    Thanks I made it on the end of the rabbit hole. Interesting to learn that you can do embeddings in a browser.

  • @SmallTownDev
    @SmallTownDev 9 หลายเดือนก่อน +1

    By far the most informative resource 🚀

  • @N4LNba777
    @N4LNba777 2 หลายเดือนก่อน +1

    Amazing video, thanks for saving me a ton of time!

  • @huydh
    @huydh 5 หลายเดือนก่อน

    I appreciate so much that you made a video about this as I’m learning. But more than 90 mins was really long and I had to skip over some detailed explanations to get to see the demo 😂 So if anything, I’d hope you did it in 2 parts, one video for just the demo of these new technologies (what they can do for me) and another going into details behind everything. That’s my 2 cents… Loved the content 🎉😊

  • @luis96xd
    @luis96xd 10 หลายเดือนก่อน +3

    Fantastic video, everything was well explained! Thanks
    Wow, it was an excellent solution to get Array length 1 of embeddings forking the model and adding the label Sentence Transformer, you really research a lot before making a video, great job! 👏💯
    I learned a lot, of programming of types, of model parameters and outputs

  • @jdkh89
    @jdkh89 10 หลายเดือนก่อน +1

    Wow I learned so much from this. Thank you so much!

  • @Swanidhi
    @Swanidhi 10 หลายเดือนก่อน +1

    Love the rabbit hole content! Subscribed!

  • @gunerdown
    @gunerdown 6 หลายเดือนก่อน +1

    You got my sub, great content!

  • @manishbabbar9969
    @manishbabbar9969 11 หลายเดือนก่อน +1

    Really liked your content. Thanks for sharing such engaging information.

  • @LWC
    @LWC 11 หลายเดือนก่อน +1

    Really great video. Thank you for it!

  • @nelzonmusic
    @nelzonmusic 3 หลายเดือนก่อน +1

    really great video!

  • @hasaniqbal233
    @hasaniqbal233 11 หลายเดือนก่อน +1

    Really appreciate you doing these videos using TS and not Python.

  • @Blocky007
    @Blocky007 8 หลายเดือนก่อน +1

    amazing and extremely helpful

  • @elierh442
    @elierh442 4 หลายเดือนก่อน +1

    Love your content, keep it up! 👌

  • @raphauy
    @raphauy 3 หลายเดือนก่อน +1

    Thank you very much!

  • @archiee1337
    @archiee1337 9 หลายเดือนก่อน +1

    Great video, thank you😊

  • @sevindis
    @sevindis 8 หลายเดือนก่อน +1

    Great content, thank you so much!

  • @neoblackcyptron
    @neoblackcyptron 7 หลายเดือนก่อน

    I'm glad I found this channel. It's very rare to come across super knowledgeable people like the owner of this youtube channel in the AI field who really know their stuff.
    I am planning to start an AI consulting business, cutting costs reducing token costs is a big deal for me, this really helped.
    By the way I heard AI consultants who know their stuff: ML, Genetic Algorithms. Robotics, Computer Vision and LLMs with some RPA thrown in can charge $200/hour is that a fair rate or am I underselling me skills. I don't want to ruin it for the rest of my peer by quoting too low.

  • @amanshrivastava7495
    @amanshrivastava7495 6 หลายเดือนก่อน +1

    Thanks man!!

  • @jvandenaardweg
    @jvandenaardweg 8 หลายเดือนก่อน +1

    Excellent video! ❤

  • @daryladhityahenry
    @daryladhityahenry 9 หลายเดือนก่อน

    Hi! This is crazy good content. I learn so much! Thank you so much.. And have a question though, I'm on minute 39:00 when talking about embedding dimension size. Is the lower dimension size more likely to not have word vectored? I mean, maybe word like "eggyolk" ( maybe ) doesn't registered because the embedding id already full so it can't get the vector value from that word?
    If yes, that is really a trade off that we need to choose carefully right? Or... If we just use normal vocabulary, it should be okay with small dimension?
    Thankss!!!!!!!!

  • @vitoralves5934
    @vitoralves5934 7 หลายเดือนก่อน +1

    Man ur just a natural teacher, thank you!

  • @shtrumj
    @shtrumj 2 หลายเดือนก่อน +1

    please more content , more depth, loved it, subscribed.

  • @JustCode39
    @JustCode39 5 หลายเดือนก่อน +1

    this video is amazingly good

  • @0f897
    @0f897 9 หลายเดือนก่อน +1

    Outstanding content 😀

  • @user-vl4sg2vj8b
    @user-vl4sg2vj8b 11 หลายเดือนก่อน +1

    amazing content man. hats off👏👏

  • @afterlife320
    @afterlife320 6 หลายเดือนก่อน +1

    Amazing video 👌🏻🙏🏻

  • @aliandiazperez7602
    @aliandiazperez7602 10 หลายเดือนก่อน +1

    Excellent video tutorial and teaching skills!!!!!

  • @thenextension9160
    @thenextension9160 8 หลายเดือนก่อน +1

    Fantastic thanks

  • @IgnoreMyChan
    @IgnoreMyChan 9 หลายเดือนก่อน

    I love your 2010-like editing with all the micro-cuts making it very exhausting to watch and listen to. 😂

  • @alvarobyrne
    @alvarobyrne 11 หลายเดือนก่อน +1

    well done, and thanks for elaborating on various topics, even though the a ha moment has to wait a bit... ooooohm attitude

  • @lucamiamiflorida5065
    @lucamiamiflorida5065 10 หลายเดือนก่อน +1

    best video on the topic, thanks!

  • @KelvinWKiger
    @KelvinWKiger 8 หลายเดือนก่อน +1

    Olala!
    Thank you, thank you... and thank you very much.
    Take care 🍀

  • @natural2
    @natural2 8 หลายเดือนก่อน +1

    Wow thanks I learned a lot!!

  • @artem-yw8km
    @artem-yw8km 8 หลายเดือนก่อน +1

    cool realy improved inference results

  • @arthurperini
    @arthurperini 8 หลายเดือนก่อน

    Thank you! Great and didactic information here Sir! Instead of use similarly of two phrases, I am going to change this example to retrieve information from a pdf and inject in gpt-3.5-turbo. Is that possible ok? Thank you

  • @sarojregmi200
    @sarojregmi200 5 หลายเดือนก่อน +1

    I think they saw your video and added the sentence transformer label in there.