pub struct RagGenerationConfig {
pub query_key: String,
pub context_key: String,
pub response_key: String,
pub system_prompt: Option<String>,
pub max_tokens: Option<usize>,
pub temperature: Option<f32>,
}Expand description
Configuration for RAG generation nodes
Fields§
§query_key: String§context_key: String§response_key: String§system_prompt: Option<String>§max_tokens: Option<usize>§temperature: Option<f32>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 · 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 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