'use client'; import { Bot } from 'lucide-react'; import { useRagQuery } from '../../../hooks/use-rag'; import { useProjectStore } from '../../../lib/stores/project-store'; import { RagSearchBar } from '../../../components/rag/rag-search-bar'; import { RagResultCard } from '../../../components/rag/rag-result-card'; export default function RagPage() { const { selectedProjectId } = useProjectStore(); const { mutate, data, isPending, error, isIdle } = useRagQuery(); const handleSearch = (question: string) => { if (!selectedProjectId) return; mutate({ question, projectPublicId: selectedProjectId }); }; return (
พิมพ์คำถามแล้วกด ค้นหา เพื่อรับคำตอบจากเอกสารโครงการ
)}