Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

index.tsx

28 lines880 Bytes

1import { createFileRoute } from '@tanstack/react-router'
2import RerankPanel from '@/components/RerankPanel'
3​
4function RerankPage() {
5 return (
6 <div className="min-h-screen bg-gray-900 p-6">
7 <div className="mx-auto max-w-5xl">
8 <header className="mb-8">
9 <h1 className="mb-2 text-3xl font-bold text-white">
10 Document Reranking
11 </h1>
12 <p className="max-w-2xl text-gray-400">
13 A fixed set of support articles, listed newest-first. The rerank
14 model reorders them by how well each one answers the query — the
15 same <code className="font-mono text-gray-300">rerank()</code> call,
16 with a Cohere or an OpenRouter adapter.
17 </p>
18 </header>
19​
20 <RerankPanel />
21 </div>
22 </div>
23 )
25​
26export const Route = createFileRoute('/')({
27 component: RerankPage,
28})