pub struct RagGenerationConfig {
pub max_context_tokens: usize,
pub model: Option<String>,
pub temperature: Option<f32>,
pub max_output_tokens: Option<usize>,
pub stream: bool,
}Expand description
Generation parameters for the LLM.
Fields§
§max_context_tokens: usizeMaximum context tokens for generation.
model: Option<String>Model identifier (e.g. “gpt-4o”, “claude-3”).
temperature: Option<f32>Temperature for sampling (0.0-1.0).
max_output_tokens: Option<usize>Maximum output tokens.
stream: boolWhether to stream the generation.
Trait Implementations§
Source§impl Clone for RagGenerationConfig
impl Clone for RagGenerationConfig
Source§fn clone(&self) -> RagGenerationConfig
fn clone(&self) -> RagGenerationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RagGenerationConfig
impl Debug for RagGenerationConfig
Source§impl Default for RagGenerationConfig
impl Default for RagGenerationConfig
Source§impl<'de> Deserialize<'de> for RagGenerationConfig
impl<'de> Deserialize<'de> for RagGenerationConfig
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 RagGenerationConfig
impl RefUnwindSafe for RagGenerationConfig
impl Send for RagGenerationConfig
impl Sync for RagGenerationConfig
impl Unpin for RagGenerationConfig
impl UnsafeUnpin for RagGenerationConfig
impl UnwindSafe for RagGenerationConfig
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