update
This commit is contained in:
+21
-1
@@ -637,7 +637,8 @@ function predefined_wine_search_sql(a::T, searchterm::String,
|
||||
# your responsibility includes
|
||||
Fulfill the objective.
|
||||
|
||||
# you should only respond in YAML format as described below
|
||||
# you should only respond in JSON format as described below
|
||||
{
|
||||
table_name_1:
|
||||
column_name_1:
|
||||
operator: "="
|
||||
@@ -654,6 +655,7 @@ function predefined_wine_search_sql(a::T, searchterm::String,
|
||||
operator: "="
|
||||
value: "..."
|
||||
...
|
||||
}
|
||||
|
||||
# here are some example
|
||||
<user>
|
||||
@@ -700,6 +702,24 @@ function predefined_wine_search_sql(a::T, searchterm::String,
|
||||
"""
|
||||
input = context * searchterm
|
||||
|
||||
json_schema = Dict(
|
||||
"type"=> "json_schema",
|
||||
"json_schema"=> Dict(
|
||||
"name"=> "user_profile",
|
||||
"strict"=> true,
|
||||
"schema"=> Dict(
|
||||
"type"=> "object",
|
||||
"properties"=> Dict(
|
||||
"plan"=> Dict("type"=> "string"),
|
||||
"action_name"=> Dict("type"=> "string"),
|
||||
"action_input"=> Dict("type"=> "string"),
|
||||
),
|
||||
"required"=> ["plan", "action_name", "action_input"],
|
||||
"additionalProperties"=> false
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
msg = Dict(
|
||||
"model" => "gemma-4-E4B-it-UD-Q4_K_XL",
|
||||
"messages" => [
|
||||
|
||||
Reference in New Issue
Block a user