Skip to content

Commit

Permalink
Merge pull request #792 from PrefectHQ/docs
Browse files Browse the repository at this point in the history
Add michael scott's four kinds of businesses example
  • Loading branch information
zzstoatzz authored Jan 19, 2024
2 parents 3e2f26f + aa8a479 commit b521314
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions docs/examples/michael_scott_business/michael_scott_business.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Michael Scott's four kinds of businesses

![](michael_scott.jpg)


!!! example "What kind of business are LLMs?"
```python
import marvin

businesses = [
"tourism",
"food service",
"railroads",
"sales",
"hospitals/manufacturing",
"air travel",
]

result = marvin.classify("LLMs", labels=businesses)
```

!!! success "Tourism"
```python
assert result == "tourism"
```
2 changes: 1 addition & 1 deletion docs/examples/xkcd_bird.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bird photo classifier
# xkcd's bird photo classifier

[![](https://imgs.xkcd.com/comics/tasks.png)](https://xkcd.com/1425/)

Expand Down
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ nav:
- Slackbot: examples/slackbot.md
- Python augmented prompts: examples/python_augmented_prompts.md
- Being specific about types: examples/being_specific_about_types.md
- examples/xkcd_bird.md
- Examples:
- examples/xkcd_bird.md
- examples/michael_scott_business/michael_scott_business.md


- Community:
Expand Down

0 comments on commit b521314

Please sign in to comment.