Skip to content

Commit

Permalink
missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tcapelle committed Oct 28, 2024
1 parent c23c95f commit 2ac6f53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/docs/guides/evaluation/scorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Example:


```python
import weave
from openai import OpenAI
from weave import Scorer

Expand Down Expand Up @@ -112,6 +113,7 @@ If you're using a class-based scorer, pass a dictionary to the `column_map` attr
Example:

```python
import weave
from weave import Scorer

# A dataset with news articles to be summarised
Expand Down Expand Up @@ -141,6 +143,9 @@ Now, the `text` argument in the `score` method will receive data from the `news_
- Another equivalent option to map your columns is to subclass the `Scorer` and overload the `score` method mapping the columns explicitly.

```python
import weave
from weave import Scorer

class MySummarizationScorer(SummarizationScorer):

@weave.op
Expand Down

0 comments on commit 2ac6f53

Please sign in to comment.