Baza wiedzy projektu (RAG)
PDF regulaminów i dokumentów firmowych — indeksowane do dopasowań i generatora.
{quota && (
Limit: {quota.current}/{quota.limit} plików (plan {quota.plan})
)}
{ e.preventDefault(); setDragging(true); }}
onDragLeave={() => setDragging(false)}
onDrop={onDrop}
onClick={() => fileInputRef.current?.click()}
style={{
border: `2px dashed ${dragging ? '#3b82f6' : '#cbd5e1'}`,
borderRadius: 12, padding: '2rem', textAlign: 'center',
background: dragging ? 'rgba(59,130,246,0.06)' : '#f8fafc',
cursor: uploading ? 'wait' : 'pointer',
}}
>
{uploading ? (
) : (
)}
{uploading ? 'Wysyłanie…' : 'Upuść PDF lub kliknij, aby wybrać'}
Max 20 MB · API: {baseHint || 'relative'}
{loadingList ? (
Ładowanie listy…
) : docs.length === 0 ? (
Brak wgranych dokumentów. Dodaj regulamin programu dla wiarygodnej generacji.
) : (
{docs.map((d) => (
-
{d.filename}
{fmtBytes(d.file_size_bytes || 0)}
{d.chunks_count != null ? ` · ${d.chunks_count} chunków` : ''}
{d.parser_used ? ` · ${d.parser_used}` : ''}
{d.error_message && (
{d.error_message}
)}
))}
)}
);
}