_predict
_predict invoice_id traverses the schema link from bank_transactions to invoices, returning full invoice rows ranked by association. Aito matches description text tokens and amount to find the most likely invoice.
Example query
{
"from": "bank_transactions",
"where": {
"description": "KESKO OYJ HELSINKI",
"amount": 4220
},
"predict": "invoice_id",
"select": [
"$p",
"invoice_id",
"vendor",
"amount",
"$why"
]
}
Verify yourself
Every claim on this page traces back to an Aito query. No separate model file — Aito predicts directly from its index.
Note: GL codes (4100, 5300, 6200…) are illustrative — real Finnish Liikekirjuri uses different numbering. Chosen for demo readability.