From d82a7f41913b0a8434d534c0995f164c739db94e Mon Sep 17 00:00:00 2001 From: Noah231515 <44912201+Noah231515@users.noreply.github.com> Date: Sun, 21 Apr 2024 20:22:23 -0400 Subject: [PATCH] Update ai.go update prompt to be more specific --- internal/services/ai.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/services/ai.go b/internal/services/ai.go index 37407229..6e479f95 100644 --- a/internal/services/ai.go +++ b/internal/services/ai.go @@ -116,11 +116,11 @@ func getPrompt(ocrText string) (string, error) { currentYear := simpleutils.UintToString(uint(time.Now().Year())) prompt := fmt.Sprintf(` - Find the receipt's name, total cost, and date. Format as: + Find the receipt's name, total cost, and date. Format the found data as: { "name": store name, - "amount": amount, - "date": date in zulu, with ALL time values set to 0, + "amount": amount as a number, + "date": date in ISO 18601 format in UTC with ALL time values set as 0, "categories": categories, "tags": tags }