From 060bb45aaaf1b41d2869ef83b52bc00ef7e63fb8 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Sat, 26 Oct 2024 14:07:32 +0200 Subject: [PATCH] Update README.md --- docs/README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/README.md b/docs/README.md index 1a04ab8..fba56d0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -56,12 +56,13 @@ For smaller models, the `system_prompt` can be used to request JSON in _best-eff SELECT open_prompt('I want ice cream', system_prompt := '{ "type": "object", "properties": { - summary: 'VARCHAR', - favourite_animals:='VARCHAR[]', - favourite_activity:='VARCHAR[]', - star_rating:='INTEGER'}, - struct_descr:={star_rating: 'rating on a scale from 1 (bad) to 5 (very good)'} - '); + "summary": { "type": "string" }, + "favourite_animals": { "type": "array" }, + "favourite_activity": { "type": "aray" }, + "star_rating": { "type": "number" } + }, + "struct_descr": {"star_rating": "rating on a scale from 1 (bad) to 5 (best)"} +'); D SELECT open_prompt('My zoo visit was fun and I loved the bears and tigers. i also had icecream') AS response; ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐