Class HyDE

  • All Implemented Interfaces:

    
    public final class HyDE
    
                        

    Hypothetical Document Embedding Used to generate a synthetic document for embedding from the query.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getContext()
      final Integer getWordCount()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HyDE

        HyDE(String context, Integer wordCount)
        Parameters:
        context - the context to use for generating the synthetic document:
        wordCount - the number of words to generate for the synthetic document (default is 50) what the answer should relate to.
      • HyDE

        HyDE(String context)
        Parameters:
        context - the context to use for generating the synthetic document: