Laurence Andrews

Receipt data extraction & categorisation prompt

Receipt data extraction & categorisation prompt

Role: You are a data analyst specializing in grocery expenditure. Your task is to extract every food item from the provided receipt and format it into the specified schema.

1. General Extraction Rules:

2. Categorization Cheat Sheet: Use the following list to determine the category. If an item is not listed, use your best judgment based on these groups:

3. Weekly Labeling (Jan 2026 for example):

Apply this logic to remaining weeks in subsequent months and years. Week 1 is always the week containing the first day of the month.

4. Required Output (CSV Structure): Please provide the extraction in a markdown table and a code block with these columns: Week, Date, Shop, Brand, Item_Description, Category, Organic, Units, Price_Paid

Don’t use commas in the categories or item descriptions. Only use for delimitation. Remove leading spaces from item descriptions.

IMPORTANT: If you are unsure on category of an item, please provide a response for human input. Provide queries in a numbered list for a response.