DEV Community

Cover image for RAG Simplified!! 🐣

RAG Simplified!! 🐣

Rohan Sharma on September 14, 2024

Hii Hiiiii! šŸ‘‹ Are you stuck between AI and AI?? I'm too! But we have to go with the flow else we won't be able to last our impact! This blog is a...
Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

Share your thoughts and doubts here.

Also, don't forget to Star the awesome LLMWare repo

Collapse
Ā 
best_codes profile image
BestCodes •

Nice article! I've written my own codes for this, running models locally. I used the nomic-embed-text-v1.5 model, found here:
huggingface.co/nomic-ai/nomic-embe...

I wrote a Python script where my folder was indexed (converted to a text embedding vector database by the model), then GPT4o (or a locally running model) could use tool calling to input something specific and get relevant parts of the output. For large folders; it was a bit slow sometimes, but it worked great!

Basically, the point was to let an AI chat model be able to summarize gigantic files or entire folders on my computer for me.

I think I'm going to open source my project soon, since I used all open-source models (GPT4o is optional) to create it.

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

That's so great... The downloads are 553,239. You're really amazing. I suggest you join the llmware discord, you'll get a lot of great stuff there! The power of llmware is more based on the SSM's (small specialized models), you can read the documentation or Intro to llmware for more details!

Also, Making your project OS is great thinking if you're thinking to maximize its extent!

Collapse
Ā 
best_codes profile image
BestCodes •

Oh, just to be clear — I did not create that model, I only used it! šŸ˜…

I've tried a few things like LLMWare, but I usually prefer just to make my own thing, so I know how everything works. Of course, I use libraries for lots of my AI things, but mostly just the Hugging Face transformers library and a couple others.

Thread Thread
Ā 
rohan_sharma profile image
Rohan Sharma •

Oh, just to be clear — I did not create that model, I only used it! šŸ˜…
Sorry, I misunderstood it! Nevermind, you have the capability to build one.

LLMWare is too on hugging face though šŸ˜‰

Thread Thread
Ā 
best_codes profile image
BestCodes •

I'll check it out if I come across it :D

Thread Thread
Ā 
rohan_sharma profile image
Rohan Sharma •

Great!

Collapse
Ā 
arnavk-09 profile image
ArnavK-09 •

dam dam bro great

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

Haha.. Thanks

Collapse
Ā 
suraj_kumar_79ebbb6e3724f profile image
SuRaj KuMar • • Edited

Very informative.....!!!!

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

You welcome.. Thanks for reading!

Collapse
Ā 
jennie_py profile image
Priya Yadav •

āœØāœØšŸ’ÆšŸ’Æ

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

šŸ˜‰

Collapse
Ā 
niharikaa profile image
Niharika Goulikar •

Nice article!

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

Thanks for reading!

Collapse
Ā 
svamshi profile image
s-vamshi •

Great article and consistency toošŸ˜‰

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma • • Edited

Thanks for the read Vamshi

Collapse
Ā 
harshika_982e868132d9ddba profile image
Harshika •

Nice information

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

I'm glad that you liked it!

Collapse
Ā 
winzod4ai profile image
Winzod AI •

Hey folks, came across this post and thought it might be helpful for you! Check out this comprehensive guide to RAG in AI - Rag In AI.

Collapse
Ā 
rohan_sharma profile image
Rohan Sharma •

Thanks for sharing this!