Skip to content

Commit 00278c6

Browse files
barryj0915Barry ONeill
andauthored
small fixes (#145)
Co-authored-by: Barry ONeill <barryoneill@barrys-mbp.myfiosgateway.com>
1 parent e655e4a commit 00278c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

py/autoevals/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
3737
```python
3838
from openai import AsyncOpenAI
39-
from autoevals.ragas import CloseQA
39+
from autoevals.ragas import ClosedQA
4040
4141
# Pass client directly to evaluator
4242
client = AsyncOpenAI()
43-
evaluator = CloseQA(client=client)
43+
evaluator = ClosedQA(client=client)
4444
```
4545
4646
**Multi-provider support via the Braintrust AI Proxy**:
@@ -70,22 +70,22 @@
7070
```python
7171
from openai import AsyncOpenAI
7272
from braintrust import wrap_openai
73-
from autoevals.ragas import CloseQA
73+
from autoevals.ragas import ClosedQA
7474
7575
# Explicitly wrap the client if needed
7676
client = wrap_openai(AsyncOpenAI())
77-
evaluator = CloseQA(client=client)
77+
evaluator = ClosedQA(client=client)
7878
```
7979
8080
**Example Autoevals usage**:
8181
8282
```python
83-
from autoevals.ragas import CloseQA
83+
from autoevals.ragas import ClosedQA
8484
import asyncio
8585
8686
async def evaluate_qa():
8787
# Create evaluator for question answering
88-
evaluator = CloseQA()
88+
evaluator = ClosedQA()
8989
9090
# Question and context
9191
question = "What was the purpose of the Apollo missions?"

0 commit comments

Comments
 (0)