pub struct RetrievalInput {
pub channels: Vec<ChannelResult>,
pub facts: HashMap<TargetId, TargetFacts>,
pub entity_vectors: HashMap<String, Vec<f32>>,
}Expand description
The input bundle. Channels are positional (matches Retrieval.channels),
facts are keyed by candidate.
Fields§
§channels: Vec<ChannelResult>§facts: HashMap<TargetId, TargetFacts>§entity_vectors: HashMap<String, Vec<f32>>Dense entity vectors for MMR cosine similarity (§11.4, 10.3).
Populated by the store layer from entity_embeddings for the
candidate entity set. Keys are entity IDs.
Trait Implementations§
Source§impl Clone for RetrievalInput
impl Clone for RetrievalInput
Source§fn clone(&self) -> RetrievalInput
fn clone(&self) -> RetrievalInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetrievalInput
impl Debug for RetrievalInput
Source§impl Default for RetrievalInput
impl Default for RetrievalInput
Source§fn default() -> RetrievalInput
fn default() -> RetrievalInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RetrievalInput
impl<'de> Deserialize<'de> for RetrievalInput
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 RetrievalInput
impl RefUnwindSafe for RetrievalInput
impl Send for RetrievalInput
impl Sync for RetrievalInput
impl Unpin for RetrievalInput
impl UnsafeUnpin for RetrievalInput
impl UnwindSafe for RetrievalInput
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