mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-09 19:29:18 +00:00
rag correctness scorer w/ custom dataset
This commit is contained in:
parent
ec6c63ba57
commit
9cc0a54f0b
4 changed files with 18 additions and 4 deletions
|
|
@ -103,6 +103,7 @@ class HuggingfaceDatasetDef(BaseModel):
|
|||
)
|
||||
rename_columns_map: Optional[Dict[str, str]] = Field(
|
||||
description="A map of column names to rename to fit the schema of eval dataset for scoring",
|
||||
default=None,
|
||||
)
|
||||
kwargs: Dict[str, Any] = Field(
|
||||
description="Any additional arguments to get Huggingface (e.g. split, trust_remote_code)",
|
||||
|
|
@ -119,6 +120,10 @@ class CustomDatasetDef(BaseModel):
|
|||
url: str = Field(
|
||||
description="The URL to the dataset",
|
||||
)
|
||||
rename_columns_map: Optional[Dict[str, str]] = Field(
|
||||
description="A map of column names to rename to fit the schema of eval dataset for scoring",
|
||||
default=None,
|
||||
)
|
||||
|
||||
|
||||
DatasetDef = Annotated[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue