update
This commit is contained in:
@@ -439,7 +439,7 @@ function extractWineAttributes(a::T1, input::T2
|
||||
- wine_type: Can be one of: red, white, sparkling, rose, dessert or fortified
|
||||
- price: ...
|
||||
- occasion: ...
|
||||
- food_pairing: food that will be served with wine
|
||||
- food_paired: food that will be served with wine
|
||||
- country: wine's country of origin
|
||||
- grape_variety: ...
|
||||
- tasting_notes: wine's flavors
|
||||
@@ -453,7 +453,7 @@ function extractWineAttributes(a::T1, input::T2
|
||||
wine_type: ...
|
||||
price: ...
|
||||
occasion: ...
|
||||
food_pairing: ...
|
||||
food_paired: ...
|
||||
country: ...
|
||||
grape_variety: ...
|
||||
tasting_notes: ...
|
||||
@@ -492,7 +492,7 @@ function extractWineAttributes(a::T1, input::T2
|
||||
<|start_header_id|>assistant<|end_header_id|>
|
||||
"""
|
||||
|
||||
attributes = ["repeat", "wine_type", "price", "occasion", "food_pairing", "country", "grape_variety", "sweetness", "acidity", "tannin", "intensity"]
|
||||
attributes = ["repeat", "wine_type", "price", "occasion", "food_paired", "country", "grape_variety", "sweetness", "acidity", "tannin", "intensity"]
|
||||
|
||||
for attempt in 1:5
|
||||
try
|
||||
@@ -522,6 +522,9 @@ function extractWineAttributes(a::T1, input::T2
|
||||
|
||||
result = result[1:end-2] # remove the ending ", "
|
||||
|
||||
# replace because SQLLLM didn't know what food_paired means
|
||||
result = replace(result, "food_paired" => "food_to_be_paired_with_wine")
|
||||
|
||||
return result
|
||||
catch e
|
||||
io = IOBuffer()
|
||||
|
||||
Reference in New Issue
Block a user