langtest.utils.custom_types.helpers#
Functions
|
Builds the input data for a question-answering model. |
|
Builds the prompt data for a question-answering model. |
|
Make directories. |
|
Create the folder based on the data_dict. |
|
Check if the sample passes based on embedding distance. |
|
Determines whether the model's prediction passes the Language Model Metric (LLM) evaluation. |
|
Check if the sample passes based on prometheus evaluation. |
|
Check if the sample passes based on string distance. |
|
Evaluates model predictions using the Language Model Metric (LLM) with prompt-based evaluation. |
Prepares inputs and predictions in the required format for language model evaluation. |
|
|
|
|
Evaluates model predictions using a transformer-based language model. |
Classes
A hashable dictionary with support for nested dictionaries and lists. |
|
|
Simple prompt template for formatting messages with variables. |
|
Representation of a text's slice |
|
Helper object keeping track of an alteration performed on a piece of text. |