File size: 8,044 Bytes
18ee7b7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
{
"test_requests": {
"image_url_request": {
"description": "ECG analizi için image URL ile istek",
"request": {
"inputs": {
"query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
"image": "https://i.imgur.com/7uuejqO.jpeg"
},
"parameters": {
"max_new_tokens": 512,
"temperature": 0.2,
"top_p": 0.9,
"repetition_penalty": 1.05,
"stop": ["</s>"],
"return_full_text": false
}
}
},
"base64_request": {
"description": "ECG analizi için base64 encoded image ile istek",
"request": {
"inputs": {
"query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
},
"parameters": {
"max_new_tokens": 512,
"temperature": 0.2,
"top_p": 0.9,
"repetition_penalty": 1.05,
"stop": ["</s>"],
"return_full_text": false
}
}
},
"demo_optimized_request": {
"description": "PULSE-7B demo'sunun optimal ayarlarıyla image URL isteği",
"request": {
"inputs": {
"query": "What are the main features and diagnosis in this ECG image?",
"image": "https://i.imgur.com/7uuejqO.jpeg"
},
"parameters": {
"temperature": 0.05,
"max_new_tokens": 4096,
"top_p": 1.0,
"do_sample": true
}
}
},
"minimal_base64_request": {
"description": "Minimal parametrelerle base64 isteği",
"request": {
"inputs": {
"query": "Analyze this ECG image.",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
},
"parameters": {
"temperature": 0.2
}
}
},
"text_only_request": {
"description": "Sadece text ile istek (image olmadan)",
"request": {
"inputs": {
"query": "What are the common causes of atrial fibrillation?"
},
"parameters": {
"max_new_tokens": 256,
"temperature": 0.3,
"top_p": 0.9
}
}
},
"advanced_parameters_request": {
"description": "Gelişmiş parametrelerle image URL isteği",
"request": {
"inputs": {
"query": "Provide detailed ECG analysis including rhythm, rate, intervals, and potential abnormalities.",
"image": "https://i.imgur.com/7uuejqO.jpeg"
},
"parameters": {
"max_new_tokens": 1024,
"temperature": 0.1,
"top_p": 0.95,
"repetition_penalty": 1.1,
"stop": ["</s>", "\n\n"],
"return_full_text": false,
"do_sample": true
}
}
},
"deepseek_enabled_request": {
"description": "DeepSeek Türkçe yorum özelliği aktif - Image URL",
"request": {
"inputs": {
"query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
"image": "https://i.imgur.com/7uuejqO.jpeg"
},
"parameters": {
"max_new_tokens": 512,
"temperature": 0.2,
"top_p": 0.9,
"repetition_penalty": 1.05,
"enable_turkish_commentary": true,
"deepseek_timeout": 30
}
}
},
"deepseek_enabled_base64_request": {
"description": "DeepSeek Türkçe yorum özelliği aktif - Base64",
"request": {
"inputs": {
"query": "What are the main features and diagnosis in this ECG image? Provide a concise, clinical answer.",
"image": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAv/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAX/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwCdABmX/9k="
},
"parameters": {
"max_new_tokens": 512,
"temperature": 0.2,
"enable_turkish_commentary": true,
"deepseek_timeout": 25
}
}
},
"deepseek_disabled_request": {
"description": "DeepSeek Türkçe yorum özelliği deaktif",
"request": {
"inputs": {
"query": "Analyze this ECG image briefly.",
"image": "https://i.imgur.com/7uuejqO.jpeg"
},
"parameters": {
"temperature": 0.2,
"enable_turkish_commentary": false
}
}
}
},
"expected_response_format": {
"description": "Beklenen response formatı (DeepSeek aktif)",
"format": [
{
"generated_text": "Answer: This ECG image shows a sinus rhythm with a normal heart rate...",
"model": "PULSE-7B",
"processing_method": "pipeline",
"comment_text": "Bu EKG sonucu normal sinüs ritmi göstermektedir. Kalp atış hızı normaldir ve düzenli bir ritim görülmektedir...",
"commentary_model": "deepseek-chat",
"commentary_tokens": 85,
"commentary_status": "success"
}
]
},
"expected_response_format_no_commentary": {
"description": "Beklenen response formatı (DeepSeek deaktif)",
"format": [
{
"generated_text": "Answer: This ECG image shows a sinus rhythm with a normal heart rate...",
"model": "PULSE-7B",
"processing_method": "pipeline"
}
]
},
"error_response_format": {
"description": "Hata durumunda response formatı",
"format": [
{
"generated_text": "",
"error": "Error message here...",
"model": "PULSE-7B",
"handler": "Ubden® Team Enhanced Handler",
"success": false
}
]
},
"usage_notes": {
"supported_image_formats": [
"JPEG", "PNG", "GIF", "BMP", "WebP"
],
"supported_input_methods": [
"HTTP/HTTPS URL",
"Base64 encoded with data URI prefix",
"Raw base64 string"
],
"parameter_limits": {
"max_new_tokens": "1-2048",
"temperature": "0.01-2.0",
"top_p": "0.01-1.0",
"repetition_penalty": "1.0-2.0"
},
"query_field_alternatives": [
"query", "text", "prompt"
],
"deepseek_integration": {
"enable_turkish_commentary": "true/false (default: false)",
"deepseek_timeout": "10-60 seconds (default: 30)",
"environment_variable": "deep_key (DeepSeek API key)",
"commentary_status_values": [
"success", "failed", "unavailable", "api_key_missing", "no_text"
]
},
"response_fields_with_commentary": [
"generated_text", "model", "processing_method",
"comment_text", "commentary_model", "commentary_tokens", "commentary_status"
],
"response_fields_without_commentary": [
"generated_text", "model", "processing_method"
]
}
}
|