My name is Tracy, you can follow me on Twitter at this dot or on LinkedIn at Tracy S. Lee. I'm on the RxJS core team, a Google Developer Expert for Angular, Microsoft MVP. And then also, I have a consultancy that I started about eight years ago with some friends. And we are a team of about 50 developers 100% remote and worldwide and we are hiring so you can always message me or email jobs at this dot dot co for more information.
I want to talk about rag rag is definitely a hot topic these days. It is called Retrieval Augmented Generation. And basically, you know, everybody's creating these chatbots. But if you want to really actually create something that has a little bit more understanding of what whatever your your use case is, if you if you will. So whether it's you're an electrician, and you need a little bit more information there, or, you know, in my case, I created a React server components chatbot. So the React server components chatbot needs to know a little bit more about React server components. That is a little bit more up to date than just regular chappy chippy chippy in the models, right. So that is what people use rag for, right. And so, Carter Robast is amazing. He's over at Data Stacks. And they he explained this to me once and I really stuck in my head. So when you talk about rag, the generation part is basically Gen AI you're using chappy in your app, that's the rag, the G part of rag.
Augmentation is actually telling AI what it is. And the retrieval part is actually using the vector database and retrieving the relevant data for you. So what I went ahead and did is, so for the retrieval part, right, you need to be able to basically add all your information into a vector database. So the way you do that is just great. You can you can actually use a lot of tools out there. unstructured.io is really amazing, for example, to really quickly and simply add things into a vector database. But what I did was I took all the information, the updated information for React server components, things that were a little bit more up to date than you know, maybe what chat QBD has and said, hey, you know what these blog posts are really relevant. So I want to go ahead and dump these into a vector database for myself. So I don't have time to, again, share the code, but that's okay. So after you run that script, what it does is it scrapes all those different blog posts. And then it goes ahead and adds it and dumps it into a vector database, which we're using data stacks, AstroDB. So you can see all these different little vectors right here. And I'm going to be able to query my database based off of that.
Comments