Class DefaultQueryTransformer

  • All Implemented Interfaces:
    dev.langchain4j.rag.query.transformer.QueryTransformer

    
    public class DefaultQueryTransformer
     implements QueryTransformer
                        

    Default implementation of QueryTransformer intended to be suitable for the majority of use cases. It's important to note that while efforts will be made to avoid breaking changes, the default behavior of this class may be updated in the future if it's found that the current behavior does not adequately serve the majority of use cases. Such changes would be made to benefit both current and future users. This implementation simply returns the provided Query without any transformation.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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
    • Constructor Detail

      • DefaultQueryTransformer

        DefaultQueryTransformer()