Skip to content

Commit

Permalink
add project name to ops docs (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottire authored Mar 4, 2024
1 parent b3be1cd commit 95c6a0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/guides/tracking/ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ To create an op, decorate a python function with `weave.op()`
def track_me(v):
return v + 5

weave.init()
weave.init('add5-GPT')
track_me(15)
```

Calling an op will created a new op version if the code has changed from the last call, and log the inputs and outputs of the function.

:::note
Functions decorated with `@weave.op()` will behave normally (without code versioning and tracking), if you don't call `weave.init()` before calling them.
Functions decorated with `@weave.op()` will behave normally (without code versioning and tracking), if you don't call `weave.init('your-project-name')` before calling them.
:::

Ops can be [served](/guides/tools/serve) or [deployed](/guides/tools/deploy) using the Weave toolbelt.

0 comments on commit 95c6a0e

Please sign in to comment.