pub struct HydeConfig {
pub num_documents: usize,
pub temperature: f32,
pub max_tokens: usize,
pub combine_with_query: bool,
}Expand description
HyDE (Hypothetical Document Embeddings) configuration
Fields§
§num_documents: usizeNumber of hypothetical documents to generate
temperature: f32Temperature for document generation
max_tokens: usizeMaximum tokens for generated documents
combine_with_query: boolWhether to combine hypothetical with original query
Trait Implementations§
Source§impl Clone for HydeConfig
impl Clone for HydeConfig
Source§fn clone(&self) -> HydeConfig
fn clone(&self) -> HydeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HydeConfig
impl Debug for HydeConfig
Source§impl Default for HydeConfig
impl Default for HydeConfig
Source§impl<'de> Deserialize<'de> for HydeConfig
impl<'de> Deserialize<'de> for HydeConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HydeConfig
impl RefUnwindSafe for HydeConfig
impl Send for HydeConfig
impl Sync for HydeConfig
impl Unpin for HydeConfig
impl UnwindSafe for HydeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more