Checkpoint frontend UI/UX overhaul and ingestion embed benchmark work

This commit is contained in:
2026-08-06 17:21:21 +07:00
parent 1e8cbdb586
commit a4b8e1c4db
78 changed files with 6761 additions and 654 deletions
+16
View File
@@ -2,6 +2,8 @@ export interface Citation {
drugName: string;
sectionType: string;
sourcePageRange: [number, number];
snippet?: string;
reason?: string;
}
export interface ChatMessage {
@@ -10,9 +12,23 @@ export interface ChatMessage {
content: string;
citations?: Citation[];
disclaimer?: string;
traceId?: string;
decision?: string;
reason?: string;
grounded?: boolean;
resolvedDrugId?: string;
createdAt: string;
}
export interface SendMessageRequest {
content: string;
conversationId?: string;
subjectScope?: "human" | "veterinary";
userRole?: "doctor" | "pharmacist" | "general";
}
export interface SendMessageResponse {
message: ChatMessage;
sessionId?: string;
}
+12
View File
@@ -0,0 +1,12 @@
export interface ChatSession {
id: string;
title: string;
createdAt: string;
updatedAt: string;
messageCount: number;
lastDrugQueried?: string;
}
export interface SessionHistoryResponse {
sessions: ChatSession[];
}
+2
View File
@@ -1 +1,3 @@
export * from "./dto/chat";
export * from "./dto/session";