Files
AIRegulation-Demo-Test/src/types/doc.ts
Yuemin.Mao 36f1d9af27 feat: add Status and RagChat pages with corresponding components and styles
- Created StatusPage component with system stats, configuration, and indexed documents overview.
- Added RagChatPage component for chat functionality.
- Introduced global CSS styles for light and dark themes, including utility classes and animations.
- Defined TypeScript types for compliance, documents, and themes.
- Configured Tailwind CSS for dynamic theming and custom animations.
- Set up TypeScript configuration for app and node environments.
- Initialized Vite configuration for React project.
2026-05-07 14:12:32 +08:00

34 lines
582 B
TypeScript

// Document types
export interface Doc {
id: number;
name: string;
chunks: number;
size: string;
status: 'indexed' | 'parsing' | 'pending';
}
// Search result types
export interface SearchResult {
id: number;
score: number;
law: string;
preview: string;
source: string;
}
// Chat message types
export interface ChatMessage {
id: number;
role: 'user' | 'assistant';
content: string;
retrievalIds?: number[];
}
// Retrieval data types
export interface RetrievalData {
id: number;
file: string;
clause: string;
score: number;
content: string;
}