pub struct EmbeddingData {
pub object: String,
pub embedding: Vec<f32>,
pub index: i32,
}
Fields§
§object: String
object: A string representing the type of object returned. In this case, it should always be “embedding”.
embedding: Vec<f32>
embedding: A vector of 32-bit floating point numbers representing the embedding of the input text. The length of the vector depends on the model used for the embedding.
index: i32
index: An integer representing the index of the input text in the request. This is useful when multiple inputs are passed in a single request.
Trait Implementations§
Source§impl Debug for EmbeddingData
impl Debug for EmbeddingData
Source§impl<'de> Deserialize<'de> for EmbeddingData
impl<'de> Deserialize<'de> for EmbeddingData
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 EmbeddingData
impl RefUnwindSafe for EmbeddingData
impl Send for EmbeddingData
impl Sync for EmbeddingData
impl Unpin for EmbeddingData
impl UnwindSafe for EmbeddingData
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