Files
langchain/templates/rag-fusion
2023-10-30 13:18:16 -07:00
..
2023-10-25 18:47:42 -07:00
2023-10-29 15:50:09 -07:00
2023-10-25 18:47:42 -07:00
2023-10-25 18:47:42 -07:00

RAG Fusion

Re-implemented from this GitHub repo, all credit to original author

RAG-Fusion, a search methodology that aims to bridge the gap between traditional search paradigms and the multifaceted dimensions of human queries. Inspired by the capabilities of Retrieval Augmented Generation (RAG), this project goes a step further by employing multiple query generation and Reciprocal Rank Fusion to re-rank search results.

Environment variables

You need to define the following environment variable

OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
PINECONE_API_KEY=<YOUR_PINECONE_API_KEY>
PINECONE_ENVIRONMENT=<YOUR_PINECONE_INDEX>
PINECONE_INDEX=<YOUR_PINECONE_INDEX>