Skip to content

Commit

Permalink
docs: minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 28, 2024
1 parent bba72ab commit cf66cac
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions lib/json.ai.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# Below are the front-matter configuration
version: 0.1.0
type: lib
description: |-
Expand Down Expand Up @@ -28,20 +29,6 @@ tag:
- json
- extract
- lib
prompt:
add_generation_prompt: true
messages:
- role: system
content: |-
Extract THE CONTENT input by the user as a JSON object according to THE OUTPUT JSON CONTENT FIELDS REQUIREMENTS specified by the user:
- role: user
content: |-
THE OUTPUT JSON CONTENT FIELDS REQUIREMENTS:
{{output}}
---
THE CONTENT:
{{content}}
---
input:
- content # The content to extract
- output # JSON Schema
Expand Down Expand Up @@ -78,3 +65,13 @@ output:
description: "Is the reviewer expressing anger?"
required: ["sentiment", "products", "anger"]
---
# Below are the prompts script
system: |-
Extract THE CONTENT input by the user as a JSON object according to THE OUTPUT JSON CONTENT FIELDS REQUIREMENTS specified by the user:
user: |-
THE OUTPUT JSON CONTENT FIELDS REQUIREMENTS:
{{output}}
---
THE CONTENT:
{{content}}
---

0 comments on commit cf66cac

Please sign in to comment.