Document_Query / lib /kb-data.ts
Reubencf's picture
Deploy Next.js Query Bot as Docker Space
ff0e173
Raw
History Blame Contribute Delete
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 }>;
}