Interface QueryTransformer
-
- All Implemented Interfaces:
public interface QueryTransformerTransforms the given Query into one or multiple Querys. The goal is to enhance retrieval quality by modifying or expanding the original Query. Some known approaches to improve retrieval include:
Additional details can be found here.- Query compression (see CompressingQueryTransformer) - Query expansion (see ExpandingQueryTransformer) - Query re-writing - Step-back prompting - Hypothetical document embeddings (HyDE)