evaluate( )

Pattern

Jev Infinite FAQ

A FAQ whose last row is a live ask field. Jev opens a canned answer when it matches, or a short grounded answer becomes another row.

BeginnerSep 2026View the full pattern on desktop
Jev Infinite FAQ preview

Problems solved

  • Open a canned FAQ answer from free-form wording
  • Append a grounded answer as another FAQ row
  • Refuse when the passages cannot answer

Use cases

  • FAQ that accepts any wording
  • Growing the accordion with live answers
  • Teaching Jev match then grounded generateText

AI SDK APIs

experimental_evaluategenerateText

Tags

jevevaluationtyped-decisionschoicefaqai-sdkgenerateText

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