This commit is contained in:
narawat lamaiin
2025-01-10 18:08:21 +07:00
parent 616c159336
commit 944d9eaf2b
2 changed files with 3 additions and 3 deletions

View File

@@ -426,7 +426,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
j = Symbol(i)
if j [:reasoning, :tasting_notes, :occasion, :food_to_be_paired_with_wine]
# in case j is wine_price it needs to be checked differently because its value is ranged
if j == "wine_price"
if j == :wine_price
if responsedict[:wine_price] != "NA"
# check whether wine_price is in ranged number
if !occursin('-', responsedict[:wine_price])
@@ -451,7 +451,7 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
content = [content]
end
for x in content
for x in content #BUG why x is "0-1500"
if !occursin("NA", responsedict[j]) && !occursin(x, input)
errornote = "$x is not mentioned in the user query, you must only use the info from the query."
println("Attempt $attempt $errornote ", @__FILE__, " ", @__LINE__)