Evaluation class for assessing the performance of vectorstores against ground truth data.
This class provides methods to evaluate vectorstores using specified metrics, validate inputs, and save results. It supports batch processing and allows for detailed inspection of individual metric results.
Attributes
Name
Type
Description
ground_truths
pd.DataFrame
DataFrame containing ‘qid’, ‘text’, and ‘label’ columns.
batch_size
int
Batch size for vectorstore search operations.
save_output
bool
Whether to save evaluation results to a file.
parsed_metrics
dict
Dictionary of parsed metrics to compute.
metric_results
dict
Dictionary of individual metric results for detailed inspection.