Rules first, models second: how Alfred zooms in on the right value

Why we don't ask AI to do everything, and how Alfred approaches each invoice in stages, like a photographer zooming in, until it keeps the best value.

· Nesolva team

When we started designing Alfred, the obvious idea was on the table: send every invoice to an artificial intelligence model, ask it for the data and move on.

In a demo, it works beautifully. In a company’s day to day, three problems show up.

The cost grows with every invoice, and invoices never stop coming.

The same question doesn’t always get the same answer. If an invoice produces one result today and a different one tomorrow, nobody can explain why an amount ended up in the accounting system.

Mistakes look convincing. An invented value in the right format is the worst possible error, because nobody suspects it.

So we turned the question around. Instead of “what can AI do?”, we asked: “how would a careful person get to the right value?”.

Like a photographer zooming in

Think about how you look at an invoice you’ve never seen. First, from a distance: you recognize the shape, where the total usually sits, where the supplier’s logo is. Often that’s enough.

When it isn’t, you get closer. You read slower, compare, look for clues. Only what still isn’t clear makes you stop and think hard.

Alfred works the same way. It looks at each invoice in finer and finer stages, and each stage focuses only on what the previous one couldn’t solve. Alfred handles the simple things fast and the same way every time. Artificial intelligence comes in at the end, with less left to do and more context, which is where it adds the most.

Every value has to make sense

A value Alfred finds also has to make sense for your business.

If your company’s purchase order numbers always follow a certain shape, Alfred discards a value that doesn’t, even if it looks reasonable. If a total doesn’t match its taxes, something is wrong. Alfred checks every value against those rules before accepting it.

What you get from this approach

  • The same invoice produces the same result, today and a year from now.
  • Costs stay predictable, because Alfred uses the most expensive part of the process only when it needs it.
  • Every value knows where it came from, so you can explain it.
  • The system works well without someone watching over it.

What Alfred taught us about AI

Artificial intelligence works better as a piece of a good system than as the whole system. With stages that prepare its work and rules that check it, it’s excellent. On its own, it keeps surprising you.

We apply the same judgement in all our applied AI projects. If you want to see it working with your own invoices, meet Alfred.

Keep reading

Facing a similar problem?

We like talking about these topics with the people living them. Tell us about your case.

We reply within 1 business day.