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


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
AI_GATEWAY_API_KEYGet key
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 desktopRelated patterns


Jev Semantic Clustering
Discover themes in comments with no labels up front. Embeddings pick likely pairs, Jev answers one boolean per pair, and code does the grouping.
jevevaluation+5
View pattern →


Jev Output Verifier
Write an answer, then show it only if Jev is at least 90% sure it actually answers the question. If not, rewrite once.
jevevaluation+4
View pattern →



