Skip to content

Commit

Permalink
updated bias schema
Browse files Browse the repository at this point in the history
  • Loading branch information
penguine-ip committed Jan 31, 2025
1 parent 58ff3f3 commit 83b9711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deepeval/metrics/bias/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import List, Optional
from typing import List, Optional, Literal
from pydantic import BaseModel, Field


Expand All @@ -8,7 +8,7 @@ class Opinions(BaseModel):

# BiasMetric runs a similar algorithm to Dbias: https://arxiv.org/pdf/2208.05777.pdf
class BiasVerdict(BaseModel):
verdict: str
verdict: Literal["yes", "no"]
reason: Optional[str] = Field(default=None)


Expand Down

0 comments on commit 83b9711

Please sign in to comment.