Skip to content

Commit 6f80dc1

Browse files
committed
comment fix
1 parent 591b730 commit 6f80dc1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/demo/simple_trace.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ async def gather_information(city: str):
3838
weather = await get_weather(city)
3939
attractions = await get_attractions(city)
4040

41-
# judgment.async_evaluate(
42-
# scorers=[AnswerRelevancyScorer(threshold=0.5)],
43-
# input="What is the weather in Paris?",
44-
# actual_output=weather,
45-
# model="gpt-4",
46-
# )
41+
judgment.async_evaluate(
42+
scorers=[AnswerRelevancyScorer(threshold=0.5)],
43+
input="What is the weather in Paris?",
44+
actual_output=weather,
45+
model="gpt-4",
46+
)
4747

4848
return {
4949
"weather": weather,

src/judgeval/data/datasets/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ def add_from_yaml(self, file_path: str) -> None:
221221
self.add_example(e)
222222

223223
def add_example(self, e: Example) -> None:
224-
self.examples = self.examples + [e]
224+
self.examples.append(e)
225225
# TODO if we need to add rank, then we need to do it here
226226

227227
def add_trace(self, t: Trace) -> None:
228-
self.traces = self.traces + [t]
228+
self.traces.append(t)
229229

230230
def save_as(self, file_type: Literal["json", "csv", "yaml"], dir_path: str, save_name: str = None) -> None:
231231
"""

src/judgeval/data/datasets/eval_dataset_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ def pull(self, alias: str, project_name: str) -> EvalDataset:
202202

203203
info(f"Successfully pulled dataset with alias '{alias}'")
204204
payload = response.json()
205-
print(payload)
206205
dataset.examples = [Example(**e) for e in payload.get("examples", [])]
207206
dataset.traces = [Trace(**t) for t in payload.get("traces", [])]
208207
dataset._alias = payload.get("alias")

0 commit comments

Comments
 (0)