Files
lcbp3/frontend/app/(dashboard)/rag/page.tsx
T
admin 26cc71ce60
CI / CD Pipeline / build (push) Successful in 4m54s
CI / CD Pipeline / deploy (push) Successful in 6m19s
690605:2335 ADR-035-135 #1
2026-06-05 23:35:22 +07:00

33 lines
1.2 KiB
TypeScript

'use client';
import { Bot } from 'lucide-react';
import { RagChatWidget } from '../../../components/ai/RagChatWidget';
import { useProjectStore } from '../../../lib/stores/project-store';
export default function RagPage() {
const { selectedProjectId } = useProjectStore();
return (
<div className="container mx-auto max-w-3xl py-8 space-y-6">
<div className="flex items-center gap-2">
<Bot className="h-6 w-6 text-primary" />
<h1 className="text-xl font-semibold">RAG </h1>
</div>
{!selectedProjectId && (
<div className="rounded-md border border-yellow-300 bg-yellow-50 px-4 py-3 text-sm text-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-400 dark:border-yellow-700">
RAG
</div>
)}
{selectedProjectId ? (
<RagChatWidget projectPublicId={selectedProjectId} />
) : (
<p className="text-center text-sm text-muted-foreground pt-4">
RAG pipeline
</p>
)}
</div>
);
}