Interface QueryTransformer

  • All Implemented Interfaces:

    
    public interface QueryTransformer
    
                        

    Transforms 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:

    - Query compression (see CompressingQueryTransformer)
    - Query expansion (see ExpandingQueryTransformer)
    - Query re-writing
    - Step-back prompting
    - Hypothetical document embeddings (HyDE)
    
    Additional details can be found here.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Collection<Query> transform(Query query) Transforms the given Query into one or multiple Querys.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait