Skip to content

Commit

Permalink
Update ai.go
Browse files Browse the repository at this point in the history
update prompt to be more specific
  • Loading branch information
Noah231515 committed Apr 22, 2024
1 parent 191e67f commit d82a7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/services/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d82a7f4

Please sign in to comment.