RAG Fusion #1807
Replies: 2 comments
-
You can accomplish this fairly easily using multiple chains and a flow that uses Custom Tool with Conversational Retrieval Agent. For example, you'd create a flow that performs a keyword/phrase expansion and then chain the output of that to another LLM chain that condenses the phrases by removing similar phrases. Then call that chain from a custom tool that takes that input and passes that into your database or API. The output of the tool is then used by the Conversational Retrieval Agent to craft the RAG fusion result. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll have a look at that. In the meantime I got something working using the "VectorStore to Document" document loader. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to create a "RAG Fusion" workflow in Flowise? i.e. take a query, use the LLM to generate multiple similar queries, submit all those queries to the vector database, re-rank/de-dupe the returned chunks and then send what remains to the LLM to generate an answer? As per https://github.com/Raudaschl/rag-fusion and https://arxiv.org/pdf/2402.03367.pdf
Beta Was this translation helpful? Give feedback.
All reactions