pub struct HypotheticalDocument {
pub id: String,
pub text: String,
pub embedding: Option<EmbeddingVector>,
pub confidence: f32,
}Expand description
Hypothetical document generated by LLM
Fields§
§id: String§text: String§embedding: Option<EmbeddingVector>§confidence: f32Trait Implementations§
Source§impl Clone for HypotheticalDocument
impl Clone for HypotheticalDocument
Source§fn clone(&self) -> HypotheticalDocument
fn clone(&self) -> HypotheticalDocument
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 HypotheticalDocument
impl Debug for HypotheticalDocument
Source§impl<'de> Deserialize<'de> for HypotheticalDocument
impl<'de> Deserialize<'de> for HypotheticalDocument
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 HypotheticalDocument
impl RefUnwindSafe for HypotheticalDocument
impl Send for HypotheticalDocument
impl Sync for HypotheticalDocument
impl Unpin for HypotheticalDocument
impl UnwindSafe for HypotheticalDocument
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