Skip to main content

HypotheticalGenerator

Trait HypotheticalGenerator 

Source
pub trait HypotheticalGenerator: Send + Sync {
    // Required method
    fn generate(&self, query: &str) -> Result<String>;
}
Expand description

Trait for generating hypothetical documents from queries.

Required Methods§

Source

fn generate(&self, query: &str) -> Result<String>

Generate a hypothetical document that would answer the query.

Implementors§