HyDE

data class HyDE constructor(val context: String, val wordCount: Int = 50)

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

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. For example: "The history of the Roman Empire."

Constructors

Link copied to clipboard
constructor(context: String, wordCount: Int = 50)

Properties

Link copied to clipboard
Link copied to clipboard
val wordCount: Int = 50