| <!doctype html> |
| <html lang="he"> |
| <head> |
| <meta charset="utf-8" /> |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| <title>Feedback Intelligence Agent — ממשק ניתוח משובים</title> |
| <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.0/dist/chart.umd.min.js"></script> |
| <style> |
| * { box-sizing: border-box; } |
| body { |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Hebrew', 'Arial Hebrew', sans-serif; |
| margin: 0; |
| direction: rtl; |
| background: linear-gradient(135deg, #03a9f4 0%, #0288d1 50%, #0277bd 100%); |
| min-height: 100vh; |
| color: #0b2545; |
| padding-bottom: 40px; |
| } |
| .container { max-width: 1200px; margin: 24px auto; padding: 24px; } |
| h1 { |
| color: white; |
| text-shadow: 0 2px 8px rgba(0,0,0,0.3); |
| margin: 0 0 24px 0; |
| font-size: 32px; |
| font-weight: 700; |
| } |
| h3 { |
| color: #1976d2; |
| margin-top: 0; |
| font-size: 20px; |
| border-bottom: 2px solid #e3f2fd; |
| padding-bottom: 8px; |
| } |
| header { |
| display:flex; |
| align-items:center; |
| justify-content:space-between; |
| gap:12px; |
| margin-bottom: 24px; |
| background: rgba(255,255,255,0.1); |
| padding: 16px 24px; |
| border-radius: 12px; |
| backdrop-filter: blur(10px); |
| } |
| textarea { |
| width: 100%; |
| height: 140px; |
| font-size: 16px; |
| padding:16px; |
| border-radius:12px; |
| border:2px solid #d0d7e6; |
| font-family: inherit; |
| resize: vertical; |
| transition: all 0.3s; |
| } |
| textarea:focus { |
| outline: none; |
| border-color: #667eea; |
| box-shadow: 0 0 0 4px rgba(102,126,234,0.15); |
| transform: translateY(-2px); |
| } |
| input[type="number"] { |
| padding: 10px 12px; |
| border-radius:8px; |
| border:2px solid #d0d7e6; |
| font-size:14px; |
| width: 100px; |
| transition: all 0.2s; |
| } |
| input[type="number"]:focus { |
| outline: none; |
| border-color: #667eea; |
| box-shadow: 0 0 0 3px rgba(102,126,234,0.1); |
| } |
| button { |
| padding: 12px 24px; |
| margin-top: 8px; |
| border-radius:8px; |
| border: none; |
| cursor: pointer; |
| font-size:15px; |
| font-weight:600; |
| transition: all 0.3s; |
| box-shadow: 0 2px 8px rgba(0,0,0,0.1); |
| } |
| button:disabled { |
| opacity: 0.6; |
| cursor: not-allowed; |
| } |
| .primary { |
| background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%); |
| color: white; |
| font-weight: 700; |
| text-shadow: 0 1px 2px rgba(0,0,0,0.2); |
| border: 2px solid #0d47a1; |
| box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4), inset 0 1px 0 rgba(255,255,255,0.2); |
| } |
| .primary:hover:not(:disabled) { |
| background: linear-gradient(135deg, #0d47a1 0%, #01579b 100%); |
| transform: translateY(-3px); |
| box-shadow: 0 8px 24px rgba(13, 71, 161, 0.5), inset 0 1px 0 rgba(255,255,255,0.2); |
| border-color: #01579b; |
| } |
| .primary:active:not(:disabled) { |
| transform: translateY(-1px); |
| box-shadow: 0 4px 12px rgba(13, 71, 161, 0.4); |
| } |
| .muted { |
| background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%); |
| color: #0d47a1; |
| font-weight: 600; |
| border: 2px solid #1976d2; |
| box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.8); |
| } |
| .muted:hover { |
| background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%); |
| transform: translateY(-2px); |
| box-shadow: 0 4px 16px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8); |
| border-color: #1565c0; |
| } |
| .muted:active { |
| transform: translateY(0); |
| box-shadow: 0 2px 8px rgba(0,0,0,0.15); |
| } |
| .card { |
| border-radius: 20px; |
| padding: 28px; |
| margin-top: 24px; |
| background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); |
| box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08); |
| transition: transform 0.3s ease, box-shadow 0.3s ease; |
| border: 1px solid rgba(255,255,255,0.8); |
| } |
| .card:hover { |
| transform: translateY(-4px); |
| box-shadow: 0 16px 64px rgba(0,0,0,0.18), 0 6px 24px rgba(0,0,0,0.12); |
| } |
| .summary { |
| font-size: 17px; |
| line-height: 1.9; |
| color: #073763; |
| white-space: pre-wrap; |
| word-wrap: break-word; |
| background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); |
| padding: 24px; |
| border-radius: 16px; |
| border-right: 5px solid #1976d2; |
| box-shadow: inset 0 2px 8px rgba(0,0,0,0.05); |
| } |
| .viz-container { |
| background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%); |
| border-radius: 16px; |
| padding: 24px; |
| margin-top: 24px; |
| box-shadow: 0 8px 32px rgba(25, 118, 210, 0.1); |
| border: 2px solid rgba(25, 118, 210, 0.15); |
| } |
| .viz-explanation { |
| background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); |
| padding: 16px 20px; |
| border-radius: 12px; |
| margin-bottom: 20px; |
| border-right: 4px solid #1976d2; |
| color: #0d47a1; |
| font-size: 15px; |
| line-height: 1.7; |
| box-shadow: 0 2px 8px rgba(25, 118, 210, 0.15); |
| } |
| .viz-title { |
| color: #1976d2; |
| font-size: 20px; |
| font-weight: 700; |
| margin-bottom: 16px; |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| } |
| .result { white-space: pre-wrap; } |
| header .title { font-size: 20px; margin:0 } |
| .history-list { margin-top: 20px; } |
| .small { |
| color: rgba(255,255,255,0.9); |
| font-size: 14px; |
| font-weight: 500; |
| } |
| .controls { |
| display:flex; |
| gap:16px; |
| align-items:center; |
| margin-top:16px; |
| flex-wrap: wrap; |
| } |
| label { |
| display:block; |
| margin-bottom:8px; |
| color: #0b2545; |
| font-weight:600; |
| font-size: 15px; |
| } |
| .response-badge { |
| display: inline-block; |
| background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); |
| color: white; |
| padding: 6px 12px; |
| border-radius: 6px; |
| font-size: 13px; |
| margin-bottom: 12px; |
| font-weight: 600; |
| box-shadow: 0 2px 8px rgba(76,175,80,0.3); |
| } |
| .history-item { |
| margin: 16px 0; |
| padding: 16px; |
| background: #f8f9fa; |
| border-radius: 12px; |
| border-right: 4px solid #667eea; |
| transition: all 0.2s; |
| } |
| .history-item:hover { |
| background: #e9ecef; |
| transform: translateX(-4px); |
| } |
| .history-query { |
| font-weight: 600; |
| color: #1976d2; |
| margin-bottom: 8px; |
| } |
| .history-response { |
| color: #555; |
| line-height: 1.6; |
| margin-top: 8px; |
| } |
| input[type="checkbox"] { |
| width: 18px; |
| height: 18px; |
| margin-left: 8px; |
| cursor: pointer; |
| } |
| .loading-container { |
| display: none; |
| text-align: center; |
| padding: 40px 20px; |
| margin-top: 24px; |
| } |
| .loading-container.active { |
| display: block; |
| } |
| .loading-spinner { |
| width: 60px; |
| height: 60px; |
| margin: 0 auto 20px; |
| position: relative; |
| } |
| .loading-spinner::before, |
| .loading-spinner::after { |
| content: ''; |
| position: absolute; |
| border-radius: 50%; |
| border: 4px solid transparent; |
| border-top-color: #1976d2; |
| animation: spin 1s linear infinite; |
| } |
| .loading-spinner::before { |
| width: 60px; |
| height: 60px; |
| border-width: 4px; |
| border-top-color: #1976d2; |
| border-right-color: #42a5f5; |
| } |
| .loading-spinner::after { |
| width: 40px; |
| height: 40px; |
| top: 10px; |
| left: 10px; |
| border-width: 3px; |
| border-top-color: #64b5f6; |
| border-right-color: #90caf9; |
| animation-duration: 0.8s; |
| animation-direction: reverse; |
| } |
| @keyframes spin { |
| 0% { transform: rotate(0deg); } |
| 100% { transform: rotate(360deg); } |
| } |
| .loading-text { |
| color: #1976d2; |
| font-size: 18px; |
| font-weight: 600; |
| margin-top: 20px; |
| animation: pulse 1.5s ease-in-out infinite; |
| } |
| .loading-dots { |
| display: inline-block; |
| } |
| .loading-dots span { |
| display: inline-block; |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background: #1976d2; |
| margin: 0 4px; |
| animation: bounce 1.4s ease-in-out infinite both; |
| } |
| .loading-dots span:nth-child(1) { animation-delay: -0.32s; } |
| .loading-dots span:nth-child(2) { animation-delay: -0.16s; } |
| .loading-dots span:nth-child(3) { animation-delay: 0s; } |
| @keyframes bounce { |
| 0%, 80%, 100% { |
| transform: scale(0); |
| opacity: 0.5; |
| } |
| 40% { |
| transform: scale(1); |
| opacity: 1; |
| } |
| } |
| @keyframes pulse { |
| 0%, 100% { |
| opacity: 1; |
| } |
| 50% { |
| opacity: 0.6; |
| } |
| } |
| </style> |
| </head> |
| <body> |
| <div class="container"> |
| <header> |
| <h1>🤖 Feedback Intelligence Agent</h1> |
| <div style="display: flex; gap: 16px; align-items: center;"> |
| <div class="small" style="background: rgba(255,255,255,0.25); padding: 6px 12px; border-radius: 6px; font-weight: 600;">שרת: <span id="server-status" style="font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.3);">...בדיקה</span></div> |
| <a href="https://github.com/galbendavids/Feedback_Analysis_RAG_Agent_runpod" target="_blank" style="color: white; text-decoration: none; font-size: 14px; padding: 6px 12px; background: rgba(255,255,255,0.2); border-radius: 6px; transition: all 0.2s;">🔗 GitHub</a> |
| <a href="https://github.com/galbendavids/Feedback_Analysis_RAG_Agent_runpod/blob/main/0_preprocessing/Gal%20Shlomo%20Ben%20David%20Ohayone_e-1.pdf" target="_blank" style="color: white; text-decoration: none; font-size: 14px; padding: 6px 12px; background: rgba(255,255,255,0.2); border-radius: 6px; transition: all 0.2s;">📄 קורות חיים</a> |
| </div> |
| </header> |
|
|
| <section class="card"> |
| <label for="query">שאלה</label> |
| <textarea id="query" placeholder="לדוגמה: איך המשתמשים מרגישים כלפי השירות? או: מה המשתמשים אהבו במיוחד?"></textarea> |
| <div style="margin-top:12px;"> |
| <label><input type="checkbox" id="show-sources" /> הצג תוצאות השליפה</label> |
| <span class="small" style="margin-left:12px;">ברירת מחדל: מוסתר — יוצג רק הסיכום האנליטי</span> |
| </div> |
| <div style="display:flex;gap:8px;margin-top:12px;"> |
| <button id="send" class="primary">🔍 שאל</button> |
| <button id="clear-history" class="muted">🗑️ נקה היסטוריה</button> |
| </div> |
| </section> |
|
|
| <section id="loading-container" class="card loading-container"> |
| <div class="loading-spinner"></div> |
| <div class="loading-text"> |
| מנתח את השאלה ומכין תשובה |
| <div class="loading-dots"> |
| <span></span> |
| <span></span> |
| <span></span> |
| </div> |
| </div> |
| </section> |
|
|
| <section id="last-response" class="card" style="display:none;"> |
| <h3 style="color: #1976d2; margin-top: 0;">📊 תגובה אנליטית</h3> |
| <div id="resp-summary" class="summary"></div> |
| <div id="resp-sources" style="display:none; margin-top: 20px;"></div> |
| </section> |
|
|
| <section class="card history-list" id="history-section" style="display:none;"> |
| <h3>📜 היסטוריית שאלות</h3> |
| <div id="history"> |
| <div style="text-align: center; color: #999; padding: 20px;"> |
| אין שאלות קודמות. התחל לשאול שאלות! |
| </div> |
| </div> |
| </section> |
| </div> |
| <script src="/static/app.js"></script> |
| </body> |
| </html> |
|
|