Query rewritePro
The question as asked and the narrower searches the agent ran to answer it.
On this page
ProThe question as asked and the narrower searches the agent ran.
Installation
Usage
import { QueryRewrite } from "@/components/ui/chatcn/pro/query-rewrite"
<QueryRewrite original={question} queries={searches} />Shows where each search ran, how many results came back and which failed, so a thin answer can be traced to a thin search.
Examples
States
ProCollapsed and one query.
Props
| Prop | Type | Notes |
|---|---|---|
original | string | The question as asked |
queries | SubQuery[] | { id, query, source?, status, results? } |
defaultOpen | boolean | Default true |
Accessibility
- The header is a disclosure button with
aria-expanded. - Failed searches say so in words.