pub struct EmbedContentRequest {
pub model: Model,
pub content: Content,
pub task_type: Option<TaskType>,
pub title: Option<String>,
pub output_dimensionality: Option<i32>,
}
Expand description
Request to generate embeddings for content
Fields§
§model: Model
The specified embedding model
content: Content
The chunks content to generate embeddings
task_type: Option<TaskType>
The embedding task type (optional)
title: Option<String>
The title of the document (optional)
output_dimensionality: Option<i32>
Optional reduced dimension count for the output embedding
Trait Implementations§
Source§impl Clone for EmbedContentRequest
impl Clone for EmbedContentRequest
Source§fn clone(&self) -> EmbedContentRequest
fn clone(&self) -> EmbedContentRequest
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 EmbedContentRequest
impl Debug for EmbedContentRequest
Source§impl<'de> Deserialize<'de> for EmbedContentRequest
impl<'de> Deserialize<'de> for EmbedContentRequest
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 EmbedContentRequest
impl RefUnwindSafe for EmbedContentRequest
impl Send for EmbedContentRequest
impl Sync for EmbedContentRequest
impl Unpin for EmbedContentRequest
impl UnwindSafe for EmbedContentRequest
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