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
@@ -0,0 +1,17 @@
export interface SuggestResponse {
suggestions: string[];
}
export async function getDrugSuggestions(prefix: string): Promise<string[]> {
const trimmed = prefix.trim();
if (!trimmed) return [];
try {
const response = await fetch(`/api/suggest?q=${encodeURIComponent(trimmed)}`);
if (!response.ok) return [];
const data: SuggestResponse = await response.json();
return data.suggestions || [];
} catch {
return [];
}
}
+2
View File
@@ -1 +1,3 @@
export * from "./sendChatMessage";
export * from "./getDrugSuggestions";