Package com.embabel.agent.rag
Class HyDE
-
- All Implemented Interfaces:
public final class HyDEHypothetical Document Embedding Used to generate a synthetic document for embedding from the query.
-
-
Method Summary
Modifier and Type Method Description final StringgetContext()final IntegergetWordCount()-
-
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:
-
-
Method Detail
-
getContext
final String getContext()
-
getWordCount
final Integer getWordCount()
-
-
-
-