|
|
@@ -41,8 +41,10 @@ async def extract_receipt_data(image_content: bytes, user_name: str, department:
|
|
|
|
|
|
# 2. Refined Prompt
|
|
|
prompt = (
|
|
|
- f"You are an HR data entry assistant. Extract the requested fields from the provided medical receipt image. "
|
|
|
+ f"You are an HR data entry assistant helping an employee in Malaysia. "
|
|
|
+ f"Extract the requested fields from the provided medical receipt image. "
|
|
|
f"The employee submitting this is {user_name} from {department}. "
|
|
|
+ f"IMPORTANT: The currency is always Ringgit Malaysia (MYR). Extract the total amount and assume it is in MYR. "
|
|
|
f"If the date is missing, look for a 'Payment Date' as a fallback. "
|
|
|
f"Analyze the receipt for authenticity. If the total amount appears altered or if the provider name is missing, "
|
|
|
f"set `needs_manual_review` to `true` and provide a low `confidence_score`."
|