evaluate( )

Pattern

Jev Entity Resolution

Resolve messy card statement descriptors to the merchants behind them. Code blocks and vetoes, Jev answers one boolean per pair, and unsure matches wait for review.

IntermediateOct 2026View the full pattern on desktop
Jev Entity Resolution preview

Problems solved

  • Match records that name the same real-world thing in different words
  • Keep hard conflicts and merges in code while a model judges identity
  • Send unsure matches to a review queue instead of merging them

Use cases

  • Merchant names from card or bank statement lines
  • Duplicate customers or companies across two lists
  • Matching products across supplier catalogs

AI SDK APIs

experimental_evaluateembedManygenerateTextgateway

Tags

jevevaluationtyped-decisionsbooleanentity-resolutiondeduplicationembeddingsai-sdk

Requirements

Node.js
24+
Memory
256MB
Other
  • Vercel AI Gateway API key

Environment variables

External services

vercel-ai-gatewayupstash

Ready to use?

View the full interactive pattern with live preview and copy the source code.

View the pattern on desktop

Related patterns