This commit is contained in:
narawat lamaiin
2024-10-14 05:21:46 +07:00
parent 2e2eccff8b
commit 8b67eb1713
2 changed files with 108 additions and 81 deletions

View File

@@ -357,7 +357,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
You should then respond to the user with the following points:
- reasoning: state your understanding of the current situation
- wine_type: can be one of: "red", "white", "sparkling", "rose", "dessert" or "fortified"
- price: must be an integer representing the cost of the wine
- price: price of wine. For example, up to 100, less than 100, 20 to 100, 30-79.95
- occasion: ...
- food_to_be_paired_with_wine: food that the user will be served with the wine
- region: a region in a country where the wine is produced, such as Burgundy, Napa Valley, etc
@@ -369,7 +369,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
You should only respond in the form as described below:
reasoning: ...
wine_type: ...
price: ...
wine_price: ...
occasion: ...
food_to_be_paired_with_wine: ...
region: ...
@@ -381,7 +381,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
Let's begin!
"""
attributes = ["reasoning", "wine_type", "price", "occasion", "food_to_be_paired_with_wine", "region", "country", "grape_variety", "flavors", "aromas"]
attributes = ["reasoning", "wine_type", "wine_price", "occasion", "food_to_be_paired_with_wine", "region", "country", "grape_variety", "flavors", "aromas"]
errornote = ""
maxattempt = 5
for attempt in 1:maxattempt
@@ -477,7 +477,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
delete!(responsedict, :tasting_notes)
delete!(responsedict, :flavors)
delete!(responsedict, :aromas)
delete!(responsedict, :price)
# delete!(responsedict, :price)
delete!(responsedict, :occasion)
delete!(responsedict, :food_to_be_paired_with_wine)