Conditionally enable Two-Stage Reranking
F
Frank Barnhouse
We would like the ability to selectively apply the RAG Enhancement by Reranking based on the content of the conversation.
For example: Our site is an automotive advice and review site. If the conversation is about car maintenance advice then we don't want to enable RAG Enhancement. However, if the conversation involves comparing vehicles, then we would like to enable it.
Adding a component in Workflows to enable/disable RAG Enhancement seems like the logical place to add that control.
Log In
S
Samuel Su
You can have the AI Condition logic with a cheap model to check if the conversation involves comparing vehicles
Then, you have two branches connecting to two AI conversation nodes,
One AI conversation node has the reranking turned on
The other AI conversation node has the reranking turned off.
You can even tailor the AI conversation node prompts for the comparing vehicles case
F
Frank Barnhouse
Samuel Su Wow! I didn't appreciate that conditional routing was possible in the Workflows. That is extremely powerful and has opened my eyes to a number of possibilities. Thank you!