8000 Release v0.0.14: Fix remap_column_names (#140) · marcklingen/ragas · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v0.0.14

  • v0.0.14
  • e194caa
  • Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    < 7913 /div>
  • Compare
    Choose a tag to compare
@yujonglee yujonglee tagged this 15 Sep 18:28
When I try to do the following, I got error:

```python
ds = Dataset.from_dict(
    {
        "question": ["question"],
        "answer": ["answer"],
        "contexts": [["context"]],
    }
)

from ragas import evaluate
from ragas.metrics import Faithfulness

evaluate(dataset =ds, metrics=[Faithfulness(batch_size=1)])
```

```
KeyError: "Column ground_truths not in the dataset. Current columns in the dataset: ['question', 'answer', 'contexts']"
```
But `ground_truths ` is not needed for `Faithfulness` .

This PR is to fix it.
Assets 2
Loading
0