Adaptive RAG automates query classification and retrieval strategies to deliver tailored responses. It categorizes user queries into Factual, Analytical, Opinion, or Contextual types, enhancing information retrieval from a Qdrant vector store. This workflow improves response relevance and accuracy, ensuring users receive precise answers based on their specific needs.
user_query
, chat_memory_key
, and vector_store_id
.Combined Fields
node standardizes the inputs for further processing.Query Classification
node classifies the user_query
into one of four categories using a Google Gemini agent.Switch
node directs the flow based on the classification result.Query Classification
node to include additional categories or change existing ones.Factual Strategy
, Analytical Strategy
).Retrieve Documents from Vector Store
node to query different collections or adjust the number of top documents retrieved.Respond to Webhook
node.