How to ask llm to not calculate any value. from Invoice line items
- User
How to ask llm to not calculate any value. from Invoice line items
- Assistant
When interacting with a language model (LLM) and you want to ensure that it does not perform calculations on any invoice line items, it's important to give clear and specific instructions. Here's an example of how you might phrase your request:
Prompt for an LLM without Calculations:
"Please review the following invoice line items and provide a summary. Do not perform any calculations or estimations on the data provided. Simply list the items as they are presented.
Invoice Line Items:
- Item: Widget A, Quantity: 10, Unit Price: $5.00
- Item: Widget B, Quantity: 5, Unit Price: $15.00
- Item: Widget C, Quantity: 2, Unit Price: $30.00
Summary:
- Provide a simple list of the items.
- Do not total any quantities or prices.
- Do not perform any arithmetic operations."
This approach helps ensure the LLM understands that you do not want it to engage in any mathematical operations and should only focus on listing and summarizing the information as provided.
Remember, clarity and specificity in your instructions will often lead to better and more accurate responses from the LLM.
- User
I have some invoice and I want to perfome the extraction of line items. This is the prompt that I am using Please take a moment to breathe deeply. Next, Analyze this invoice image and extract all the visible entities from the Invoice_Text. Return JSON in a single line without whitespaces, with all values as strings. Invoice_Text: "%(invoice_txt)s" The output should be formatted as a JSON instance that conforms to the JSON schema below.
- Assistant