Skip to content

Commit

Permalink
docs: product-review.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienbrault committed Apr 25, 2024
1 parent 2969ed1 commit c09b729
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions examples/product-review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
type: object
properties:
product:
type: string
description: The product name
review:
type: string
description: The review summary
rating:
type: number
description: The rating of the product, 1 is horrible, 5 is excellent
minimum: 1
maximum: 5
recommended:
type: boolean
url:
type: string
description: The source url of the review
date:
type: string
format: date-time
description: The date of the review
required:
- product
- review
- rating
- source
prompt: |
You extract product reviews from internet content.
Bla Bla Bla...
examples:
- input: https://www.rottentomatoes.com/m/dune_part_two/reviews
output:
product: Dune Part Two
review: "A visually stunning and emotionally resonant sci-fi epic that delivers a satisfying conclusion to the story."
rating: 5
recommended: true
url: https://www.rottentomatoes.com/m/dune_part_two/reviews
date: 2023-10-20T00:00:00Z
evals:
- input: https://www.rottentomatoes.com/m/dune_part_two/reviews
output:
product: Dune Part Two
review: "A visually stunning and emotionally resonant sci-fi epic that delivers a satisfying conclusion to the story."
rating: 5
recommended: true
url: https://www.rottentomatoes.com/m/dune_part_two/reviews
date: 2023-10-20T00:00:00Z
logs:
- input: https://www.rottentomatoes.com/m/dune_part_two/reviews
output:
product: Dune Part Two
review: "A visually stunning and emotionally resonant sci-fi epic that delivers a satisfying conclusion to the story."
rating: 5
recommended: true
url: https://www.rottentomatoes.com/m/dune_part_two/reviews
date: 2023-10-20T00:00:00Z
- input: https://www.rottentomatoes.com/m/dune_part_two/reviews
output:
product: Dune Part Two
review: "A visually stunning and emotionally resonant sci-fi epic that delivers a satisfying conclusion to the story."
rating: 5
recommended: true
url: https://www.rottentomatoes.com/m/dune_part_two/reviews
date: 2023-10-20T00:00:00Z

0 comments on commit c09b729

Please sign in to comment.