What encoders are the most popular for documents in a RAG system
- User
What encoders are the most popular for documents in a RAG system
Assistant
For document encoding in RAG (Retrieval Augmented Generation) systems, several encoders have emerged as popular choices:
- Sentence Transformers
- all-MiniLM-L6-v2: Fast and efficient, good balance of performance and speed
- all-mpnet-base-v2: Higher quality but slower than MiniLM
- multi-qa-mpnet-base-dot-v1: Specifically optimized for question-answering
- OpenAI Embeddings
- text-embedding-3-small: Newer model with good performance
- text-embedding-3-large: Higher quality but more expensive
- text-embedding-ada-002: Still widely used though older
- BGE Embeddings
- bge-large-en: Strong performance on English text
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.