mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-20 01:38:40 +00:00
more scoring function for rag
This commit is contained in:
parent
b94ab8d013
commit
9aa4a405ca
8 changed files with 132 additions and 10 deletions
|
|
@ -34,11 +34,11 @@ class DataSchemaValidatorMixin:
|
|||
dataset_schema, self.get_expected_schema_for_eval()
|
||||
)
|
||||
|
||||
def validate_row_schema_for_scoring(self, row_schema: Dict[str, Any]):
|
||||
self.validate_row_schema(row_schema, self.get_expected_schema_for_scoring())
|
||||
def validate_row_schema_for_scoring(self, input_row: Dict[str, Any]):
|
||||
self.validate_row_schema(input_row, self.get_expected_schema_for_scoring())
|
||||
|
||||
def validate_row_schema_for_eval(self, row_schema: Dict[str, Any]):
|
||||
self.validate_row_schema(row_schema, self.get_expected_schema_for_eval())
|
||||
def validate_row_schema_for_eval(self, input_row: Dict[str, Any]):
|
||||
self.validate_row_schema(input_row, self.get_expected_schema_for_eval())
|
||||
|
||||
def get_expected_schema_for_scoring(self):
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue