pub struct GroundTruth {
pub query_id: String,
pub relevant_docs: Vec<String>,
pub expected_answer: Option<String>,
pub relevance_judgments: HashMap<String, f32>,
pub metadata: HashMap<String, Value>,
}Expand description
Ground truth data for evaluation
Fields§
§query_id: StringQuery ID
relevant_docs: Vec<String>Relevant document IDs
expected_answer: Option<String>Expected answer/response
relevance_judgments: HashMap<String, f32>Relevance judgments (document_id -> relevance_score)
metadata: HashMap<String, Value>Additional ground truth data
Trait Implementations§
Source§impl Clone for GroundTruth
impl Clone for GroundTruth
Source§fn clone(&self) -> GroundTruth
fn clone(&self) -> GroundTruth
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 GroundTruth
impl Debug for GroundTruth
Source§impl<'de> Deserialize<'de> for GroundTruth
impl<'de> Deserialize<'de> for GroundTruth
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 GroundTruth
impl RefUnwindSafe for GroundTruth
impl Send for GroundTruth
impl Sync for GroundTruth
impl Unpin for GroundTruth
impl UnwindSafe for GroundTruth
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