OpenAI Embeddings and Vector Databases Crash Course

  Рет қаралды 520,848

Adrian Twarog

Adrian Twarog

Күн бұрын

Пікірлер: 206
@photorealm
@photorealm 9 ай бұрын
That was the first video that actually gave me a understanding of how vector DB's kind of work. Thank you for sharing.
@goldenant9450
@goldenant9450 2 ай бұрын
Key word being, "kind of" 😂😂
@SuperITPRO
@SuperITPRO Жыл бұрын
My ADHD normally overrides my concentration. Your tutorial pace, live coding, and narrative made me complete my 1st Open AI coded app - thank you!
@zzej
@zzej Жыл бұрын
Same
@nicholastroyandersen9505
@nicholastroyandersen9505 Жыл бұрын
Don't use ADHD as an excuse, it ain't no sickness, just personality. Take it and make it your best quality.
@ScherrerMadness
@ScherrerMadness Жыл бұрын
@@nicholastroyandersen9505it’s…. Not a personality, lmfao. It’s a very clear set of learning disabilities centered around working memory, executive function, and tuning out
@davidabellangarrido2056
@davidabellangarrido2056 Жыл бұрын
same and without knowing english
@pauls064
@pauls064 11 ай бұрын
@@nicholastroyandersen9505it’s literally a neurological condition that can be seen on scans and measured… ignorant comment
@aiadvantage
@aiadvantage Жыл бұрын
Super high quality video right here. Good job Adrian
@AdrianTwarog
@AdrianTwarog Жыл бұрын
Hey I've seen your stuff too, it's great, thanks for the nice words!
@MohamadBahri-h3k
@MohamadBahri-h3k Жыл бұрын
I have seen multiple tutorials, this is by far the best and most concise, great work man
@nickfleming3719
@nickfleming3719 Жыл бұрын
That isn't a vector database. It's a relational database with vectors stored on a text column. In practice, you will have thousands of embeddings and performance will tank with this setup
@trevorbaier7072
@trevorbaier7072 Жыл бұрын
What's a more ideal solution for storing vectors?
@brookster7772
@brookster7772 Жыл бұрын
From my investigation, Redis is an excellent vector store to be used in both development and production especially when it’s a local Dockerized instance
@SussyBacca
@SussyBacca Жыл бұрын
Mongodb atlas is awesome for vectors. They have a new vector feature called knnbeta
@ParthSaneHD
@ParthSaneHD Жыл бұрын
Pinecone works too!
@amdenis
@amdenis Жыл бұрын
You are correct, but you know that! It’s indexing is not fast enough for many serious AI projects, and its single threaded architecture does not scale. Under the hood there are many other non-vector legacy issues.
@adamduvick
@adamduvick Жыл бұрын
Let me see if I understand what’s going on here: 1) you have data you want to search semantically 2) you create a vector database capable of storing & querying data semantic search queries 3) you use OpenAI to process your data & convert it to vectors which can stored in your database 4) you store the data along with the OpenAI generated vectors 5) now you can search the data Is that all it is? I thought you were then going leverage this database to give chatgpt “long term memory” ( 0:20 ). What you’ve showed seems nice, but I don’t really see the point since most people/companies who have enough data that would need to be queried in this way would not be able to give it away to OpenAI to process.
@goldenant9450
@goldenant9450 2 ай бұрын
what'd you mean "give it away to OpenAI" is everything shared with OpenAI accessible by the internal team or something? I'm pretty sure you can opt out of using your data to train their AI..at least that's the case with that chatbots.
@FieldMarshalFeels
@FieldMarshalFeels 20 күн бұрын
You just need to code in chat logging that chunks the logs after they exceed the AI's short-term memory. You can also dynamically compress the logs to achieve higher efficiency.
@rasmuspiirtola4397
@rasmuspiirtola4397 Жыл бұрын
Rarely comment, but damn, you did a perfect job - I am at 8:01, haven't watched the video but had to pause and comment - until 8:01, everything was perfect; how you explain concepts and utilize tools ensures that we understand the concept in practice with ease! Great job, continue making videos; you should do consulting if you don't already do so. It's easy money with little hours with your skills and knowledge!
@nickkondoori7550
@nickkondoori7550 Жыл бұрын
Incredible teaching skills. First time ever, I loved someone who can teach "ME" the way I always wanted. Thousand thumbs up Adrian!!
@codinginflow
@codinginflow Жыл бұрын
This was a great overview Adrian!
@CodexCommunity
@CodexCommunity Жыл бұрын
This is the best video on openai embeddings I have ever seen, I am also a bit biased!
@tech.bharat18
@tech.bharat18 5 ай бұрын
This is by far the most easiest & concise explanation. Thanks for creating this video
@anrk97
@anrk97 Жыл бұрын
Love your thumbnails. Keeps getting better with each video 👍
@AdrianTwarog
@AdrianTwarog Жыл бұрын
Thanks, I try to make them as clear to what they video represents as possible!
@krisograbek
@krisograbek Жыл бұрын
Adrian, your channel is a gem! I love the way you explain complex topics and the pace of your videos! Greetings from Poland!
@LeoCB
@LeoCB Жыл бұрын
I just bought 2 Udemy courses, and after 5 hours, none of them talk so well about this. I appreciate it, and I will buy your book. Thanks for your content.
@brookster7772
@brookster7772 Жыл бұрын
Bare metal, removing all higher level obstructions going right down to the core. I love it the best understanding of what embedding’s earlier that I have seen great job.
@MaverickCoder-mz6hp
@MaverickCoder-mz6hp 6 ай бұрын
Nice high quality video with clear explanation of concepts. This video is engaging for learners. I would say one of the best videos out there on vector embeddings. Good Job Adrian
@RajShekarsdreamzzz
@RajShekarsdreamzzz Жыл бұрын
Very Good session Adrain... your way of teaching is keeping the people glued... Keep it up
@cryarchy
@cryarchy 21 күн бұрын
Thank you, @AdrianTwarog. I wanted to learn how to store and retrieve embeddings in a vector database. This video helped me with that. The missing bit is how to use the retrieved embeddings for resource-augmented generation.
@LindsayHiebert
@LindsayHiebert Жыл бұрын
Excellent overview! Very concise, clear and relevant! Great job! Thank you Adrian! 😊
@AbhinavKumar-jt8kx
@AbhinavKumar-jt8kx 5 ай бұрын
This is awesome, perfect video for non-beginner developers to quickly grasp.
@Danimsalinas
@Danimsalinas 3 ай бұрын
Omg, thanks for this video, very straight forward and easy to understand. Thanks!
@Glow0110
@Glow0110 Жыл бұрын
Would be great to see a follow up video of practical applications using this.
@atursams5501
@atursams5501 Жыл бұрын
The practical application are varied: sentiment analysis term search Classification
@pajisounds
@pajisounds Жыл бұрын
Nice video, it would have been nice with a demonstration at the end or intro, keep up the good work.
@AdrianTwarog
@AdrianTwarog Жыл бұрын
Oh good suggestion, I’ll do that next time!!
@dipayanroy964
@dipayanroy964 8 ай бұрын
I wish everyone could have presented like you, simply Super. Looking forward for more in similar way
@coinexponent1884
@coinexponent1884 Жыл бұрын
Learn vector embeddings using first principles. Always engaging, and very rewarding for the learner. Thank you!
@andrey20111988
@andrey20111988 7 ай бұрын
Also you can use in postman "Test", which can help you create a script to create a string with requested input and response data. Automate it! (If you need)
@karthikpillai420
@karthikpillai420 Ай бұрын
Good video on the basics of creating embeddings & vector DB
@ravindrasingh2411
@ravindrasingh2411 10 ай бұрын
Adrian, this is beautifully explained. Absolutely loved it :)
@phil97n
@phil97n Жыл бұрын
Awesome thanks. Been studying calculus and linear algebra before I dive deep into AI. I will definitely be dealing with vector databases very soon and looking forward to it.
@oscargalvez7
@oscargalvez7 Жыл бұрын
Amazing tutorial! The way you explain is so easy and understandable!
@saik6730
@saik6730 Жыл бұрын
Best AI video ever . Made it easy to understand with 2 simple concepts . Thanks man!
@karthikg752
@karthikg752 Жыл бұрын
The voice recording and explanation is really clear - surprising how tone and voice plays a major role in understanding. Was watching another video which was equally good but somehow the slang and recording made it a bit difficult to understand. Thanks
@araujoao
@araujoao 3 ай бұрын
Thanks for Sharing. This was a great video that clearly illustrate vectorsdb, embeddings, and searching.
@JeremyArtero
@JeremyArtero Жыл бұрын
This course is gold! Thanks! I have done similar steps on Astra db and it was smooth
@daygo619ca
@daygo619ca Жыл бұрын
This tutorial was incredible - completely glued to it
@AmanBansil
@AmanBansil 10 ай бұрын
Absolutely LOVE this. you're so clear and concise.
@munishtyro
@munishtyro 7 ай бұрын
Simple, concise, and has everything in it. Thank You
@chrismalingshu
@chrismalingshu Жыл бұрын
[Question] When input hello earth, "Hello World" scored 0.89, meanwhile "OpenAI Vectors and Embeedings are Easy!" scored 0.74. Which is quite close to the top rank text. But syntactically first and second returned text are very different. Somehow I expect the second text might scored 0.5 and below. Could you please share your thoughts on this Adrian? Thank you!
@daffertube
@daffertube Жыл бұрын
You would need to ask someone who built the transformers at openai.
@curtisblake261
@curtisblake261 Жыл бұрын
I like this video and I don't mind all the upselling. My only complaint is that if I pause the video for too long, it automatically sends me to another video in the series, which makes it hard to get back to where I was. You might assume it is user error, but it isn't. The automatic transferal and loss of context happens constantly with this KZbin video, and I've never had the problem with any other KZbin tutorial. I'm fine with the monetizing and upselling since it helps reward the content creator, I just wish it wouldn't keep making me lose my place in the tutorial.
@Art-kz6zf
@Art-kz6zf Жыл бұрын
How efficient is the vector search if you need to go through all of the records every time you search? Shouldn't there be some dedicated field type for embeddings other than blob?
@GenZManhood
@GenZManhood Жыл бұрын
I get this message when I run the API. Do you need to pay OpenAI for it to work? Thanks! "error": {"message": "You exceeded your current quota, please check your plan and billing details.",
@יסמיןאיילין
@יסמיןאיילין Жыл бұрын
Me too, you found a solution?
@meirgoldenberg5638
@meirgoldenberg5638 Жыл бұрын
How in the world did it get 0.74 score (which pretty high on the scale for 0 to 1!) for the similarity of "Hello Earth" and "OpenAI vectors and embeddings are easy"? Is there anything in common between the two?
@abijithpradeep7478
@abijithpradeep7478 Жыл бұрын
For those who already had an OpenAi account and you are facing an error while posting the HTTP request, its because your free credit has expired. You will have to add a payment method or createa new account to get free credits agin and then everything will work fine according to this tutorial.
@ZaidKhanPathan
@ZaidKhanPathan Жыл бұрын
Wow! Easy, clear and to the point.
@kfliden
@kfliden 8 ай бұрын
Wow, thanks I'm finally starting to get embeddings!
@FahadKiani1
@FahadKiani1 Жыл бұрын
Will you create a second part of this video where PDF's are uploaded and then analyzed?
@ismailm123
@ismailm123 3 ай бұрын
Brilliant super simple and very easy to understand.
@robertcormia7970
@robertcormia7970 Жыл бұрын
Well done, succinct, and excellent explainations of complex topics.
@rkjellbe
@rkjellbe Жыл бұрын
Finally, found a video with the appropriate detail. For me! 😊 Thank you!
@mohammadbarzegari8737
@mohammadbarzegari8737 Жыл бұрын
Perfect learning ❤🎉 master of learning ❤❤❤❤
@cmdrls212
@cmdrls212 7 ай бұрын
This is great. I had to learn this in a crunch and I grok it now.
@adavis912
@adavis912 11 ай бұрын
Great tutorial!!! I will be buying your book.
@grantomohundro3298
@grantomohundro3298 3 ай бұрын
Great tutorial man! thank you!
@satanrasool1802
@satanrasool1802 Жыл бұрын
Love it.. it was far simpler than I thought..
@chrislannon
@chrislannon 11 ай бұрын
Nice work! Thanks so much for this awesome demo.
@EffectiveMuscle
@EffectiveMuscle 6 ай бұрын
2:30 so he's saying they interviewed the other 2 criminals but havent decided to charge them... So only the homeowner is being charged. Am I hearing him right?
@satish1012
@satish1012 4 ай бұрын
Great So bascially if i have create LLM for my company who has multiple documents , content i need to do it 1. Pass all the documents and get Embeddings from OPEN AI 2. Store all the Embeddings in a DB 3. Create an app to to search vector DB But my question is how it can think and reason. The above approach has great for search capability but how it think like Summaration , comprehension etc
@sany2k8
@sany2k8 Жыл бұрын
Great content 👍👍👍, waiting for more OpenAI, AI related content
@karsonkalt7607
@karsonkalt7607 Жыл бұрын
Fantastic tutorial and explanation!!
@sunnysk43
@sunnysk43 Жыл бұрын
Absolutely amazing! Thank you so much for your work!
@e-Course.
@e-Course. 2 ай бұрын
Very interesting video , thank you
@coding-master-shayan
@coding-master-shayan Жыл бұрын
How can I train my own ai using tensorflow to generate I images and text
@AdrianTwarog
@AdrianTwarog Жыл бұрын
hmmm, maybe I need to make a video on this?!
@coding-master-shayan
@coding-master-shayan Жыл бұрын
@@AdrianTwarog please sir and sorry for late
@fkxfkx
@fkxfkx Жыл бұрын
Bought the book. It ended on page 54, is there anything after 54 to 58? Last example was open ai fine tuning. It leaves the ft up on open ai site. How long will it be available there? Can it be brought down locally and be used in the future as local in combination with cloud model?
@AdrianTwarog
@AdrianTwarog Жыл бұрын
I’ll double check, and any updates will automatically be enabled on Gumroad!
@Ricocase
@Ricocase Жыл бұрын
​@@AdrianTwaroghow to automate text importation with sql? Must one enter each text blob manually?
@nadershalabi6241
@nadershalabi6241 7 ай бұрын
Thank you! Great walk through
@SimonCicero-g8n
@SimonCicero-g8n Жыл бұрын
Perfect explaination!
@gman2036
@gman2036 11 ай бұрын
Loved this tutorial Adrian, very straight forward and it worked the first time not like some others I've tried. Now for my question. I'm seeing this on February 2024. I did not know CHATGPT, BARD and those other AI apps until they hit the common pool that I must swim in. I take it that vectoring documents has been going on for awhile, outside of the math world. I knew of vectoring back from college in linear algebra. If this is the case, what I'm trying to do will not be new. I'm trying to vectorize my documents in order to practice doing this kind of work. So, are there IT companies out there doing this type of work already and can you name a few? How far have they gotten? Has someone already done the library of Congress for instance?
@MDMUNIFHASAN-sr2jk
@MDMUNIFHASAN-sr2jk 2 ай бұрын
nice tutorial, i have a question for code completion which extension you use?
@MikevanDam-j9g
@MikevanDam-j9g 7 ай бұрын
This tutorial is well explained. Thanks for that. But could you explain how to do this on scale? Is it possible to have a no code tool that companies can use to store their data in a vector database? Also, retrieving this info later? It seems that there must be easier solutions for this right? (while also keeping it safe to use).
@pranavkm4513
@pranavkm4513 Жыл бұрын
wow great video sir. Helped a lot. may i know what extension is being used in 16:40 ?
@AdrianTwarog
@AdrianTwarog Жыл бұрын
GitHub Copilot
@m67esteban
@m67esteban 2 ай бұрын
thank you very much! super useful!
@RiazSyed-n1x
@RiazSyed-n1x Жыл бұрын
great explanation ! thanks !!
@ewhite_dipi
@ewhite_dipi Жыл бұрын
what are the prerequisites to understand the content in this video? And where can I learn them?
@Dydent10
@Dydent10 5 ай бұрын
Brilliant stuff!
@BryanChance
@BryanChance Жыл бұрын
Does the chuck size have an affect on the quality or accuracy of the search result? Let's say I split a document into words AND in 200 word chucks. The vector results are stored in a vector db.
@demetriusmds
@demetriusmds Жыл бұрын
Excellent. Thank you. Helped a lot.
@MRGCProductions20996
@MRGCProductions20996 10 ай бұрын
isnt calculating the modulus of the subtraction of the vectors a more accurate way to find similarities?
@pablochacon7641
@pablochacon7641 Жыл бұрын
Very interesting video, but what are the prerequisites to understand & actually implement this ?
@xspydazx
@xspydazx 8 ай бұрын
yes but how do you save a vector store ? ie export it to json for upload or finetuning into the main lm ?
@nrusimha11
@nrusimha11 Жыл бұрын
Crisp and to the point, thank you. Can I ask how you made the slides like the one at 0:52?
@Joshua.Medellin
@Joshua.Medellin Жыл бұрын
I'm a little confused.. If I created embeddings and which I'm assuming is essentially training the openai model on a specific topic for my company. Would it be able to answer questions only on the specific topic it was trained for?
@aaronster
@aaronster 2 ай бұрын
I have followed along to 15 minutes so far. How come the scores are all fairly high, even when the search terms are not present in the database? My database included a quote from HHGG about the important of towels to hitch hikers. There were also two other rows of data containing no mention of towels. When I searched for the word "towel" the top match was 85% because it was the quote that contained the towel reference. Great! But I don't understand why the other scores were 75% and 73% though there was no mention of towels. If this was a traditional text search, those rows would not have been returned at all.
@Aayush-k3d
@Aayush-k3d 5 ай бұрын
Very well explained
@omangramoswaane2211
@omangramoswaane2211 Жыл бұрын
Nice video. I love your work.
@mokiloke
@mokiloke Жыл бұрын
Mine seemed to only come up with a paid postman version. Maybe its based on location?
@AdrianTwarog
@AdrianTwarog Жыл бұрын
Under downloads you can do so freely!
@joostschuur
@joostschuur Жыл бұрын
How would I go about weighing the results by other meta data? Say I have a bunch of videos, and I'm searching the title/description, but want to give some amount of preference to newer videos too.
@BikashKumar-pz8hc
@BikashKumar-pz8hc 5 ай бұрын
How do you interact with non text, like images content on a document?
@KlrStng
@KlrStng Жыл бұрын
Does your book explain what kind of database that Single Store is using, and what their proprietary function "json_array_pack" is actually doing? I would like to try this out but don't want to use a service like Single Store as I prefer to just use an AWS RDS database instead (or anything that I can have full control over, or even host myself), but that function is not a real SQL function and I don't understand exactly what is going on in the background here. It looks like the Single Store function is doing some kind of encrypting of the json array data, but it's unclear in their documentation. On a different note, is converting text to vector data more efficient and more accurate for searching than something like a simple SQL "like" query, or fulltext searching? How about compared to something like SphinxSearch or AWS Elastisearch?
@defaultdefault812
@defaultdefault812 Жыл бұрын
Well done, Langchain already exists...
@noubgaemer1044
@noubgaemer1044 Жыл бұрын
thanks for the tutorial can we use our own LLM like private GPT or Text-generation Web UI instead of OPENAI
@matickovac
@matickovac 8 ай бұрын
Great work presenting this! Do you happen to know how similar or different this is from what Elasticsearch does when performing full-text search?
@pazhani008
@pazhani008 10 ай бұрын
how does SingleStore know the embeddings returned from OpenAI and searches it correctly in its vector db?
@atursams5501
@atursams5501 Жыл бұрын
Great work! How do you make these nice presentations with the fancy arrows?
@rafaelmartinsdecastro7641
@rafaelmartinsdecastro7641 Жыл бұрын
This is great stuff, thanks.
@contactbhasker7483
@contactbhasker7483 Жыл бұрын
dot_product is a function offered by this database for vector searching, ranking etc.. ?
@mohamadchahin3040
@mohamadchahin3040 Жыл бұрын
Bro do your research first before saying only open ai has a great way to do embeddings theres a million libraries that exactly do that from sbert to fast text to glove etc... embeddings are an old concept
@PeterAdiSaputro
@PeterAdiSaputro Жыл бұрын
In the past, I learned Support Vector Machines for doing classification. At that time, I struggled to learn the concept, although I finally was able to implement it into a program using codes made by another party. The introduction of this video suddenly revived the memory and helped me better understand the concept of SVMs that I learned years ago. Is Postman completely free and can be used without any restrictions or limitations ? Is Single Store also completely free without any restrictions or limitations ?
@edoson01
@edoson01 Жыл бұрын
Blows my mind you've spent 18m talking about the How and 30sec about the why and what.
@Ricocase
@Ricocase Жыл бұрын
Cool course. How does one connect it to a basic website?
@sivakumarkalaiselvan6831
@sivakumarkalaiselvan6831 Жыл бұрын
Hi Bro, What is the extension u used in the vs code for the code suggestions?
@KJB-Man
@KJB-Man Жыл бұрын
OK, it is a good video on using OpenAI to create embedding via an API. But lets say, next week. Open AI's building are destroyed by a meteor! Now, I still want to create embeddings on my dev server. Is there a software I can download and run locally that I can use until a meteor crashed on my house?
How to Improve LLMs with RAG (Overview + Python Code)
21:41
Shaw Talebi
Рет қаралды 89 М.
How I built an AI Teacher with Vector Databases and ChatGPT
13:43
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
How to integrate OpenAI GPT3 with a Databases - Crash Course
16:49
Adrian Twarog
Рет қаралды 303 М.
$0 Embeddings (OpenAI vs. free & open source)
1:24:42
Rabbit Hole Syndrome
Рет қаралды 272 М.
Run ALL Your AI Locally in Minutes (LLMs, RAG, and more)
20:19
Cole Medin
Рет қаралды 324 М.
LangChain Explained in 13 Minutes | QuickStart Tutorial for Beginners
12:44
Vector Databases simply explained! (Embeddings & Indexes)
4:23
AssemblyAI
Рет қаралды 373 М.
What are AI Agents?
12:29
IBM Technology
Рет қаралды 983 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН