File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 36
36
37
37
```python
38
38
from openai import AsyncOpenAI
39
- from autoevals.ragas import CloseQA
39
+ from autoevals.ragas import ClosedQA
40
40
41
41
# Pass client directly to evaluator
42
42
client = AsyncOpenAI()
43
- evaluator = CloseQA (client=client)
43
+ evaluator = ClosedQA (client=client)
44
44
```
45
45
46
46
**Multi-provider support via the Braintrust AI Proxy**:
70
70
```python
71
71
from openai import AsyncOpenAI
72
72
from braintrust import wrap_openai
73
- from autoevals.ragas import CloseQA
73
+ from autoevals.ragas import ClosedQA
74
74
75
75
# Explicitly wrap the client if needed
76
76
client = wrap_openai(AsyncOpenAI())
77
- evaluator = CloseQA (client=client)
77
+ evaluator = ClosedQA (client=client)
78
78
```
79
79
80
80
**Example Autoevals usage**:
81
81
82
82
```python
83
- from autoevals.ragas import CloseQA
83
+ from autoevals.ragas import ClosedQA
84
84
import asyncio
85
85
86
86
async def evaluate_qa():
87
87
# Create evaluator for question answering
88
- evaluator = CloseQA ()
88
+ evaluator = ClosedQA ()
89
89
90
90
# Question and context
91
91
question = "What was the purpose of the Apollo missions?"
You can’t perform that action at this time.
0 commit comments