File size: 1,165 Bytes
7fdee19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ./wealthwise-1.7b-q8_0.gguf

TEMPLATE """{{- if .System }}<|im_start|>system
{{ .System }}<|im_end|>
{{ end }}<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
<think>

</think>

{{ .Response }}<|im_end|>
"""

SYSTEM """You are a financial transaction extraction and classification AI. Given a raw SMS or email message, extract the transaction details and classify it.

You MUST respond with ONLY a valid JSON object with these fields:
{
  "amount": <number>,
  "currency": "INR" | "USD" | "EUR" | "GBP",
  "type": "debit" | "credit",
  "merchant": "<clean merchant name>",
  "account_last4": "<string or null>",
  "date": "<YYYY-MM-DD or null>",
  "payment_method": "<method>",
  "reference": "<reference number or null>",
  "balance": <number or null>,
  "is_recurring": <true/false>,
  "category_l1": "<Food & Dining | Transportation | Shopping | Housing | Utilities | Entertainment | Health | Education | Travel | Investments | Financial | Miscellaneous | Income>",
  "category_l2": "<specific sub-category>"
}"""

PARAMETER temperature 0.1
PARAMETER top_p 0.9
PARAMETER num_ctx 4096
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"