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

  Рет қаралды 237,867

Rabbit Hole Syndrome

Rabbit Hole Syndrome

Күн бұрын

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!

Пікірлер: 269
@phobosmoon4643
@phobosmoon4643 10 ай бұрын
45 seconds in and you have already asked all of the correct questions. you have my attention, sir.
@kop-lg7lo
@kop-lg7lo 8 ай бұрын
And my like
@ssathessa
@ssathessa 6 ай бұрын
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 8 ай бұрын
After watching dozens of hours of similar videos this year, this is the best one. Thank you
@justinyoung1762
@justinyoung1762 6 ай бұрын
This is the best ML for JS tutorial I've seen. SUPER helpful that you started with foundational topics. Thanks for making this.
@bakistas20
@bakistas20 8 ай бұрын
I love how detailed your tutorials are! Keep on
@fille.imgnry
@fille.imgnry 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!
@jimg8296
@jimg8296 3 ай бұрын
Wow that was comprehensive and informative. Never realized there was so much involved in selecting models for creating embeddings. Thank you so much!
@M110ification
@M110ification 4 ай бұрын
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.
@shuaiber
@shuaiber 6 ай бұрын
Fantastic content. Loved the contextual information in the beginning which is relevant to understand all the different components in the ecosystem.
@papa4614
@papa4614 10 ай бұрын
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
@jakubwerner11
@jakubwerner11 2 ай бұрын
So well explained, thank you!
@JohnnysaidWhat
@JohnnysaidWhat 7 ай бұрын
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!
@borknagarchile
@borknagarchile 3 ай бұрын
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 10 ай бұрын
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 10 ай бұрын
Awesome!
@Richardziani
@Richardziani 10 ай бұрын
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 10 ай бұрын
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...
@SantamChakraborty
@SantamChakraborty 5 ай бұрын
Thank you ! That was amazingly lucid and well put together. Keeping an eye out for your future videos.
@stephensinclair276
@stephensinclair276 9 ай бұрын
That was one of the best videos I have seen on this topic. Going to look for more!
@vinitjha_
@vinitjha_ 7 ай бұрын
Great explaination. You simplified every bit of detail👏
@richardyim8914
@richardyim8914 25 күн бұрын
This was crazyyy useful. Not a software or web developer, but trying to use embeddings for academic research. Really great walkthrough!
@danielbusquets3282
@danielbusquets3282 Ай бұрын
Very good video. I just implemented a semantic search engine in my app and it works like magic
@lofikiwii
@lofikiwii 10 ай бұрын
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!
@stephenk8632
@stephenk8632 6 күн бұрын
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
@mohamedamine_47
@mohamedamine_47 Ай бұрын
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!
@yuri.caetano
@yuri.caetano 10 ай бұрын
Bro your video is hell good edited and content is good, congratulations
@mytechnotalent
@mytechnotalent 10 ай бұрын
Great job and very detailed I like the JS internals showing the steps.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Awesome!
@monterourena
@monterourena 7 ай бұрын
Amazing job! Please continue doing these videos 🙌🏻
@SamirLohiya-sm7ze
@SamirLohiya-sm7ze 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!
@RishuKumar-zo2hc
@RishuKumar-zo2hc 9 ай бұрын
Very informative Please release more videos Love your content
@TheTaygan
@TheTaygan 8 күн бұрын
Great video with awesome explanations... well done
@AngelEduardoLopezZambrano
@AngelEduardoLopezZambrano 9 ай бұрын
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 9 ай бұрын
Will keep that in mind - thanks for the sub!
@mortocks
@mortocks 10 ай бұрын
First tutorial that actually makes sense and explains the ecosystem without hand waving. Thanks!!!!!!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
You bet! Thanks for watching 😃
@eliaweiss1
@eliaweiss1 8 ай бұрын
wow!!! amazing stuff, thanks for all this info!
@mbrochh82
@mbrochh82 3 ай бұрын
super good tutorial!!
@N4LNba777
@N4LNba777 Ай бұрын
Amazing video, thanks for saving me a ton of time!
@scign
@scign 10 ай бұрын
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.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Nice! Thanks for the sub!
@gunerdown
@gunerdown 5 ай бұрын
You got my sub, great content!
@roguesherlock
@roguesherlock 7 ай бұрын
man this was so helpful. Thank you! Also, I loved all the btws, fyis, fun facts and side quests haha
@eru6ite
@eru6ite 7 ай бұрын
Dang! I'm not even halfway and I've already learned so much. Amazing content, mate! 🍻
@sheikhakbar2067
@sheikhakbar2067 2 ай бұрын
It's almost 3:00 in the morning, I am going to sleep and watch this excellent video tomorrow!
@JoEl-jx7dm
@JoEl-jx7dm 2 ай бұрын
Same but different day
@johngrant7197
@johngrant7197 3 ай бұрын
I love that you rock Typescript in domains usually reserved for Python.
@elierh442
@elierh442 3 ай бұрын
Love your content, keep it up! 👌
@moy2010
@moy2010 10 ай бұрын
Probably the best content I have watched on the subject. Kudos!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Happy to hear! Thanks for watching 😃
@shinchima
@shinchima 5 ай бұрын
just the ticket - cheers for uploading
@crometica
@crometica 6 ай бұрын
It's incredibly valuable, and you've gained a fan ❤. Keep up the fantastic work!
@PatrickSteil
@PatrickSteil 3 ай бұрын
Wonderful video... helping to teach us how all this stuff is working under the covers... new subscriber!
@handlez411
@handlez411 4 ай бұрын
Awesome video! Thank you!
@Bruh_688
@Bruh_688 Ай бұрын
Love you man, thanks for coding and making this tutorial in JavaScript/TypeScript.
@adrienazie
@adrienazie 6 ай бұрын
Thanks for the time and effort you have put into creating this video. Great content and explanation.
@lakinmohapatra
@lakinmohapatra 7 ай бұрын
Very nice explanation. Thanks a lot
@grant_vine
@grant_vine 6 ай бұрын
Best hour and 24 mins spent this week 😊
@abagatelle
@abagatelle 8 ай бұрын
I'm.....overwhelmed! Learn't that it's a very long road. Very pleased I found your excellent channel.
@rikvermeer1325
@rikvermeer1325 10 ай бұрын
Hmmz... finally a good overview on embeddings that is in depth AND understandable I will watch this multiple times
@sevindis
@sevindis 7 ай бұрын
Great content, thank you so much!
@erikmejiass
@erikmejiass 9 ай бұрын
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 💪
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Thanks! Glad it was helpful!
@Blocky007
@Blocky007 7 ай бұрын
amazing and extremely helpful
@JunYamog
@JunYamog 5 ай бұрын
Thanks I made it on the end of the rabbit hole. Interesting to learn that you can do embeddings in a browser.
@amanshrivastava7495
@amanshrivastava7495 5 ай бұрын
Thanks man!!
@browland601
@browland601 9 ай бұрын
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 6 ай бұрын
This is how they tested classification performance in the benchmark mentioned, so you're on the right track
@omijmangukiya8984
@omijmangukiya8984 6 ай бұрын
i suggest using setfit
@khangvutien2538
@khangvutien2538 7 ай бұрын
With this video, you got a new subscriber. Thanks.
@ahmedali-hy9ew
@ahmedali-hy9ew 8 ай бұрын
Keep it up with the great content, really love the way you explain stuff, we want more ai tutorials please.
@comptvlee
@comptvlee 9 ай бұрын
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 9 ай бұрын
I appreciate the kind words. Glad they have been helpful!
@pranjalagnihotri6072
@pranjalagnihotri6072 10 ай бұрын
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❤
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Awesome! Glad it was helpful 😃
@jdkh89
@jdkh89 9 ай бұрын
Wow I learned so much from this. Thank you so much!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Glad it was helpful!
@archiee1337
@archiee1337 8 ай бұрын
Great video, thank you😊
@zeelthumar
@zeelthumar 6 ай бұрын
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
@JustCode39
@JustCode39 4 ай бұрын
this video is amazingly good
@Muennighoff
@Muennighoff 9 ай бұрын
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 9 ай бұрын
That’s amazing Niklas, thanks for the update!
@cklim78
@cklim78 9 ай бұрын
Great! Look forward to the updates especially on the code embeddings task, may I know any targeted date when the updates will be released?
@nelzonmusic
@nelzonmusic 2 ай бұрын
really great video!
@0f897
@0f897 8 ай бұрын
Outstanding content 😀
@shtrumj
@shtrumj Ай бұрын
please more content , more depth, loved it, subscribed.
@jvandenaardweg
@jvandenaardweg 7 ай бұрын
Excellent video! ❤
@SmallTownDev
@SmallTownDev 8 ай бұрын
By far the most informative resource 🚀
@huydh
@huydh 4 ай бұрын
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 🎉😊
@aksh1618
@aksh1618 10 ай бұрын
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 10 ай бұрын
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.
@vitoralves5934
@vitoralves5934 5 ай бұрын
Man ur just a natural teacher, thank you!
@artem-yw8km
@artem-yw8km 7 ай бұрын
cool realy improved inference results
@raphauy
@raphauy 2 ай бұрын
Thank you very much!
@Swanidhi
@Swanidhi 9 ай бұрын
Love the rabbit hole content! Subscribed!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Thanks for the sub!
@LWC
@LWC 10 ай бұрын
Really great video. Thank you for it!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
You bet!
@manishbabbar9969
@manishbabbar9969 10 ай бұрын
Really liked your content. Thanks for sharing such engaging information.
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Thanks, glad it helped!
@afterlife320
@afterlife320 5 ай бұрын
Amazing video 👌🏻🙏🏻
@cesarsanchez5576
@cesarsanchez5576 10 ай бұрын
I've watched just two of your videos and I feel like I've learnt 6 months of ML Engineering. Many many thanks
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
Glad to help!
@IgnoreMyChan
@IgnoreMyChan 8 ай бұрын
I love your 2010-like editing with all the micro-cuts making it very exhausting to watch and listen to. 😂
@danjsy
@danjsy 9 ай бұрын
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 !
@thenextension9160
@thenextension9160 7 ай бұрын
Fantastic thanks
@ninjagaskin
@ninjagaskin 10 ай бұрын
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 10 ай бұрын
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)!
@user-vl4sg2vj8b
@user-vl4sg2vj8b 10 ай бұрын
amazing content man. hats off👏👏
@RabbitHoleSyndrome
@RabbitHoleSyndrome 10 ай бұрын
🙏 Thanks for watching!
@luis96xd
@luis96xd 9 ай бұрын
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
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Glad it helped!
@KelvinWKiger
@KelvinWKiger 7 ай бұрын
Olala! Thank you, thank you... and thank you very much. Take care 🍀
@hasaniqbal233
@hasaniqbal233 10 ай бұрын
Really appreciate you doing these videos using TS and not Python.
@martinp3839
@martinp3839 9 ай бұрын
Excellent! Especially the way you build up the episode from explaining core concepts to a layman..glad I stumbled upon your channel..
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Glad it was helpful!
@martinp3839
@martinp3839 9 ай бұрын
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 9 ай бұрын
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.
@neoblackcyptron
@neoblackcyptron 6 ай бұрын
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.
@alvarobyrne
@alvarobyrne 10 ай бұрын
well done, and thanks for elaborating on various topics, even though the a ha moment has to wait a bit... ooooohm attitude
@gabrielmalek7575
@gabrielmalek7575 8 ай бұрын
that was awesome
@snsa_kscc
@snsa_kscc 10 ай бұрын
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 10 ай бұрын
Appreciate it & thanks for watching! Very excited to see the new possibilities in the TS/JS ecosystem.
@lucamiamiflorida5065
@lucamiamiflorida5065 9 ай бұрын
best video on the topic, thanks!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Glad it was helpful!
@daryladhityahenry
@daryladhityahenry 8 ай бұрын
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!!!!!!!!
@RolandAyala
@RolandAyala 3 ай бұрын
Top their content! Super informative & practical presented in approachable format, Thanks so much! Sub;d.
@aliandiazperez7602
@aliandiazperez7602 9 ай бұрын
Excellent video tutorial and teaching skills!!!!!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 9 ай бұрын
Thank you! Cheers!
@natural2
@natural2 6 ай бұрын
Wow thanks I learned a lot!!
@RabbitHoleSyndrome
@RabbitHoleSyndrome 6 ай бұрын
Glad to hear it!
@sarojregmi200
@sarojregmi200 3 ай бұрын
I think they saw your video and added the sentence transformer label in there.
@drhot69
@drhot69 4 ай бұрын
Excellent tutorial! For anyone using node 20.0.0 or above, this line in two of the three package.json files: "dev": "ts-node --esm src/index.ts", may give you an error. The upgrade to 20.0.0 broke something, this is a known bug. My work-around is: "dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts",
LangChain Explained in 13 Minutes | QuickStart Tutorial for Beginners
12:44
skibidi toilet 73 (part 1)
04:46
DaFuq!?Boom!
Рет қаралды 32 МЛН
Угадайте концовку😂
00:11
Poopigirl
Рет қаралды 4,1 МЛН
ClippyGPT - How I Built Supabase’s OpenAI Doc Search (Embeddings)
41:52
Rabbit Hole Syndrome
Рет қаралды 171 М.
OpenAI Embeddings and Vector Databases Crash Course
18:41
Adrian Twarog
Рет қаралды 355 М.
Build a Python Web App to chat with your datasets using GenAI
4:23
Tech at Worldline
Рет қаралды 15 М.
What is LangChain?
8:08
IBM Technology
Рет қаралды 92 М.
Vectoring Words (Word Embeddings) - Computerphile
16:56
Computerphile
Рет қаралды 272 М.
Don’t Build AI Products The Way Everyone Else Is Doing It
12:52
Steve (Builder.io)
Рет қаралды 333 М.
Fine-tuning Large Language Models (LLMs) | w/ Example Code
28:18
Shaw Talebi
Рет қаралды 209 М.
Vector databases are so hot right now. WTF are they?
3:22
Fireship
Рет қаралды 927 М.
Samsung mobile phone waterproof display. samsung mobile phone digital s23ultra  #shorts
0:15
Как часто вы чистите свой телефон
0:33
KINO KAIF
Рет қаралды 1,5 МЛН
Phone charger explosion
0:43
_vector_
Рет қаралды 24 МЛН
План хакера 🤯 #shorts #фильмы
0:59
BruuHub
Рет қаралды 984 М.
Интел подвинься, ARM уже в ПК!
14:06
PRO Hi-Tech
Рет қаралды 153 М.
Which Phone Unlock Code Will You Choose? 🤔️
0:12
Game9bit
Рет қаралды 6 МЛН