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
Best Codes

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
Best Codes

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
Best Codes

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

Very informative. Thanks you

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
 
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
 
niharikaa profile image
Niharika Goulikar

Nice article!

Collapse
 
rohan_sharma profile image
Rohan Sharma

Thanks for reading!