From bc0f735ab7f8c7602e3cdff237c6dcdcf02d278a Mon Sep 17 00:00:00 2001 From: narawat lamaiin Date: Sat, 22 Mar 2025 20:26:41 +0700 Subject: [PATCH] update --- src/interface.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interface.jl b/src/interface.jl index 79cd6e6..e9ede7e 100644 --- a/src/interface.jl +++ b/src/interface.jl @@ -498,7 +498,7 @@ function evaluator(state::T1, text2textInstructLLM::Function # evaluation score as reward because different answers hold different value for the user. state[:reward] = responsedict[:score] end - println("\n~~~ Evaluator() ", @__FILE__, ":", @__LINE__, " $(Dates.now())") + println("\nEvaluator() ", @__FILE__, ":", @__LINE__, " $(Dates.now())") pprintln(Dict(responsedict)) return responsedict[:score] @@ -996,7 +996,7 @@ function query(query::T, executeSQL::Function, text2textInstructLLM::Function; root, _, resultState, highValueState = LLMMCTS.runMCTS(initialstate, transition, transitionargs; - horizontalSampleExpansionPhase=5, + horizontalSampleExpansionPhase=3, horizontalSampleSimulationPhase=2, maxSimulationDepth=5, maxiterations=1, @@ -1190,7 +1190,7 @@ function generatequestion(state::T1, context, text2textInstructLLM::Function; responsedict = GeneralUtils.textToDict(response, header; dictKey=dictkey, symbolkey=true) response = "Q1: " * responsedict[:q1] - # println("\n~~~ SQLLLM generatequestion() ", @__FILE__, ":", @__LINE__, " $(Dates.now())") + # println("\nSQLLLM generatequestion() ", @__FILE__, ":", @__LINE__, " $(Dates.now())") pprintln(Dict(responsedict)) return response catch e @@ -1198,7 +1198,7 @@ function generatequestion(state::T1, context, text2textInstructLLM::Function; showerror(io, e) errorMsg = String(take!(io)) st = sprint((io, v) -> show(io, "text/plain", v), stacktrace(catch_backtrace())) - println("\n~~~ SQLLLM generatequestion() Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, ":", @__LINE__, " $(Dates.now())") + println("\nSQLLLM generatequestion() Attempt $attempt. Error occurred: $errorMsg\n$st ", @__FILE__, ":", @__LINE__, " $(Dates.now())") end end error("generatequestion failed to generate a thought ", response)