From 9251fbf7ccddc383002c455d981c8345df6cd686 Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Fri, 9 Aug 2024 21:54:51 +0700 Subject: [PATCH] update --- src/interface.jl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index f80e9b5..024f8b7 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -1348,7 +1348,7 @@ function generatequestion(a, text2textInstructLLM::Function)::String systemmsg = """ You are a helpful assistant acting as a polite, website-based sommelier for an online wine store. - Your task is to questioning the current situation. + Your task is to self questioning about the current situation. At each round of conversation, you will be given the current situation: Your conversation with the user: ... @@ -1356,14 +1356,13 @@ function generatequestion(a, text2textInstructLLM::Function)::String You must follow the following guidelines: 1) Ask at least two questions but no more than five. - 2) Your question must be specific to helping the user based on the current situation. 3) Your question should be specific, self-contained and not require any additional context. 4) Do not generate any question or comments at the end. You should then respond to the user with: - Reasoning: State your detailed reasoning of the current situation - - Q: Your question - - A: Your answer to the question. Try to answer as best as you can. + - Q: Based on the current situation, ask yourself what you need to do in order to help the user + - A: Based on the current situation, answer to yourself the best you can You must only respond in format as described below: @@ -1413,7 +1412,7 @@ function generatequestion(a, text2textInstructLLM::Function)::String try response = text2textInstructLLM(prompt) q_number = count("Q ", response) - if q_number < 1 + if q_number < 2 error("too few questions only $q_number questions are generated ", @__FILE__, " ", @__LINE__) end println("--> generatequestion ", @__FILE__, " ", @__LINE__)