Skip to content

Commit

Permalink
fix(lib): sometimes LLM not extract content accurately
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 29, 2024
1 parent bd40284 commit 67b2476
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/json.ai.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Below are the front-matter configuration
version: 0.1.0
version: 0.1.1
type: lib
description: |-
Extract the `content` as JSON according to the JSON Schema specified in `output`.
Expand Down Expand Up @@ -33,6 +33,7 @@ input:
- content # The content to extract
- output # JSON Schema
parameters:
temperature: 0.01
# force output to json object
response_format:
type: "json_object"
Expand Down Expand Up @@ -67,7 +68,7 @@ output:
---
# 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:
Accurately 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}}
Expand Down

0 comments on commit 67b2476

Please sign in to comment.