perf(ai-scanner): drop confidence scoring to simplify AI menu import

Removes the per-item confidence field end to end (prompt, extraction
parsing, ai_import_items writes, API responses, low-confidence badge
in the mobile review screen). ai_import_items.confidence column is
left in place but unused (nullable, no destructive migration).
This commit is contained in:
AyrisAI
2026-08-20 05:47:55 +03:00
parent 7b9cfb6858
commit 6cc56a198a
4 changed files with 19 additions and 83 deletions
-3
View File
@@ -78,7 +78,6 @@ export interface AiImportItem {
itemName: string;
description: string | null;
price: number | null;
confidence: number | null;
}
export interface AiExtractedItem {
@@ -86,7 +85,6 @@ export interface AiExtractedItem {
name: string;
description?: string | null;
price: number;
confidence: number;
}
export interface AiExtractedCategory {
@@ -101,7 +99,6 @@ export interface AiImportResponse {
model: string | null;
categories: AiExtractedCategory[];
totalItems: number;
lowConfidenceCount: number;
}
export interface AiImportApplyPayload {