Skip to content

Function: dedupeSuggestions()

dedupeSuggestions(questions): string[]

Dedupe + cap a single flat list of suggested questions (e.g. the initial Genie sample questions). Shares the similarity dedupe and MAX_SUGGESTIONS cap with the follow-up extractor so initial and follow-up suggestions behave identically.

string[] | undefined

string[]