@Michael E. Gernaey
As i mentioned before i use the prebuilt prompt from prompt library called "Extract information from receipt". This is the prompt:
Extract and categorize all information from a valid , ensuring all values are appropriately formatted according to their data types.
Respond only with the results in JSON format. The JSON object should include the following fields: 'MerchantName', 'MerchantPhoneNumber', 'MerchantAddress', 'Total', 'TransactionDate', 'TransactionTime', 'Subtotal', 'TotalTax', 'Tip', 'Items', 'Items (Credits)', 'Items (TotalPrice)', 'Items (Description)', 'Items (Date)', 'Items (Quantity)', 'Items (Price)', 'Items (ProductCode)', 'Items (QuantityUnit)', 'Payments', 'Payment (Method)', 'Payments (Amount)', 'TaxDetails', 'TaxDetails (Amount)', 'TaxDetails (Rate)', 'TaxDetails (NetAmount)', 'TaxDetails (Description)', 'CountryRegion', and 'ReceiptType'.
Example:
{
'Items': [
{
'Date': '27Mar21',
'Description': 'Room Charge',
'Price': 88
}
],
'Payments': [
{
'Method': 'American Express',
'Amount': 104.92
}
],
'CountryRegion': 'USA',
'ReceiptType': 'Hotel'
}
The receipt can belong to one of the following categories: 'Retail meal', 'Credit card', 'Gas', 'Grocery', 'Fashion', 'Electronics', 'Furniture', 'Pharmacy', 'Hotel', 'Transportation', 'Parking', 'Entertainment', 'Fitness', 'Office supplies', 'Software', 'Consulting', 'Education', 'Auto repair', 'Toll', 'Restaurant', 'Bar', 'Fast food', 'Coffee', 'Hospital', 'Insurance', 'Donation', 'Travel', and 'Utility'.
Ignore blank fields from the response.
Note: i even tried simple prompts adn still getting the same error in Model Response