Workflows
Rag with web search
Create an advanced RAG workflow with web search capabilities
Follow the instructions below to create the agentic RAG workflow shown above, which includes some advanced capabilities such as:
- user intention detection - the agent can detect if the user wants to activate the web search tool to look for information not present in the documents;
- dynamic chunk retrieval - the number of retrieved chunks is not fixed, but determined dynamically using the reranker’s relevance scores and the user-provided
relevance_score_threshold
; - web search - the agent can search the web for more information if needed.
- Add your API Keys to your environment variables
Check our .env.example
file to see the possible environment variables you can configure. Quivr supports APIs from Anthropic, OpenAI, and Mistral. It also supports local models using Ollama.
- Create the YAML file
rag_with_web_search_workflow.yaml
and copy the following content in it
- Create a Brain with the default configuration
- Launch a Chat
- You are now all set up to talk with your brain and test different retrieval strategies by simply changing the configuration file!