Hybrid RAG
The Hybrid RAG approach combines both Vector RAG and Graph RAG methods to leverage their respective strengths.
In this approach:
- A query is processed by both the vector and graph components.
- The vector component retrieves semantically similar passages from Qdrant.
- The graph component retrieves relevant structured information from Neo4j.
- Results from both are combined and sent to the Language Model (LLM) for final answer generation.
This hybrid approach allows for comprehensive analysis of legal documents, capturing both semantic nuances and structured relationships. It enables flexible querying for both unstructured aspects of legal information and structured entity relationships.
Design Diagram
