pub struct RetrievalHit {Show 13 fields
pub evidence_id: String,
pub source_scope: String,
pub source_path: Option<String>,
pub source_span: Option<EvidenceSpan>,
pub content: String,
pub entity_labels: Vec<String>,
pub entities: Vec<ContextEntity>,
pub graph_facts: Vec<ContextGraphFact>,
pub code_artifact: Option<CodeGraphArtifact>,
pub retriever_sources: Vec<RetrieverSource>,
pub ranking: Vec<RankingSignal>,
pub rerank: Option<RerankSignal>,
pub score: f64,
}Expand description
A context item returned by retrieval.
Fields§
§evidence_id: String§source_scope: String§source_path: Option<String>§source_span: Option<EvidenceSpan>§content: String§entity_labels: Vec<String>§entities: Vec<ContextEntity>§graph_facts: Vec<ContextGraphFact>§code_artifact: Option<CodeGraphArtifact>§retriever_sources: Vec<RetrieverSource>§ranking: Vec<RankingSignal>§rerank: Option<RerankSignal>§score: f64Trait Implementations§
Source§impl Clone for RetrievalHit
impl Clone for RetrievalHit
Source§fn clone(&self) -> RetrievalHit
fn clone(&self) -> RetrievalHit
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 RetrievalHit
impl Debug for RetrievalHit
Source§impl<'de> Deserialize<'de> for RetrievalHit
impl<'de> Deserialize<'de> for RetrievalHit
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
Source§impl PartialEq for RetrievalHit
impl PartialEq for RetrievalHit
Source§fn eq(&self, other: &RetrievalHit) -> bool
fn eq(&self, other: &RetrievalHit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetrievalHit
impl Serialize for RetrievalHit
impl StructuralPartialEq for RetrievalHit
Auto Trait Implementations§
impl Freeze for RetrievalHit
impl RefUnwindSafe for RetrievalHit
impl Send for RetrievalHit
impl Sync for RetrievalHit
impl Unpin for RetrievalHit
impl UnsafeUnpin for RetrievalHit
impl UnwindSafe for RetrievalHit
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