Spaces:
Sleeping
Sleeping
Download lib/kb-data.ts from Reubencf/Document_Query: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/Reubencf/Document_Query/resolve/main/lib/kb-data.ts
- Command line
-
hf download hf://spaces/Reubencf/Document_Query/lib/kb-data.ts
-
curl -L -o kb-data.ts https://huggingface.co/spaces/Reubencf/Document_Query/resolve/main/lib/kb-data.ts
630 Bytes
| // Shared types for the knowledge base UI. The source of truth lives server-side | |
| // (see lib/kb-store.ts) and is accessed by the client through the /api routes. | |
| export interface KBFile { | |
| id: string; | |
| name: string; | |
| type: 'PDF' | 'DOCX' | 'EXCEL' | 'CSV'; | |
| size: string; | |
| status: 'Processing' | 'Ready' | 'Failed'; | |
| uploadedAt: string; | |
| } | |
| export interface KBPair { | |
| id: string; | |
| question: string; | |
| answer: string; | |
| category: string; | |
| prioritize: boolean; | |
| } | |
| export interface ChatMessage { | |
| id: string; | |
| sender: 'user' | 'ai'; | |
| text: string; | |
| timestamp: string; | |
| sources?: Array<{ name: string; type: string }>; | |
| } | |