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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl HypotheticalGenerator for AnthropicHypotheticalGenerator
Available on crate feature
eval only.