pub struct EmbeddingCalled {
pub model: String,
pub inputs: u64,
pub vectors: u64,
pub dimensions: Option<u64>,
pub prompt_tokens: Option<Tokens>,
}Expand description
embedding_called: one call to an attached endpoint’s embeddings
face.
The two counts are recorded rather than one being derived from the other: an answer that returned fewer vectors than it was given texts is a retrieval defect, and this is the line that shows it.
Fields§
§model: StringThe endpoint’s own model id, as the request spelled it.
inputs: u64How many texts the call asked to embed.
vectors: u64How many vectors the answer carried.
dimensions: Option<u64>The width the caller asked for. Absent when it named none, which is not the same fact as a width of zero.
prompt_tokens: Option<Tokens>What the provider said it read. Absent when it said nothing.
Trait Implementations§
Source§impl Clone for EmbeddingCalled
impl Clone for EmbeddingCalled
Source§impl Debug for EmbeddingCalled
impl Debug for EmbeddingCalled
Source§impl<'de> Deserialize<'de> for EmbeddingCalled
impl<'de> Deserialize<'de> for EmbeddingCalled
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 EmbeddingCalled
Source§impl PartialEq for EmbeddingCalled
impl PartialEq for EmbeddingCalled
Source§impl Serialize for EmbeddingCalled
impl Serialize for EmbeddingCalled
impl StructuralPartialEq for EmbeddingCalled
Auto Trait Implementations§
impl Freeze for EmbeddingCalled
impl RefUnwindSafe for EmbeddingCalled
impl Send for EmbeddingCalled
impl Sync for EmbeddingCalled
impl Unpin for EmbeddingCalled
impl UnsafeUnpin for EmbeddingCalled
impl UnwindSafe for EmbeddingCalled
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