From dda2134b01d9ccd378f835d350be8c1b1c868b0c Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sun, 28 Jul 2024 21:17:28 +0700 Subject: [PATCH] update --- src/llmfunction.jl | 8 ++++---- test/runtest.jl | 17 ++++++++++------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/llmfunction.jl b/src/llmfunction.jl index cab0647..16056c7 100644 --- a/src/llmfunction.jl +++ b/src/llmfunction.jl @@ -434,10 +434,10 @@ function extractWineAttributes(a::T1, input::T2 Conversion Table: ... Query: ... - You should follow the following guidelines: - - If specific information is unavailable, please use "NA" to indicate this. - - Use converstion table to convert sweetness, acidity, tannin, intensity describing word into an integer. - - Do not generate other comments. + You must follow the following guidelines: + 1) If specific information is not available in the query, use "NA" to indicate this. Also words like "any" or "unlimited" means no information available. + 2) Use converstion table to convert sweetness, acidity, tannin, intensity describing word into an integer. + 3) Do not generate other comments. You should then respond to the user with the following points: - wine_type: Can be one of: red, white, sparkling, rose, dessert or fortified diff --git a/test/runtest.jl b/test/runtest.jl index 018db2b..6010567 100644 --- a/test/runtest.jl +++ b/test/runtest.jl @@ -84,6 +84,16 @@ end main() +# """ +# I'm having a graduation party this evening. So I think a bootle of wine would be nice. +# I have no idea. The party will be formal. What type of wine people usually get for this occasion? +# What about sparkling Rose? + +# """ + + + + # response = YiemAgent.conversation(a, Dict(:text=> "newtopic",) ) @@ -105,13 +115,6 @@ main() -# """ -# I'm having a graduation party this evening. I'll pay at most 30 bucks. -# I have no idea. The party will be formal. What type of wine people usually get for this occasion? -# What about sparkling Rose? - -# """ -