[], 'error' => 'Query too short']); exit; } $rows = JarvisDB::query( "SELECT role, content, created_at FROM conversations WHERE content LIKE ? ORDER BY created_at DESC LIMIT 25", ['%' . $q . '%'] ) ?? []; echo json_encode(['results' => $rows, 'total' => count($rows)]);