Implement Query Expansion System with Comprehensive Testing
HYPERXD
02955c8
- Added `query_expansion_examples.py` to demonstrate practical usage of the Query Expansion system, showcasing various expansion strategies and their outputs.
- Created `test_query_expansion.py` to provide a comprehensive test suite for all components of the Query Expansion system, including QueryAnalyzer, QueryRephraser, MultiQueryExpander, MultiHopReasoner, and FallbackStrategies.
- Developed `utils/query_expansion.py` containing the core logic for query analysis, rephrasing, expansion, and fallback strategies, enhancing retrieval quality in the CogniChat RAG application.
- Included detailed examples and testing scenarios to ensure robust functionality and integration within the application.
feat: enhance RAG system for complex documents with improved chunking, retrieval, and prompting strategies