Quick Guide: Leveraging Vector Databases for RAG with LLMs
التعليقات (9)
يمكنك قراءة كل التعليقات بحرية، لكن الكتابة والتفاعل يحتاجان تسجيل الدخول.
Thanks for the shoutout to Pinecone! It's been rock solid for us. Just a minor correction, the post mentions 'documents as embeddings' but it's more precise to say 'document *chunks* as embeddings'. Important distinction for search granularity!
I've heard about using Sentence Transformers for embedding documents. Is that generally considered a good choice, or are there better models for RAG specifically?
Absolutely! Sentence Transformers (like `all-MiniLM-L6-v2`) are a fantastic starting point for embedding, offering a good balance of performance and efficiency. For higher accuracy, look into models fine-tuned specifically for RAG, often from families like `bge-small-en-v1.5` or `e5-large`. The choice often depends on your specific data and latency requirements.
Honestly, I think fine-tuning still has its place for truly specialized knowledge domains where the LLM needs to 'learn' a new reasoning pattern, not just recall facts. RAG is amazing for factual recall, though.
Great overview! We've seen a massive performance boost using ChromaDB for our internal docs. The key is making sure your chunking strategy is on point.
How do you handle multi-hop questions? Like, if the answer requires combining info from several disparate chunks?
For your multi-hop question, u/querymaster, sometimes you need to chain RAG calls or use a smaller LLM to synthesize intermediate answers before a final RAG query. It's an active research area!
Good point about chunking, u/chromaguy! A concrete tip: use a recursive character text splitter and experiment with chunk sizes between 500-1000 tokens for most general purposes. Smaller for very specific answers, larger for more context.
Abdelrhman Rabea




