pub struct TextSample {
pub recipe: String,
pub chunk: RecordChunk,
pub weight: f32,
pub instruction: Option<String>,
}Expand description
A single text sample (chunk + weight).
Fields§
§recipe: StringRecipe name used to generate this sample.
chunk: RecordChunkChunk payload used for this text sample.
weight: f32Training weight for this sample.
instruction: Option<String>Optional instruction/prompt hint for this sample.
Trait Implementations§
Source§impl Clone for TextSample
impl Clone for TextSample
Source§fn clone(&self) -> TextSample
fn clone(&self) -> TextSample
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 TextSample
impl Debug for TextSample
Source§impl<'de> Deserialize<'de> for TextSample
impl<'de> Deserialize<'de> for TextSample
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 TextSample
impl RefUnwindSafe for TextSample
impl Send for TextSample
impl Sync for TextSample
impl Unpin for TextSample
impl UnsafeUnpin for TextSample
impl UnwindSafe for TextSample
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