AI searchPro
Answer engine with streamed reasoning, inline citations, sources and follow-ups.
What's inside
- Streamed reasoning
- Inline citations
- Source cards
- Follow-up questions
When to use
- Docs search, research assistants and knowledge bases.
When not to use
- Open-ended chat: use the AI chat block.
Installation
Usage
Import it from @/components/blocks/ai-search after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { AiSearch } from "@/components/blocks/ai-search";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<AiSearch />
</main>
);
}API reference
AiSearch
An answer engine: question box, streamed reasoning steps, an answer with inline citations, source cards and related questions. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Enter | Ask |
| Tab | Reach citations, sources and related questions |
Accessibility
- The answer is marked aria-busy while streaming; citation marks link to their sources.
Motion
- Reasoning steps appear one by one then fold; the answer types out with a cursor; related questions fade in last.
Responsive behavior
- Single column; sources go 2-up from 640px.
Performance
- Streams by revealing characters of a known answer; swap in your token stream.
Notes for AI
- Return citations as indices into your sources array, as in ANSWER.
This page as Markdown, for assistants and coding agents:
/blocks/ai-search/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt