File size: 2,451 Bytes
4416e3b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Retail Assistant | Product Knowledge RAG</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>

<body>
    <div class="container">
        <header>
            <h1><i class="fas fa-robot"></i> Retail Genius</h1>
            <p class="subtitle">AI-Powered Product Knowledge Assistant</p>
        </header>

        <main class="chat-card">
            <div id="chat-history" class="chat-history">
                <div class="message bot-message">
                    <i class="fas fa-hand-wave"></i> Hello! I'm your retail knowledge assistant. Ask me anything about
                    our products, pricing, or customer reviews!
                </div>
            </div>

            <div class="suggestions">
                <p><i class="fas fa-lightbulb"></i> Try asking:</p>
                <div class="suggestion-chips">
                    <button class="chip" data-query="Which Kindle has the best resolution?">Kindle Resolution</button>
                    <button class="chip" data-query="Compare Paperwhite vs Voyage battery life.">Paperwhite vs
                        Voyage</button>
                    <button class="chip" data-query="What do reviews say about the Fire TV?">Fire TV Reviews</button>
                    <button class="chip" data-query="Is there a Kindle with physical buttons?">Physical
                        Buttons?</button>
                </div>
            </div>

            <div class="input-group">
                <input type="text" id="query-input" placeholder="Ask a question..." autocomplete="off">
                <button id="send-btn"><i class="fas fa-paper-plane"></i></button>
            </div>
        </main>
    </div>
    <script src="{{ url_for('static', filename='js/main.js') }}"></script>
</body>

</html>