pub struct Windows {
pub overlap_tokens: u64,
pub max_windows: u64,
}Expand description
EMB-E2: how a text longer than the model reads is embedded whole.
Each window holds at most the model’s content tokens; consecutive windows
share at least overlap_tokens; a text needing more than max_windows is
refused windows_over_cap. No window is ever truncated.
Fields§
§overlap_tokens: u64§max_windows: u64Trait Implementations§
impl Copy for Windows
Source§impl<'de> Deserialize<'de> for Windows
impl<'de> Deserialize<'de> for Windows
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
impl Eq for Windows
impl StructuralPartialEq for Windows
Auto Trait Implementations§
impl Freeze for Windows
impl RefUnwindSafe for Windows
impl Send for Windows
impl Sync for Windows
impl Unpin for Windows
impl UnsafeUnpin for Windows
impl UnwindSafe for Windows
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