GPT Index v0.4.4 introduces some exciting enhancements to our query capabilities to better interface with our data structures.
- Added a QueryBundle abstraction allowing you to separate the query string from the string that's used for embedding lookup.
- Added a QueryTransform class allowing us to transform queries within our data structures - first implementation is with HyDE
Some examples are given here: https://github.com/jerryjliu/gpt_index/blob/main/examples/query_transformations/HyDEQueryTransformDemo.ipynb