Spaces:
Sleeping
Sleeping
File size: 630 Bytes
ff0e173 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | // 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 }>;
}
|