Retrieval-Augmented Generation (RAG) is the process of optimizing the output of a large language model, so it references an authoritative knowledge base outside of its training data sources before generating a response. Large Language Models (LLM) are trained on vast volumes of data and use billions of parameters to generate original output for tasks like answering questions, translating languages, and completing sentences. RAG extends the already powerful capabilities of LLMs to specific domains or an organization’s internal knowledge base, all without the need to retrain the model. It is a cost-effective approach to improving LLM output so it remains relevant, accurate, and useful in various contexts.

ToolDescription
RAGASEvaluation framework for your Retrieval Augmented Generation (RAG) pipelines
RAGEIoTools that helps you selecting the best RAG-based
RAGFlowRAG engine based on deep document understanding
VerbaRetrieval Augmented Generation (RAG) chatbot powered by Weaviate
kotaemonAn open-source RAG-based tool for chatting with your documents.
LEANNA Low-Storage Vector Index

Articles/Talks

# Reciprocal Rank Fusion (RRF)

Reciprocal Rank Fusion (RRF) is a technique for combining the ranks of multiple search result lists to produce a single, unified ranking. Developed in collaboration with the University of Waterloo (CAN) and Google, RRF, in the words of its authors, “yields better results than any individual system, and better results than standard” reranking methods.

By combining ranks from different queries, we increase the chances that the most relevant documents will appear at the top of the final list. RRF is particularly effective because it doesn’t rely on the absolute scores assigned by the search engine but rather on the relative ranks, making it well-suited for combining results from queries that might have different scales or distributions of scores.

Advance RAG

HyDE

Enter Hypothetical Document Embeddings (HyDE), an innovative approach detailed in the paper titled Precise Zero-Shot Dense Retrieval without Relevance Labels.

The core hypothesis of HyDE is simple yet profound: when conducting a document search, using hypothetical answers might yield superior results compared to using the question itself.

RAG vs Finetuning