pub struct SimilarCodeGenerationParameters {
pub dtype: String,
pub pooling: String,
pub normalized: bool,
pub batch_size: u32,
pub max_tokens: u32,
pub parameter_sha256: String,
}Expand description
Parameters that materially affect generated embeddings and scores.
Fields§
§dtype: StringNumeric representation used for model inference.
pooling: StringPooling strategy applied to model output.
normalized: boolWhether vectors were normalized before comparison.
batch_size: u32Maximum inference batch size used by the run.
max_tokens: u32Maximum tokenizer length before deterministic truncation.
parameter_sha256: StringDigest over the complete effective generation parameter set.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SimilarCodeGenerationParameters
impl<'de> Deserialize<'de> for SimilarCodeGenerationParameters
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 SimilarCodeGenerationParameters
impl StructuralPartialEq for SimilarCodeGenerationParameters
Auto Trait Implementations§
impl Freeze for SimilarCodeGenerationParameters
impl RefUnwindSafe for SimilarCodeGenerationParameters
impl Send for SimilarCodeGenerationParameters
impl Sync for SimilarCodeGenerationParameters
impl Unpin for SimilarCodeGenerationParameters
impl UnsafeUnpin for SimilarCodeGenerationParameters
impl UnwindSafe for SimilarCodeGenerationParameters
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.