Skip to content

Commit 0ad5bdb

Browse files
committed
wip
1 parent a6e4d5d commit 0ad5bdb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

parea/cookbook/simple_experiment_with_openai.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def eval_func(log: Log) -> EvaluationResult:
2727
)
2828

2929

30-
# @trace(eval_funcs=[eval_func])
30+
@trace(eval_funcs=[eval_func])
3131
def func(topic: str) -> dict[str, str | None]:
3232
return {
3333
"data": (
@@ -47,9 +47,8 @@ def func(topic: str) -> dict[str, str | None]:
4747

4848

4949
if __name__ == "__main__":
50-
print(func("Python"))
51-
# p.experiment(
52-
# name="hello-world-example-ch",
53-
# data=[{"topic": "Fish"}, {"topic": "Python"}],
54-
# func=func,
55-
# ).run()
50+
p.experiment(
51+
name="hello-world-example-ch",
52+
data=[{"topic": "Fish"}, {"topic": "Python"}],
53+
func=func,
54+
).run()

parea/cookbook/tracing_without_deployed_prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def critic(argument: str) -> str:
4646
[
4747
{
4848
"role": "system",
49-
"content": f"You are a critic."
49+
"content": "You are a critic."
5050
"\nWhat unresolved questions or criticism do you have after reading the following argument?"
5151
"Provide a concise summary of your feedback.",
5252
},

0 commit comments

Comments
 (0)