the-main-method commited on
Commit
654254b
·
1 Parent(s): 90c0cc0

feat: enhance onboarding tour to walkthrough each tab and set groq as default model provider

Browse files
Files changed (1) hide show
  1. app/static/app.js +7 -2
app/static/app.js CHANGED
@@ -10,7 +10,7 @@ let currentRecommendations = [];
10
  let activeDebateItem = null;
11
 
12
  // API Provider Configurations
13
- let currentProvider = localStorage.getItem("tastetwin_provider") || "heuristic";
14
  let currentApiKey = localStorage.getItem("tastetwin_apikey") || "";
15
 
16
  // ----------------------------------------------------------------------
@@ -63,7 +63,12 @@ document.addEventListener("DOMContentLoaded", async () => {
63
  steps: [
64
  { element: '#engine-provider', popover: { title: 'Welcome to TasteTwin!', description: 'Start by selecting an execution mode. You can use the blazing-fast Local Heuristics, or select an LLM like Groq Llama 3.', side: "bottom", align: 'start' } },
65
  { element: '#api-key-input', popover: { title: 'Need an API Key?', description: 'If you select an LLM, you will need an API key. You can get a free, ultra-fast Groq API key by clicking <a href="https://console.groq.com/keys" target="_blank" style="color:var(--accent-primary);text-decoration:underline;font-weight:bold;">console.groq.com</a>.', side: "bottom", align: 'start' } },
66
- { element: '.sidebar-nav', popover: { title: 'Explore the Dashboard', description: 'Navigate through the tabs to test User Profiling, run Multi-Agent Debates, and explore the internal algorithms.', side: "right", align: 'start' } }
 
 
 
 
 
67
  ],
68
  onDestroyStarted: () => {
69
  localStorage.setItem('tasteTwinTourDone', 'true');
 
10
  let activeDebateItem = null;
11
 
12
  // API Provider Configurations
13
+ let currentProvider = localStorage.getItem("tastetwin_provider") || "groq";
14
  let currentApiKey = localStorage.getItem("tastetwin_apikey") || "";
15
 
16
  // ----------------------------------------------------------------------
 
63
  steps: [
64
  { element: '#engine-provider', popover: { title: 'Welcome to TasteTwin!', description: 'Start by selecting an execution mode. You can use the blazing-fast Local Heuristics, or select an LLM like Groq Llama 3.', side: "bottom", align: 'start' } },
65
  { element: '#api-key-input', popover: { title: 'Need an API Key?', description: 'If you select an LLM, you will need an API key. You can get a free, ultra-fast Groq API key by clicking <a href="https://console.groq.com/keys" target="_blank" style="color:var(--accent-primary);text-decoration:underline;font-weight:bold;">console.groq.com</a>.', side: "bottom", align: 'start' } },
66
+ { element: 'button[data-tab="tab-sandbox"]', popover: { title: 'User Sandbox', description: 'This is where you explore the Digital Twin memory. Select different users to load their historical data, preferences, and generated Taste DNA.', side: "right", align: 'start' } },
67
+ { element: 'button[data-tab="tab-taste-map"]', popover: { title: 'Taste Map', description: 'Visually explore how the algorithm clusters users and items in a mathematical vector space based on behavioral similarity.', side: "right", align: 'start' } },
68
+ { element: 'button[data-tab="tab-chatbot"]', popover: { title: 'Twin Chatbot', description: 'Chat directly with the simulated Digital Twin! It embodies the persona, constraints, and memories of the selected user.', side: "right", align: 'start' } },
69
+ { element: 'button[data-tab="tab-taska"]', popover: { title: 'Task A: Review Gen', description: 'Generate realistic, culturally-contextualized product reviews based exactly on the user\'s internal Taste DNA and mood.', side: "right", align: 'start' } },
70
+ { element: 'button[data-tab="tab-taskb"]', popover: { title: 'Task B: Recommendations', description: 'Watch specialized AI agents debate and recommend the perfect item based on Taste, Budget, Novelty, and Nigerian Context.', side: "right", align: 'start' } },
71
+ { element: 'button[data-tab="tab-evaluation"]', popover: { title: 'Mathematical Evaluation', description: 'View the raw performance metrics of our custom Coordinate Descent ranking engine.', side: "right", align: 'start' } }
72
  ],
73
  onDestroyStarted: () => {
74
  localStorage.setItem('tasteTwinTourDone', 'true');