Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Added Pydantic Field to tutorial-eval.md #2211

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions docs/docs/tutorial-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ import weave

# highlight-next-line
class ExtractFruitsModel(weave.Model):
model_name: str
prompt_template: str
model_name: str = Field( default="gpt-fruity-fresh-1.0" )
prompt_template: str = Field( default="You are an AI fruit expert who can find any fruit, even the mythical ones!" )

def __init__(self):
super().__init__()

# highlight-next-line
@weave.op()
Expand Down Expand Up @@ -140,9 +143,12 @@ import openai

# highlight-next-line
class ExtractFruitsModel(weave.Model):
model_name: str
prompt_template: str
model_name: str = Field( default="gpt-fruity-fresh-1.0" )
prompt_template: str = Field( default="You are an AI fruit expert who can find any fruit, even the mythical ones!" )

def __init__(self):
super().__init__()

# highlight-next-line
@weave.op()
# highlight-next-line
Expand Down
Loading