mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 11:50:41 +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
|
|
@ -70,6 +70,9 @@ class CustomDataset(BaseDataset[DictSample]):
|
|||
df = df.sample(n=n_samples)
|
||||
|
||||
self.dataset = Dataset.from_pandas(df)
|
||||
if self.config.rename_columns_map:
|
||||
for k, v in self.config.rename_columns_map.items():
|
||||
self.dataset = self.dataset.rename_column(k, v)
|
||||
|
||||
|
||||
class HuggingfaceDataset(BaseDataset[DictSample]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue