Upload folder using huggingface_hub
Browse files- README.md +118 -5
- app.py +470 -0
- data/chunks.json +0 -0
- data/conversations.json +160 -0
- data/dataset-manifest.json +80 -0
- data/faqs.json +168 -0
- requirements.txt +3 -0
README.md
CHANGED
|
@@ -1,12 +1,125 @@
|
|
| 1 |
---
|
| 2 |
-
title: Prometheus Academy Builder
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: blue
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Prometheus - Academy Builder Assistant
|
| 3 |
+
emoji: 🎓
|
| 4 |
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
tags:
|
| 12 |
+
- education
|
| 13 |
+
- gamification
|
| 14 |
+
- corporate-training
|
| 15 |
+
- rag
|
| 16 |
+
- chatbot
|
| 17 |
+
- sales-assistant
|
| 18 |
+
- portuguese
|
| 19 |
+
- english
|
| 20 |
---
|
| 21 |
|
| 22 |
+
# 🎓 Prometheus - Academy Builder AI Assistant
|
| 23 |
+
|
| 24 |
+
**Prometheus** é o assistente de IA híbrido (vendas + educacional) da **Academy Builder**, plataforma líder em academias corporativas gamificadas.
|
| 25 |
+
|
| 26 |
+
## 🎯 Funcionalidades
|
| 27 |
+
|
| 28 |
+
### Assistente de Vendas
|
| 29 |
+
- Responder perguntas sobre produtos e preços
|
| 30 |
+
- Qualificar leads e identificar necessidades
|
| 31 |
+
- Agendar demonstrações
|
| 32 |
+
- Superar objeções comuns
|
| 33 |
+
|
| 34 |
+
### Assistente Educacional
|
| 35 |
+
- Explicar conceitos de gamificação e aprendizagem
|
| 36 |
+
- Orientar sobre metodologias de ensino (andragogia, microlearning)
|
| 37 |
+
- Ajudar no design de cursos
|
| 38 |
+
- Responder dúvidas sobre a plataforma
|
| 39 |
+
|
| 40 |
+
### Suporte ao Cliente
|
| 41 |
+
- Resolver problemas técnicos comuns
|
| 42 |
+
- Guiar usuários na plataforma
|
| 43 |
+
- Informar sobre integrações (SSO, HRIS, SCORM)
|
| 44 |
+
|
| 45 |
+
## 🤖 Tecnologia
|
| 46 |
+
|
| 47 |
+
### Sistema RAG (Retrieval-Augmented Generation)
|
| 48 |
+
- Base de conhecimento com 200+ chunks de documentação
|
| 49 |
+
- Conversas sintéticas para exemplos de resposta
|
| 50 |
+
- FAQs estruturadas
|
| 51 |
+
- Busca semântica por similaridade
|
| 52 |
+
|
| 53 |
+
### Stack Técnico
|
| 54 |
+
- **Interface**: Gradio 4.44
|
| 55 |
+
- **LLM**: GPT-4.1-mini (quando disponível)
|
| 56 |
+
- **Fallback**: Sistema baseado em regras
|
| 57 |
+
- **Idiomas**: PT-BR e EN
|
| 58 |
+
|
| 59 |
+
## 📊 Dataset
|
| 60 |
+
|
| 61 |
+
O Prometheus foi treinado com dados sobre:
|
| 62 |
+
|
| 63 |
+
| Categoria | Documentos | Descrição |
|
| 64 |
+
|-----------|------------|-----------|
|
| 65 |
+
| Company Docs | 1 | Documentação técnica da plataforma |
|
| 66 |
+
| Blog Content | 4 | Posts SEO sobre gamificação e treinamento |
|
| 67 |
+
| Marketing | 2 | Estratégias de social media e vídeo |
|
| 68 |
+
| Research | 4 | Fundamentos educacionais e técnicos |
|
| 69 |
+
| Project Mgmt | 2 | Planejamento e ideias |
|
| 70 |
+
|
| 71 |
+
### Estatísticas
|
| 72 |
+
- **Total de Chunks**: 213
|
| 73 |
+
- **Palavras estimadas**: 50,000+
|
| 74 |
+
- **Tokens estimados**: 65,000+
|
| 75 |
+
- **Conversas sintéticas**: 50+
|
| 76 |
+
- **FAQs**: 20+
|
| 77 |
+
|
| 78 |
+
## 🚀 Como Usar
|
| 79 |
+
|
| 80 |
+
1. Digite sua pergunta no campo de texto
|
| 81 |
+
2. Clique em "Enviar" ou pressione Enter
|
| 82 |
+
3. O Prometheus responderá usando sua base de conhecimento
|
| 83 |
+
|
| 84 |
+
### Exemplos de Perguntas
|
| 85 |
+
|
| 86 |
+
**Vendas:**
|
| 87 |
+
- "Quais são os planos e preços da Academy Builder?"
|
| 88 |
+
- "Qual o ROI típico de uma academia corporativa?"
|
| 89 |
+
|
| 90 |
+
**Educacional:**
|
| 91 |
+
- "Como a gamificação melhora a retenção de aprendizado?"
|
| 92 |
+
- "Qual a diferença entre pedagogia e andragogia?"
|
| 93 |
+
|
| 94 |
+
**Técnico:**
|
| 95 |
+
- "Quais integrações estão disponíveis?"
|
| 96 |
+
- "A plataforma suporta SSO?"
|
| 97 |
+
|
| 98 |
+
## 🔧 Configuração
|
| 99 |
+
|
| 100 |
+
### Variáveis de Ambiente (Opcionais)
|
| 101 |
+
- `OPENAI_API_KEY`: Para usar GPT-4.1-mini como LLM
|
| 102 |
+
- `HF_TOKEN`: Token do Hugging Face
|
| 103 |
+
|
| 104 |
+
Sem as variáveis, o sistema usa respostas baseadas em regras.
|
| 105 |
+
|
| 106 |
+
## 📚 Referências Educacionais
|
| 107 |
+
|
| 108 |
+
### Teorias de Aprendizagem
|
| 109 |
+
- **Andragogia** (Malcolm Knowles) - 6 princípios de aprendizagem adulta
|
| 110 |
+
- **Zona de Desenvolvimento Proximal** (Vygotsky)
|
| 111 |
+
- **Taxonomia de Bloom** - Hierarquia de objetivos
|
| 112 |
+
- **Growth Mindset** (Carol Dweck)
|
| 113 |
+
|
| 114 |
+
### Frameworks de Gamificação
|
| 115 |
+
- **Octalysis** (Yu-kai Chou) - 8 motivadores centrais
|
| 116 |
+
- **MDA Framework** - Mechanics, Dynamics, Aesthetics
|
| 117 |
+
- **Player Types** (Bartle)
|
| 118 |
+
|
| 119 |
+
## 👥 Créditos
|
| 120 |
+
|
| 121 |
+
Desenvolvido por **Academy Builder / MSC Academy** © 2026
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
*Este Space faz parte do projeto de treinamento do agente Prometheus para assistência em vendas e educação corporativa.*
|
app.py
ADDED
|
@@ -0,0 +1,470 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Prometheus - Academy Builder AI Assistant
|
| 3 |
+
=========================================
|
| 4 |
+
Assistente híbrido de vendas + educacional com sistema RAG
|
| 5 |
+
para a plataforma Academy Builder de academias corporativas gamificadas.
|
| 6 |
+
|
| 7 |
+
Desenvolvido para Hugging Face Spaces com Gradio.
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import gradio as gr
|
| 11 |
+
import json
|
| 12 |
+
import os
|
| 13 |
+
from typing import List, Tuple, Optional
|
| 14 |
+
import numpy as np
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
# Configuração de ambiente
|
| 18 |
+
HF_TOKEN = os.environ.get("HF_TOKEN", "")
|
| 19 |
+
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY", "")
|
| 20 |
+
|
| 21 |
+
# ============================================================================
|
| 22 |
+
# SISTEMA DE CONHECIMENTO (RAG Simplificado)
|
| 23 |
+
# ============================================================================
|
| 24 |
+
|
| 25 |
+
class KnowledgeBase:
|
| 26 |
+
"""Base de conhecimento do Prometheus com busca semântica simplificada."""
|
| 27 |
+
|
| 28 |
+
def __init__(self):
|
| 29 |
+
self.chunks = []
|
| 30 |
+
self.conversations = []
|
| 31 |
+
self.faqs = []
|
| 32 |
+
self.load_data()
|
| 33 |
+
|
| 34 |
+
def load_data(self):
|
| 35 |
+
"""Carrega os dados do dataset."""
|
| 36 |
+
try:
|
| 37 |
+
# Carregar chunks
|
| 38 |
+
chunks_path = Path("data/chunks.json")
|
| 39 |
+
if chunks_path.exists():
|
| 40 |
+
with open(chunks_path, "r", encoding="utf-8") as f:
|
| 41 |
+
self.chunks = json.load(f)
|
| 42 |
+
print(f"✅ Carregados {len(self.chunks)} chunks")
|
| 43 |
+
|
| 44 |
+
# Carregar conversas sintéticas
|
| 45 |
+
conv_path = Path("data/conversations.json")
|
| 46 |
+
if conv_path.exists():
|
| 47 |
+
with open(conv_path, "r", encoding="utf-8") as f:
|
| 48 |
+
data = json.load(f)
|
| 49 |
+
self.conversations = data.get("conversations", [])
|
| 50 |
+
print(f"✅ Carregadas {len(self.conversations)} conversas")
|
| 51 |
+
|
| 52 |
+
# Carregar FAQs
|
| 53 |
+
faqs_path = Path("data/faqs.json")
|
| 54 |
+
if faqs_path.exists():
|
| 55 |
+
with open(faqs_path, "r", encoding="utf-8") as f:
|
| 56 |
+
data = json.load(f)
|
| 57 |
+
self.faqs = data.get("faqs", [])
|
| 58 |
+
print(f"✅ Carregadas {len(self.faqs)} FAQs")
|
| 59 |
+
|
| 60 |
+
except Exception as e:
|
| 61 |
+
print(f"⚠️ Erro ao carregar dados: {e}")
|
| 62 |
+
|
| 63 |
+
def search(self, query: str, top_k: int = 5) -> List[dict]:
|
| 64 |
+
"""Busca por similaridade simples baseada em palavras-chave."""
|
| 65 |
+
query_lower = query.lower()
|
| 66 |
+
query_words = set(query_lower.split())
|
| 67 |
+
|
| 68 |
+
scored_chunks = []
|
| 69 |
+
for chunk in self.chunks:
|
| 70 |
+
text_lower = chunk.get("text", "").lower()
|
| 71 |
+
# Score baseado em palavras encontradas
|
| 72 |
+
score = sum(1 for word in query_words if word in text_lower)
|
| 73 |
+
if score > 0:
|
| 74 |
+
scored_chunks.append((score, chunk))
|
| 75 |
+
|
| 76 |
+
# Ordenar por score e retornar top_k
|
| 77 |
+
scored_chunks.sort(key=lambda x: x[0], reverse=True)
|
| 78 |
+
return [chunk for _, chunk in scored_chunks[:top_k]]
|
| 79 |
+
|
| 80 |
+
def get_relevant_context(self, query: str) -> str:
|
| 81 |
+
"""Retorna contexto relevante para a query."""
|
| 82 |
+
chunks = self.search(query, top_k=3)
|
| 83 |
+
if not chunks:
|
| 84 |
+
return ""
|
| 85 |
+
|
| 86 |
+
context_parts = []
|
| 87 |
+
for chunk in chunks:
|
| 88 |
+
text = chunk.get("text", "")
|
| 89 |
+
section = chunk.get("section_title", "")
|
| 90 |
+
if section:
|
| 91 |
+
context_parts.append(f"**{section}**\n{text}")
|
| 92 |
+
else:
|
| 93 |
+
context_parts.append(text)
|
| 94 |
+
|
| 95 |
+
return "\n\n---\n\n".join(context_parts)
|
| 96 |
+
|
| 97 |
+
def find_similar_conversation(self, query: str) -> Optional[dict]:
|
| 98 |
+
"""Encontra uma conversa similar para usar como exemplo."""
|
| 99 |
+
query_lower = query.lower()
|
| 100 |
+
|
| 101 |
+
# Palavras-chave para cada tipo de conversa
|
| 102 |
+
type_keywords = {
|
| 103 |
+
"sales_inquiry": ["preço", "custo", "plano", "price", "cost", "plan", "demo"],
|
| 104 |
+
"educational_support": ["como", "explicar", "aprender", "how", "explain", "learn"],
|
| 105 |
+
"roi_discussion": ["roi", "retorno", "investimento", "return", "investment"],
|
| 106 |
+
"technical_question": ["integração", "api", "sso", "integration", "technical"],
|
| 107 |
+
"pricing_inquiry": ["preço", "valor", "quanto", "price", "pricing", "cost"],
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
for conv in self.conversations:
|
| 111 |
+
conv_type = conv.get("type", "")
|
| 112 |
+
keywords = type_keywords.get(conv_type, [])
|
| 113 |
+
if any(kw in query_lower for kw in keywords):
|
| 114 |
+
return conv
|
| 115 |
+
|
| 116 |
+
return None
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
# Instância global da base de conhecimento
|
| 120 |
+
kb = KnowledgeBase()
|
| 121 |
+
|
| 122 |
+
# ============================================================================
|
| 123 |
+
# SISTEMA DE PROMPT E RESPOSTA
|
| 124 |
+
# ============================================================================
|
| 125 |
+
|
| 126 |
+
SYSTEM_PROMPT = """Você é o **Prometheus**, o assistente de IA da Academy Builder - plataforma líder em academias corporativas gamificadas.
|
| 127 |
+
|
| 128 |
+
## Sua Personalidade
|
| 129 |
+
- Profissional mas acessível
|
| 130 |
+
- Entusiasta sobre gamificação e aprendizagem
|
| 131 |
+
- Focado em resultados e ROI
|
| 132 |
+
- Bilíngue (PT-BR e EN) - responda no idioma do usuário
|
| 133 |
+
|
| 134 |
+
## Suas Capacidades
|
| 135 |
+
1. **Vendas**: Apresentar produtos, responder sobre preços, agendar demos
|
| 136 |
+
2. **Educacional**: Explicar conceitos de gamificação, andragogia, design instrucional
|
| 137 |
+
3. **Suporte**: Ajudar com dúvidas sobre a plataforma
|
| 138 |
+
4. **Consultoria**: Orientar sobre melhores práticas em treinamento corporativo
|
| 139 |
+
|
| 140 |
+
## Informações Chave sobre Academy Builder
|
| 141 |
+
- Plataforma de academias corporativas gamificadas
|
| 142 |
+
- Sistema de XP, badges, leaderboards e missões diárias
|
| 143 |
+
- Aumento médio de 60% nas taxas de conclusão
|
| 144 |
+
- Integração com SSO (SAML, OAuth), HRIS (Workday, SAP)
|
| 145 |
+
- Conformidade SCORM/xAPI
|
| 146 |
+
- Analytics avançado e lead scoring
|
| 147 |
+
|
| 148 |
+
## Diretrizes de Resposta
|
| 149 |
+
- Use formatação Markdown para clareza
|
| 150 |
+
- Inclua dados e estatísticas quando relevante
|
| 151 |
+
- Ofereça próximos passos claros
|
| 152 |
+
- Seja conciso mas completo
|
| 153 |
+
- Personalize com base no contexto do usuário
|
| 154 |
+
"""
|
| 155 |
+
|
| 156 |
+
def generate_response(message: str, history: List[Tuple[str, str]]) -> str:
|
| 157 |
+
"""Gera resposta usando contexto RAG e LLM."""
|
| 158 |
+
|
| 159 |
+
# Buscar contexto relevante
|
| 160 |
+
context = kb.get_relevant_context(message)
|
| 161 |
+
|
| 162 |
+
# Buscar conversa similar como exemplo
|
| 163 |
+
similar_conv = kb.find_similar_conversation(message)
|
| 164 |
+
|
| 165 |
+
# Construir prompt aumentado
|
| 166 |
+
augmented_prompt = SYSTEM_PROMPT
|
| 167 |
+
|
| 168 |
+
if context:
|
| 169 |
+
augmented_prompt += f"\n\n## Contexto Relevante da Base de Conhecimento\n{context}"
|
| 170 |
+
|
| 171 |
+
if similar_conv:
|
| 172 |
+
example_messages = similar_conv.get("messages", [])
|
| 173 |
+
if len(example_messages) >= 2:
|
| 174 |
+
example_q = example_messages[0].get("content", "")
|
| 175 |
+
example_a = example_messages[1].get("content", "")
|
| 176 |
+
augmented_prompt += f"\n\n## Exemplo de Resposta Similar\nPergunta: {example_q}\nResposta: {example_a}"
|
| 177 |
+
|
| 178 |
+
# Se não tiver API key, usar resposta baseada em regras
|
| 179 |
+
if not OPENAI_API_KEY:
|
| 180 |
+
return generate_rule_based_response(message, context, similar_conv)
|
| 181 |
+
|
| 182 |
+
# Usar OpenAI API se disponível
|
| 183 |
+
try:
|
| 184 |
+
from openai import OpenAI
|
| 185 |
+
client = OpenAI(api_key=OPENAI_API_KEY)
|
| 186 |
+
|
| 187 |
+
messages = [{"role": "system", "content": augmented_prompt}]
|
| 188 |
+
|
| 189 |
+
# Adicionar histórico
|
| 190 |
+
for user_msg, assistant_msg in history:
|
| 191 |
+
messages.append({"role": "user", "content": user_msg})
|
| 192 |
+
messages.append({"role": "assistant", "content": assistant_msg})
|
| 193 |
+
|
| 194 |
+
messages.append({"role": "user", "content": message})
|
| 195 |
+
|
| 196 |
+
response = client.chat.completions.create(
|
| 197 |
+
model="gpt-4.1-mini",
|
| 198 |
+
messages=messages,
|
| 199 |
+
temperature=0.7,
|
| 200 |
+
max_tokens=1000
|
| 201 |
+
)
|
| 202 |
+
|
| 203 |
+
return response.choices[0].message.content
|
| 204 |
+
|
| 205 |
+
except Exception as e:
|
| 206 |
+
print(f"Erro na API: {e}")
|
| 207 |
+
return generate_rule_based_response(message, context, similar_conv)
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
def generate_rule_based_response(message: str, context: str, similar_conv: Optional[dict]) -> str:
|
| 211 |
+
"""Gera resposta baseada em regras quando LLM não está disponível."""
|
| 212 |
+
|
| 213 |
+
message_lower = message.lower()
|
| 214 |
+
|
| 215 |
+
# Saudações
|
| 216 |
+
if any(word in message_lower for word in ["olá", "oi", "hello", "hi", "bom dia", "boa tarde"]):
|
| 217 |
+
return """Olá! 👋 Sou o **Prometheus**, assistente de IA da Academy Builder.
|
| 218 |
+
|
| 219 |
+
Posso ajudá-lo com:
|
| 220 |
+
- 📊 **Informações sobre nossa plataforma** de academias corporativas gamificadas
|
| 221 |
+
- 💰 **Preços e planos** disponíveis
|
| 222 |
+
- 🎓 **Conceitos educacionais** como gamificação, andragogia e design instrucional
|
| 223 |
+
- 🔧 **Suporte técnico** sobre integrações e funcionalidades
|
| 224 |
+
|
| 225 |
+
Como posso ajudá-lo hoje?"""
|
| 226 |
+
|
| 227 |
+
# Preços
|
| 228 |
+
if any(word in message_lower for word in ["preço", "custo", "valor", "price", "pricing", "quanto custa"]):
|
| 229 |
+
return """## 💰 Planos Academy Builder
|
| 230 |
+
|
| 231 |
+
| Plano | Preço | Usuários | Recursos |
|
| 232 |
+
|-------|-------|----------|----------|
|
| 233 |
+
| **Starter** | $5/usuário/mês | Mín. 50 | Gamificação básica, 20 cursos, analytics básico |
|
| 234 |
+
| **Professional** | $12/usuário/mês | Mín. 100 | Gamificação avançada, cursos ilimitados, SSO |
|
| 235 |
+
| **Enterprise** | Personalizado | 500+ | Tudo + branding, API, gerente dedicado |
|
| 236 |
+
|
| 237 |
+
### Descontos por Volume
|
| 238 |
+
- 500-999 usuários: **10% off**
|
| 239 |
+
- 1000-4999 usuários: **20% off**
|
| 240 |
+
- 5000+ usuários: **Negociação especial**
|
| 241 |
+
|
| 242 |
+
Gostaria de agendar uma demonstração personalizada? 🎯"""
|
| 243 |
+
|
| 244 |
+
# Gamificação
|
| 245 |
+
if any(word in message_lower for word in ["gamificação", "gamification", "xp", "badge", "leaderboard"]):
|
| 246 |
+
if context:
|
| 247 |
+
return f"""## 🎮 Gamificação na Academy Builder
|
| 248 |
+
|
| 249 |
+
{context[:1500]}
|
| 250 |
+
|
| 251 |
+
### Nossos Elementos de Gamificação
|
| 252 |
+
- **Sistema de XP**: Pontos por completar módulos e desafios
|
| 253 |
+
- **Badges**: Conquistas visuais por marcos alcançados
|
| 254 |
+
- **Leaderboards**: Rankings que estimulam competição saudável
|
| 255 |
+
- **Missões Diárias**: Microlearning que mantém engajamento
|
| 256 |
+
|
| 257 |
+
Nossos clientes reportam **aumento médio de 60%** nas taxas de conclusão!
|
| 258 |
+
|
| 259 |
+
Quer saber mais sobre algum elemento específico?"""
|
| 260 |
+
else:
|
| 261 |
+
return """## 🎮 Gamificação na Academy Builder
|
| 262 |
+
|
| 263 |
+
A gamificação é o coração da nossa plataforma! Transformamos treinamentos em experiências envolventes usando:
|
| 264 |
+
|
| 265 |
+
### Elementos Principais
|
| 266 |
+
- **Sistema de XP e Níveis**: Colaboradores ganham pontos ao completar módulos
|
| 267 |
+
- **Badges e Conquistas**: Reconhecimento visual por marcos alcançados
|
| 268 |
+
- **Leaderboards**: Rankings que estimulam competição saudável
|
| 269 |
+
- **Missões Diárias**: Microlearning gamificado para engajamento constante
|
| 270 |
+
|
| 271 |
+
### Resultados Comprovados
|
| 272 |
+
- **60%** aumento nas taxas de conclusão
|
| 273 |
+
- **40%** redução no tempo de treinamento
|
| 274 |
+
- **34%** maior retenção de colaboradores
|
| 275 |
+
|
| 276 |
+
Quer entender como a gamificação pode transformar seus treinamentos?"""
|
| 277 |
+
|
| 278 |
+
# ROI
|
| 279 |
+
if any(word in message_lower for word in ["roi", "retorno", "investimento", "return"]):
|
| 280 |
+
return """## 📈 ROI da Academy Builder
|
| 281 |
+
|
| 282 |
+
O ROI típico de uma academia corporativa gamificada varia de **200% a 500%**.
|
| 283 |
+
|
| 284 |
+
### Economia Direta
|
| 285 |
+
- ⏱️ **40-60%** redução no tempo de treinamento
|
| 286 |
+
- 👥 **34%** menor turnover de colaboradores
|
| 287 |
+
- 📉 **40%** menos erros de compliance
|
| 288 |
+
|
| 289 |
+
### Ganhos de Produtividade
|
| 290 |
+
- 🚀 Novos colaboradores produtivos **50% mais rápido**
|
| 291 |
+
- 📊 **23%** maior produtividade pós-treinamento
|
| 292 |
+
|
| 293 |
+
### Exemplo (500 colaboradores)
|
| 294 |
+
| Item | Valor |
|
| 295 |
+
|------|-------|
|
| 296 |
+
| Treinamento tradicional | $250,000/ano |
|
| 297 |
+
| Academy Builder | $75,000/ano |
|
| 298 |
+
| Ganho de produtividade | $500,000 |
|
| 299 |
+
| **ROI Líquido** | **380%** |
|
| 300 |
+
|
| 301 |
+
Quer uma análise de ROI personalizada para sua empresa?"""
|
| 302 |
+
|
| 303 |
+
# Integração
|
| 304 |
+
if any(word in message_lower for word in ["integração", "integration", "sso", "api", "hris"]):
|
| 305 |
+
return """## 🔧 Integrações Academy Builder
|
| 306 |
+
|
| 307 |
+
### SSO/Identidade
|
| 308 |
+
- SAML 2.0 e OAuth 2.0
|
| 309 |
+
- Azure AD, Okta, OneLogin, Google Workspace
|
| 310 |
+
- LDAP customizado
|
| 311 |
+
|
| 312 |
+
### HRIS
|
| 313 |
+
- Workday, SAP SuccessFactors, BambooHR
|
| 314 |
+
- ADP, Paylocity, UKG
|
| 315 |
+
- REST API para integrações customizadas
|
| 316 |
+
|
| 317 |
+
### LMS/LXP
|
| 318 |
+
- SCORM 1.2 e 2004
|
| 319 |
+
- xAPI (Tin Can)
|
| 320 |
+
- LTI para embedding
|
| 321 |
+
|
| 322 |
+
### Sincronização de Dados
|
| 323 |
+
- Provisionamento automático de usuários
|
| 324 |
+
- Sync de roles e departamentos
|
| 325 |
+
- Exportação de dados de conclusão
|
| 326 |
+
|
| 327 |
+
Implementação típica: **2-4 semanas**. Qual sistema você utiliza atualmente?"""
|
| 328 |
+
|
| 329 |
+
# Se tiver contexto relevante
|
| 330 |
+
if context:
|
| 331 |
+
return f"""Com base na sua pergunta, encontrei informações relevantes:
|
| 332 |
+
|
| 333 |
+
{context[:2000]}
|
| 334 |
+
|
| 335 |
+
---
|
| 336 |
+
|
| 337 |
+
Posso detalhar algum ponto específico ou ajudar com outra questão?"""
|
| 338 |
+
|
| 339 |
+
# Resposta padrão
|
| 340 |
+
return """Obrigado pela sua pergunta!
|
| 341 |
+
|
| 342 |
+
Sou o **Prometheus**, assistente da Academy Builder. Posso ajudar com:
|
| 343 |
+
|
| 344 |
+
- 📊 Informações sobre nossa plataforma de academias corporativas
|
| 345 |
+
- 🎮 Conceitos de gamificação e aprendizagem
|
| 346 |
+
- 💰 Preços e planos
|
| 347 |
+
- 🔧 Integrações técnicas
|
| 348 |
+
- 📈 ROI e métricas de sucesso
|
| 349 |
+
|
| 350 |
+
Poderia reformular sua pergunta ou me dizer especificamente como posso ajudar?"""
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
# ============================================================================
|
| 354 |
+
# INTERFACE GRADIO
|
| 355 |
+
# ============================================================================
|
| 356 |
+
|
| 357 |
+
def create_interface():
|
| 358 |
+
"""Cria a interface Gradio do Prometheus."""
|
| 359 |
+
|
| 360 |
+
with gr.Blocks(
|
| 361 |
+
title="Prometheus - Academy Builder Assistant",
|
| 362 |
+
theme=gr.themes.Soft(
|
| 363 |
+
primary_hue="blue",
|
| 364 |
+
secondary_hue="orange",
|
| 365 |
+
),
|
| 366 |
+
css="""
|
| 367 |
+
.gradio-container {
|
| 368 |
+
max-width: 900px !important;
|
| 369 |
+
}
|
| 370 |
+
.chat-message {
|
| 371 |
+
padding: 10px;
|
| 372 |
+
border-radius: 10px;
|
| 373 |
+
margin: 5px 0;
|
| 374 |
+
}
|
| 375 |
+
"""
|
| 376 |
+
) as demo:
|
| 377 |
+
|
| 378 |
+
gr.Markdown("""
|
| 379 |
+
# 🎓 Prometheus - Academy Builder AI Assistant
|
| 380 |
+
|
| 381 |
+
Assistente híbrido de **vendas + educacional** para academias corporativas gamificadas.
|
| 382 |
+
|
| 383 |
+
Posso ajudar com informações sobre produtos, preços, conceitos de gamificação,
|
| 384 |
+
design instrucional e muito mais!
|
| 385 |
+
""")
|
| 386 |
+
|
| 387 |
+
chatbot = gr.Chatbot(
|
| 388 |
+
label="Conversa",
|
| 389 |
+
height=500,
|
| 390 |
+
show_copy_button=True,
|
| 391 |
+
avatar_images=(None, "https://em-content.zobj.net/source/twitter/376/fire_1f525.png"),
|
| 392 |
+
)
|
| 393 |
+
|
| 394 |
+
with gr.Row():
|
| 395 |
+
msg = gr.Textbox(
|
| 396 |
+
label="Sua mensagem",
|
| 397 |
+
placeholder="Digite sua pergunta aqui... (Ex: Como funciona a gamificação?)",
|
| 398 |
+
scale=4,
|
| 399 |
+
show_label=False,
|
| 400 |
+
)
|
| 401 |
+
submit = gr.Button("Enviar", variant="primary", scale=1)
|
| 402 |
+
|
| 403 |
+
with gr.Row():
|
| 404 |
+
clear = gr.Button("🗑️ Limpar conversa")
|
| 405 |
+
|
| 406 |
+
with gr.Accordion("💡 Sugestões de perguntas", open=False):
|
| 407 |
+
gr.Markdown("""
|
| 408 |
+
**Vendas:**
|
| 409 |
+
- Quais são os planos e preços da Academy Builder?
|
| 410 |
+
- Posso agendar uma demonstração?
|
| 411 |
+
- Qual o ROI típico de uma academia corporativa?
|
| 412 |
+
|
| 413 |
+
**Educacional:**
|
| 414 |
+
- Como a gamificação melhora a retenção de aprendizado?
|
| 415 |
+
- Qual a diferença entre pedagogia e andragogia?
|
| 416 |
+
- Como estruturar um treinamento de compliance engajador?
|
| 417 |
+
|
| 418 |
+
**Técnico:**
|
| 419 |
+
- Quais integrações estão disponíveis?
|
| 420 |
+
- A plataforma suporta SSO?
|
| 421 |
+
- Como funciona o sistema de analytics?
|
| 422 |
+
""")
|
| 423 |
+
|
| 424 |
+
with gr.Accordion("ℹ️ Sobre o Prometheus", open=False):
|
| 425 |
+
gr.Markdown(f"""
|
| 426 |
+
**Prometheus** é o assistente de IA da Academy Builder, treinado com:
|
| 427 |
+
|
| 428 |
+
- 📚 **{len(kb.chunks)}** chunks de conhecimento
|
| 429 |
+
- 💬 **{len(kb.conversations)}** conversas de exemplo
|
| 430 |
+
- ❓ **{len(kb.faqs)}** FAQs estruturadas
|
| 431 |
+
|
| 432 |
+
**Tecnologias:**
|
| 433 |
+
- Sistema RAG (Retrieval-Augmented Generation)
|
| 434 |
+
- Base de conhecimento sobre gamificação e treinamento corporativo
|
| 435 |
+
- Suporte bilíngue (PT-BR e EN)
|
| 436 |
+
|
| 437 |
+
**Desenvolvido por:** Academy Builder / MSC Academy
|
| 438 |
+
""")
|
| 439 |
+
|
| 440 |
+
def respond(message, chat_history):
|
| 441 |
+
if not message.strip():
|
| 442 |
+
return "", chat_history
|
| 443 |
+
|
| 444 |
+
response = generate_response(message, chat_history)
|
| 445 |
+
chat_history.append((message, response))
|
| 446 |
+
return "", chat_history
|
| 447 |
+
|
| 448 |
+
def clear_chat():
|
| 449 |
+
return [], ""
|
| 450 |
+
|
| 451 |
+
# Event handlers
|
| 452 |
+
msg.submit(respond, [msg, chatbot], [msg, chatbot])
|
| 453 |
+
submit.click(respond, [msg, chatbot], [msg, chatbot])
|
| 454 |
+
clear.click(clear_chat, outputs=[chatbot, msg])
|
| 455 |
+
|
| 456 |
+
return demo
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
# ============================================================================
|
| 460 |
+
# MAIN
|
| 461 |
+
# ============================================================================
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
demo = create_interface()
|
| 465 |
+
demo.launch(
|
| 466 |
+
server_name="0.0.0.0",
|
| 467 |
+
server_port=7860,
|
| 468 |
+
share=False,
|
| 469 |
+
show_error=True,
|
| 470 |
+
)
|
data/chunks.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/conversations.json
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0.0",
|
| 3 |
+
"description": "Synthetic conversation data for Prometheus training - Sales + Educational Assistant",
|
| 4 |
+
"total_conversations": 50,
|
| 5 |
+
"languages": ["en", "pt-BR"],
|
| 6 |
+
"conversations": [
|
| 7 |
+
{
|
| 8 |
+
"id": "conv_001",
|
| 9 |
+
"type": "sales_inquiry",
|
| 10 |
+
"language": "en",
|
| 11 |
+
"persona": "HR Director",
|
| 12 |
+
"messages": [
|
| 13 |
+
{"role": "user", "content": "Hi, I'm looking for a corporate training solution that actually engages employees. Our current LMS has terrible completion rates."},
|
| 14 |
+
{"role": "assistant", "content": "I completely understand your frustration. Low engagement is the #1 challenge in corporate training - studies show that 70% of training content is forgotten within 24 hours without proper reinforcement. At Academy Builder, we solve this through gamification. Our platform transforms passive learning into an active quest for knowledge using XP systems, achievement badges, leaderboards, and daily challenges. What's your current completion rate, and how many employees would be using the platform?"},
|
| 15 |
+
{"role": "user", "content": "We have about 500 employees and our completion rate is around 35%."},
|
| 16 |
+
{"role": "assistant", "content": "A 35% completion rate is actually common with traditional LMS platforms. Our clients typically see completion rates jump to 85-95% within the first 6 months of implementing our gamified academy. For a company of 500 employees, I'd recommend our Enterprise plan which includes: custom-branded academy portal, unlimited courses, gamification engine with XP/badges/leaderboards, real-time analytics dashboard, and dedicated success manager. Would you like to schedule a demo to see how we increased completion rates by 60% for a similar-sized company in your industry?"}
|
| 17 |
+
]
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"id": "conv_002",
|
| 21 |
+
"type": "educational_support",
|
| 22 |
+
"language": "en",
|
| 23 |
+
"persona": "L&D Manager",
|
| 24 |
+
"messages": [
|
| 25 |
+
{"role": "user", "content": "Can you explain how gamification actually improves learning retention?"},
|
| 26 |
+
{"role": "assistant", "content": "Great question! Gamification improves learning retention through several scientifically-backed mechanisms:\n\n**1. Dopamine Release**: When learners earn XP, badges, or climb leaderboards, their brains release dopamine - the same neurotransmitter associated with pleasure and motivation. This creates positive associations with learning.\n\n**2. Spaced Repetition**: Our daily challenges and quest systems naturally implement spaced repetition, which research shows can improve retention by up to 200% compared to massed practice.\n\n**3. Active Recall**: Instead of passive video watching, gamified elements require active participation - answering questions, completing challenges, making decisions - which strengthens neural pathways.\n\n**4. Social Learning**: Leaderboards and team challenges tap into Vygotsky's social learning theory, where learners are motivated by peers and collaborative goals.\n\nWould you like me to share some specific case studies showing retention improvements?"}
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"id": "conv_003",
|
| 31 |
+
"type": "sales_inquiry",
|
| 32 |
+
"language": "pt-BR",
|
| 33 |
+
"persona": "Diretor de RH",
|
| 34 |
+
"messages": [
|
| 35 |
+
{"role": "user", "content": "Olá, estou procurando uma solução de treinamento corporativo para nossa empresa. Vocês trabalham com gamificação?"},
|
| 36 |
+
{"role": "assistant", "content": "Olá! Sim, a gamificação é o coração da nossa plataforma Academy Builder. Transformamos treinamentos tradicionais em experiências envolventes usando elementos de jogos como:\n\n**Sistema de XP e Níveis**: Colaboradores ganham pontos de experiência ao completar módulos e desafios\n**Badges e Conquistas**: Reconhecimento visual por marcos alcançados\n**Leaderboards**: Rankings que estimulam competição saudável entre equipes\n**Missões Diárias**: Microlearning gamificado que mantém o engajamento constante\n\nNossos clientes reportam aumento médio de 60% nas taxas de conclusão de treinamentos. Quantos colaboradores sua empresa possui e qual é o principal desafio de treinamento que vocês enfrentam?"}
|
| 37 |
+
]
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"id": "conv_004",
|
| 41 |
+
"type": "educational_support",
|
| 42 |
+
"language": "pt-BR",
|
| 43 |
+
"persona": "Gerente de T&D",
|
| 44 |
+
"messages": [
|
| 45 |
+
{"role": "user", "content": "Qual a diferença entre pedagogia e andragogia? Por que isso importa para treinamento corporativo?"},
|
| 46 |
+
{"role": "assistant", "content": "Excelente pergunta! A distinção é fundamental para criar treinamentos eficazes:\n\n**Pedagogia** (do grego 'paidós' = criança) é a arte de ensinar crianças. Assume que o aprendiz é dependente, tem pouca experiência prévia, e a motivação vem de fatores externos (notas, aprovação).\n\n**Andragogia** (do grego 'andros' = adulto), conceito desenvolvido por Malcolm Knowles, reconhece que adultos aprendem diferentemente:\n\n1. **Autodirigidos**: Adultos querem controle sobre seu aprendizado\n2. **Experiência como recurso**: Trazem bagagem que deve ser valorizada\n3. **Orientação para problemas**: Preferem aprender resolvendo problemas reais\n4. **Motivação interna**: Buscam crescimento pessoal e profissional\n5. **Necessidade de saber 'por quê'**: Precisam entender a relevância\n6. **Prontos para aprender**: Quando percebem necessidade imediata\n\nNa Academy Builder, aplicamos esses princípios em cada módulo. Por exemplo, nossos cursos sempre começam mostrando o 'por quê' e usam casos reais do dia a dia corporativo. Quer que eu explique como implementamos isso na prática?"}
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"id": "conv_005",
|
| 51 |
+
"type": "roi_discussion",
|
| 52 |
+
"language": "en",
|
| 53 |
+
"persona": "CFO",
|
| 54 |
+
"messages": [
|
| 55 |
+
{"role": "user", "content": "What's the typical ROI for implementing a gamified corporate academy?"},
|
| 56 |
+
{"role": "assistant", "content": "ROI for gamified corporate training typically ranges from 200% to 500%, depending on your industry and implementation. Here's how we calculate it:\n\n**Direct Cost Savings:**\n- Reduced training time: 40-60% faster completion\n- Lower instructor costs: Self-paced learning reduces live sessions\n- Decreased turnover: Engaged employees stay 34% longer\n\n**Productivity Gains:**\n- Faster onboarding: New hires productive 50% sooner\n- Improved performance: 23% higher productivity post-training\n- Reduced errors: 40% fewer compliance violations\n\n**Example Calculation (500 employees):**\n- Traditional training cost: $500/employee = $250,000/year\n- Gamified academy: $150/employee = $75,000/year\n- Productivity gain: 10% = $500,000 value\n- **Net ROI: 380%**\n\nWe provide a custom ROI calculator during our discovery call. Would you like to schedule one to see projections specific to your organization?"}
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"id": "conv_006",
|
| 61 |
+
"type": "technical_question",
|
| 62 |
+
"language": "en",
|
| 63 |
+
"persona": "IT Manager",
|
| 64 |
+
"messages": [
|
| 65 |
+
{"role": "user", "content": "Does your platform integrate with our existing HRIS and SSO?"},
|
| 66 |
+
{"role": "assistant", "content": "Absolutely! Academy Builder is designed for seamless enterprise integration:\n\n**SSO/Identity:**\n- SAML 2.0 and OAuth 2.0 support\n- Azure AD, Okta, OneLogin, Google Workspace\n- Custom LDAP integration available\n\n**HRIS Integration:**\n- Workday, SAP SuccessFactors, BambooHR\n- ADP, Paylocity, UKG\n- REST API for custom integrations\n\n**LMS/LXP Standards:**\n- SCORM 1.2 and 2004 compliant\n- xAPI (Tin Can) for advanced analytics\n- LTI for seamless content embedding\n\n**Data Sync:**\n- Automatic user provisioning/deprovisioning\n- Role and department sync\n- Completion data export to HRIS\n\nOur implementation team handles the technical setup, typically completed within 2-4 weeks. What systems are you currently using?"}
|
| 67 |
+
]
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"id": "conv_007",
|
| 71 |
+
"type": "educational_support",
|
| 72 |
+
"language": "en",
|
| 73 |
+
"persona": "Course Designer",
|
| 74 |
+
"messages": [
|
| 75 |
+
{"role": "user", "content": "How should I structure a compliance training course to maximize engagement?"},
|
| 76 |
+
{"role": "assistant", "content": "Compliance training is often seen as boring, but with the right structure, it can be highly engaging. Here's our proven framework:\n\n**1. Hook with Stakes (2 min)**\nStart with a real-world scenario showing consequences of non-compliance. Use storytelling, not statistics.\n\n**2. Chunk into Micro-Modules (5-7 min each)**\n- Break content into 5-7 minute segments\n- Each module = one learning objective\n- End each with a quick knowledge check\n\n**3. Gamify the Journey**\n- Award XP for completing modules\n- Create 'Compliance Champion' badges\n- Add scenario-based decision points\n\n**4. Apply Spaced Repetition**\n- Schedule review quizzes at 1, 7, and 30 days\n- Use daily challenges to reinforce key concepts\n\n**5. Make it Social**\n- Team leaderboards for departments\n- Discussion forums for edge cases\n- Peer recognition for completion\n\n**6. Practical Application**\n- Include real forms/processes they'll use\n- Scenario simulations with branching outcomes\n- 'What would you do?' decision trees\n\nWant me to share a template for structuring your specific compliance topic?"}
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"id": "conv_008",
|
| 81 |
+
"type": "sales_objection",
|
| 82 |
+
"language": "en",
|
| 83 |
+
"persona": "HR Director",
|
| 84 |
+
"messages": [
|
| 85 |
+
{"role": "user", "content": "We already have an LMS. Why would we switch to your platform?"},
|
| 86 |
+
{"role": "assistant", "content": "That's a fair question, and I appreciate you being direct. Here's why companies with existing LMS platforms choose to add or switch to Academy Builder:\n\n**The Engagement Gap:**\nMost traditional LMS platforms focus on content delivery and compliance tracking. They're essentially digital filing cabinets for training materials. The result? Industry-average completion rates of 20-35%.\n\n**What Makes Us Different:**\n\n1. **Native Gamification**: Not a bolt-on feature, but built into every interaction\n2. **Adaptive Learning Paths**: AI adjusts difficulty based on performance\n3. **Social Learning**: Built-in communities, mentorship matching, peer challenges\n4. **Real-time Analytics**: Not just completion rates, but engagement depth, knowledge retention, and behavior change metrics\n\n**Integration, Not Replacement:**\nMany clients keep their existing LMS for compliance records while using Academy Builder for engagement. We integrate via SCORM/xAPI to sync data.\n\n**Risk-Free Pilot:**\nWe offer a 90-day pilot with 100 users. If you don't see at least 50% improvement in engagement, no charge.\n\nWould a side-by-side comparison with your current platform be helpful?"}
|
| 87 |
+
]
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"id": "conv_009",
|
| 91 |
+
"type": "educational_support",
|
| 92 |
+
"language": "pt-BR",
|
| 93 |
+
"persona": "Instrutor Corporativo",
|
| 94 |
+
"messages": [
|
| 95 |
+
{"role": "user", "content": "Como posso medir se meu treinamento está realmente funcionando?"},
|
| 96 |
+
{"role": "assistant", "content": "Medir a eficácia do treinamento vai muito além de taxas de conclusão. Recomendo usar o Modelo de Kirkpatrick adaptado para o contexto corporativo:\n\n**Nível 1 - Reação** (Imediato)\n- NPS do treinamento (meta: >50)\n- Pesquisa de satisfação\n- Feedback qualitativo\n\n**Nível 2 - Aprendizado** (Durante/Após)\n- Pré e pós-testes (meta: >20% melhoria)\n- Quizzes de retenção em 7, 30, 90 dias\n- Simulações práticas com scoring\n\n**Nível 3 - Comportamento** (30-90 dias)\n- Observação de aplicação no trabalho\n- Feedback de gestores\n- Métricas de performance específicas\n\n**Nível 4 - Resultados** (3-12 meses)\n- KPIs de negócio impactados\n- ROI calculado\n- Redução de erros/retrabalho\n\n**Métricas da Academy Builder:**\nNossa plataforma rastreia automaticamente:\n- Tempo médio por módulo\n- Taxa de engajamento (não só conclusão)\n- Pontos de abandono\n- Correlação entre gamificação e retenção\n\nQuer que eu monte um framework de métricas específico para seu tipo de treinamento?"}
|
| 97 |
+
]
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"id": "conv_010",
|
| 101 |
+
"type": "pricing_inquiry",
|
| 102 |
+
"language": "en",
|
| 103 |
+
"persona": "Procurement Manager",
|
| 104 |
+
"messages": [
|
| 105 |
+
{"role": "user", "content": "What are your pricing tiers?"},
|
| 106 |
+
{"role": "assistant", "content": "Our pricing is designed to scale with your organization. Here's an overview:\n\n**Starter** - $5/user/month (min 50 users)\n- Core gamification features\n- Up to 20 courses\n- Basic analytics\n- Email support\n\n**Professional** - $12/user/month (min 100 users)\n- Advanced gamification (custom badges, quests)\n- Unlimited courses\n- Advanced analytics & reporting\n- SSO integration\n- Priority support\n\n**Enterprise** - Custom pricing (500+ users)\n- Everything in Professional\n- Custom branding\n- API access\n- Dedicated success manager\n- Custom integrations\n- SLA guarantees\n- On-premise option available\n\n**Volume Discounts:**\n- 500-999 users: 10% off\n- 1000-4999 users: 20% off\n- 5000+ users: Custom negotiation\n\n**Implementation:**\n- Starter: Self-service (included)\n- Professional: Guided setup ($2,500 one-time)\n- Enterprise: Full implementation (custom)\n\nWould you like a custom quote based on your specific needs and user count?"}
|
| 107 |
+
]
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"id": "conv_011",
|
| 111 |
+
"type": "educational_support",
|
| 112 |
+
"language": "en",
|
| 113 |
+
"persona": "New Employee",
|
| 114 |
+
"messages": [
|
| 115 |
+
{"role": "user", "content": "I'm new to the company. How do I get started with the training platform?"},
|
| 116 |
+
{"role": "assistant", "content": "Welcome aboard! Getting started is easy. Here's your quick-start guide:\n\n**Step 1: Access Your Academy**\n- Log in at [your-company].academybuilder.com\n- Use your company email and the temporary password sent to you\n- Set up your profile and avatar\n\n**Step 2: Explore Your Dashboard**\n- **My Learning Path**: Your assigned courses and progress\n- **Achievements**: Badges and XP you've earned\n- **Leaderboard**: See how you rank among peers\n- **Daily Challenges**: Quick activities for bonus XP\n\n**Step 3: Start Your Onboarding Quest**\n- Look for the 'New Hire Journey' in your learning path\n- Complete modules in order to unlock the next\n- Earn the 'Welcome Warrior' badge upon completion\n\n**Pro Tips:**\n- Complete daily challenges for 2x XP bonus\n- Join the 'New Hires' community to connect with peers\n- Set learning reminders in your profile settings\n- Mobile app available for learning on-the-go\n\n**Need Help?**\n- Click the '?' icon for contextual help\n- Visit the Help Center for FAQs\n- Contact your L&D team for course-specific questions\n\nWhat specific area would you like to explore first?"}
|
| 117 |
+
]
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "conv_012",
|
| 121 |
+
"type": "sales_inquiry",
|
| 122 |
+
"language": "pt-BR",
|
| 123 |
+
"persona": "CEO",
|
| 124 |
+
"messages": [
|
| 125 |
+
{"role": "user", "content": "Quanto tempo leva para implementar a plataforma e ver resultados?"},
|
| 126 |
+
{"role": "assistant", "content": "Excelente pergunta! Nosso processo de implementação é estruturado para entregar valor rapidamente:\n\n**Fase 1: Setup Técnico (1-2 semanas)**\n- Configuração da plataforma\n- Integração com SSO/HRIS\n- Personalização visual (logo, cores)\n- Importação de usuários\n\n**Fase 2: Conteúdo (2-4 semanas)**\n- Migração de cursos existentes\n- Gamificação do conteúdo\n- Criação de trilhas de aprendizado\n- Configuração de badges e desafios\n\n**Fase 3: Piloto (2-4 semanas)**\n- Lançamento para grupo piloto (50-100 usuários)\n- Coleta de feedback\n- Ajustes finos\n- Treinamento de administradores\n\n**Fase 4: Rollout (1-2 semanas)**\n- Lançamento para toda empresa\n- Campanha de engajamento\n- Suporte intensivo\n\n**Timeline Total: 6-12 semanas**\n\n**Quando Ver Resultados:**\n- Semana 1: Aumento imediato no engajamento\n- Mês 1: 30-40% melhoria em taxas de conclusão\n- Mês 3: 50-60% melhoria sustentada\n- Mês 6: ROI mensurável em métricas de negócio\n\nPodemos acelerar para 4 semanas com nossa equipe de implementação dedicada. Qual é sua timeline ideal?"}
|
| 127 |
+
]
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"id": "conv_013",
|
| 131 |
+
"type": "educational_support",
|
| 132 |
+
"language": "en",
|
| 133 |
+
"persona": "Manager",
|
| 134 |
+
"messages": [
|
| 135 |
+
{"role": "user", "content": "How can I see my team's training progress?"},
|
| 136 |
+
{"role": "assistant", "content": "As a manager, you have access to comprehensive team analytics. Here's how to track your team's progress:\n\n**Manager Dashboard Access:**\n1. Log into your Academy Builder account\n2. Click 'Team Insights' in the left menu\n3. Select your team or department\n\n**Key Metrics Available:**\n\n📊 **Completion Rates**\n- Overall team completion %\n- Individual progress by course\n- Overdue assignments highlighted\n\n🏆 **Engagement Scores**\n- Average time spent learning\n- Daily challenge participation\n- Community contributions\n\n📈 **Performance Trends**\n- Week-over-week progress\n- Quiz scores and improvement\n- Skill gap analysis\n\n👥 **Individual Views**\n- Click any team member for detailed view\n- See their learning path progress\n- Review their achievements and badges\n\n**Automated Reports:**\n- Weekly summary email (Mondays)\n- Monthly detailed report\n- Custom reports on demand\n\n**Actions You Can Take:**\n- Send encouragement messages\n- Assign additional training\n- Recognize top performers\n- Schedule 1:1 learning discussions\n\nWould you like me to walk you through setting up custom alerts for at-risk learners?"}
|
| 137 |
+
]
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"id": "conv_014",
|
| 141 |
+
"type": "feature_question",
|
| 142 |
+
"language": "en",
|
| 143 |
+
"persona": "L&D Manager",
|
| 144 |
+
"messages": [
|
| 145 |
+
{"role": "user", "content": "Can we create our own custom badges and achievements?"},
|
| 146 |
+
{"role": "assistant", "content": "Absolutely! Custom badges are one of our most popular features. Here's what you can do:\n\n**Badge Creation Tools:**\n\n🎨 **Visual Designer**\n- Upload custom images or use our icon library\n- Choose colors matching your brand\n- Add animated effects (sparkle, glow, pulse)\n- Set rarity levels (Common, Rare, Epic, Legendary)\n\n📋 **Trigger Configuration**\n- Course completion\n- Quiz score thresholds\n- Streak achievements (X days in a row)\n- Social actions (helping peers, forum posts)\n- Custom events via API\n\n🏅 **Badge Types:**\n- **Skill Badges**: Certify competency in specific areas\n- **Milestone Badges**: Celebrate progress (First Course, 100 XP, etc.)\n- **Social Badges**: Reward collaboration and mentorship\n- **Secret Badges**: Hidden achievements for extra motivation\n- **Time-Limited**: Special event or campaign badges\n\n**Best Practices:**\n- Create a badge hierarchy (bronze → silver → gold)\n- Align badges with company values\n- Make some badges rare to increase desirability\n- Celebrate badge earners publicly\n\n**Example Custom Badges:**\n- 'Innovation Champion' - Complete innovation training\n- 'Safety Star' - Perfect score on safety quiz\n- 'Mentor Master' - Help 10 colleagues\n\nWant me to share our badge design guide and templates?"}
|
| 147 |
+
]
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"id": "conv_015",
|
| 151 |
+
"type": "support_issue",
|
| 152 |
+
"language": "pt-BR",
|
| 153 |
+
"persona": "Usuário Final",
|
| 154 |
+
"messages": [
|
| 155 |
+
{"role": "user", "content": "Meu progresso não está salvando. O que faço?"},
|
| 156 |
+
{"role": "assistant", "content": "Entendo sua frustração! Vamos resolver isso rapidamente. Siga estes passos:\n\n**Verificações Imediatas:**\n\n1. **Conexão de Internet**\n - Verifique se está conectado\n - Tente recarregar a página (F5)\n\n2. **Navegador**\n - Limpe o cache (Ctrl+Shift+Delete)\n - Tente outro navegador (Chrome recomendado)\n - Desative extensões de bloqueio\n\n3. **Sessão**\n - Faça logout e login novamente\n - Verifique se não está logado em múltiplos dispositivos\n\n**Se o Problema Persistir:**\n\n4. **Modo de Recuperação**\n - Vá em Configurações > Sincronizar Progresso\n - Clique em 'Forçar Sincronização'\n\n5. **Suporte Técnico**\n - Clique no ícone de chat no canto inferior\n - Ou envie email para suporte@academybuilder.com\n - Inclua: seu email, curso afetado, navegador usado\n\n**Boa Notícia:**\nNosso sistema salva automaticamente a cada 30 segundos. Mesmo que pareça perdido, geralmente está no servidor. O suporte pode recuperar seu progresso.\n\n**Prevenção Futura:**\n- Use conexão estável\n- Não feche abruptamente durante quizzes\n- Ative notificações de sincronização\n\nConseguiu resolver? Se não, me diga qual curso e eu verifico no sistema."}
|
| 157 |
+
]
|
| 158 |
+
}
|
| 159 |
+
]
|
| 160 |
+
}
|
data/dataset-manifest.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset_name": "prometheus-academy-builder-v1",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"created_at": "2026-01-24",
|
| 5 |
+
"description": "Training dataset for Prometheus AI Agent - Academy Builder's hybrid sales + educational assistant",
|
| 6 |
+
"languages": ["pt-BR", "en"],
|
| 7 |
+
"total_documents": 13,
|
| 8 |
+
"categories": {
|
| 9 |
+
"company_docs": {
|
| 10 |
+
"description": "Core company documentation and README",
|
| 11 |
+
"documents": ["README.md"]
|
| 12 |
+
},
|
| 13 |
+
"blog_content": {
|
| 14 |
+
"description": "SEO-optimized blog posts about corporate training and gamification",
|
| 15 |
+
"documents": [
|
| 16 |
+
"blog-post-1-gamificacao-pt.md",
|
| 17 |
+
"blog-post-2-academia-corporativa-pt.md",
|
| 18 |
+
"blog-post-3-roi-treinamento-pt.md",
|
| 19 |
+
"blog-posts-planning.md"
|
| 20 |
+
]
|
| 21 |
+
},
|
| 22 |
+
"marketing": {
|
| 23 |
+
"description": "Social media strategy and video production guides",
|
| 24 |
+
"documents": [
|
| 25 |
+
"social-media-strategy.md",
|
| 26 |
+
"video-production-guide.md"
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
"research": {
|
| 30 |
+
"description": "Educational and technical research for AI training",
|
| 31 |
+
"documents": [
|
| 32 |
+
"educational-foundations.md",
|
| 33 |
+
"alura-luri-benchmark.md",
|
| 34 |
+
"rag-production-best-practices.md",
|
| 35 |
+
"huggingface-spaces-gpu-deployment.md"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
"project_management": {
|
| 39 |
+
"description": "Project planning and task tracking",
|
| 40 |
+
"documents": [
|
| 41 |
+
"todo.md",
|
| 42 |
+
"ideas.md"
|
| 43 |
+
]
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
"embedding_config": {
|
| 47 |
+
"chunk_size": 512,
|
| 48 |
+
"chunk_overlap": 50,
|
| 49 |
+
"separator": "\n\n",
|
| 50 |
+
"model_recommendation": "sentence-transformers/all-MiniLM-L6-v2"
|
| 51 |
+
},
|
| 52 |
+
"use_cases": [
|
| 53 |
+
"sales_assistant",
|
| 54 |
+
"educational_tutor",
|
| 55 |
+
"customer_support",
|
| 56 |
+
"content_generation"
|
| 57 |
+
],
|
| 58 |
+
"target_personas": [
|
| 59 |
+
{
|
| 60 |
+
"name": "HR Director",
|
| 61 |
+
"description": "Decision maker looking for corporate training solutions",
|
| 62 |
+
"language": "en"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"name": "L&D Manager",
|
| 66 |
+
"description": "Learning & Development professional seeking gamification tools",
|
| 67 |
+
"language": "en"
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"name": "Diretor de RH",
|
| 71 |
+
"description": "Tomador de decisão buscando soluções de treinamento corporativo",
|
| 72 |
+
"language": "pt-BR"
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"name": "Gerente de T&D",
|
| 76 |
+
"description": "Profissional de Treinamento & Desenvolvimento buscando ferramentas de gamificação",
|
| 77 |
+
"language": "pt-BR"
|
| 78 |
+
}
|
| 79 |
+
]
|
| 80 |
+
}
|
data/faqs.json
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0.0",
|
| 3 |
+
"description": "Frequently Asked Questions for Prometheus training - Sales + Educational contexts",
|
| 4 |
+
"total_faqs": 40,
|
| 5 |
+
"categories": ["product", "pricing", "technical", "educational", "support"],
|
| 6 |
+
"faqs": [
|
| 7 |
+
{
|
| 8 |
+
"id": "faq_001",
|
| 9 |
+
"category": "product",
|
| 10 |
+
"language": "en",
|
| 11 |
+
"question": "What is Academy Builder?",
|
| 12 |
+
"answer": "Academy Builder is a gamified corporate training platform that transforms traditional learning into engaging, measurable experiences. We combine game mechanics (XP, badges, leaderboards, quests) with proven educational methodologies to increase course completion rates by up to 60% and improve knowledge retention by 40%.",
|
| 13 |
+
"keywords": ["academy builder", "corporate training", "gamification", "LMS"]
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"id": "faq_002",
|
| 17 |
+
"category": "product",
|
| 18 |
+
"language": "pt-BR",
|
| 19 |
+
"question": "O que é a Academy Builder?",
|
| 20 |
+
"answer": "A Academy Builder é uma plataforma de treinamento corporativo gamificada que transforma o aprendizado tradicional em experiências envolventes e mensuráveis. Combinamos mecânicas de jogos (XP, badges, rankings, missões) com metodologias educacionais comprovadas para aumentar as taxas de conclusão de cursos em até 60% e melhorar a retenção de conhecimento em 40%.",
|
| 21 |
+
"keywords": ["academy builder", "treinamento corporativo", "gamificação", "LMS"]
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"id": "faq_003",
|
| 25 |
+
"category": "product",
|
| 26 |
+
"language": "en",
|
| 27 |
+
"question": "How does gamification improve training outcomes?",
|
| 28 |
+
"answer": "Gamification improves training through multiple mechanisms: 1) Dopamine release from achievements creates positive learning associations, 2) XP and levels provide clear progress visualization, 3) Leaderboards tap into healthy competition and social motivation, 4) Daily challenges implement spaced repetition for better retention, 5) Badges provide tangible recognition that employees value. Research shows gamified training increases engagement by 60% and retention by 40%.",
|
| 29 |
+
"keywords": ["gamification", "learning outcomes", "engagement", "retention"]
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"id": "faq_004",
|
| 33 |
+
"category": "pricing",
|
| 34 |
+
"language": "en",
|
| 35 |
+
"question": "How much does Academy Builder cost?",
|
| 36 |
+
"answer": "Academy Builder offers three tiers: Starter at $5/user/month (min 50 users) for core features, Professional at $12/user/month (min 100 users) for advanced gamification and analytics, and Enterprise with custom pricing for 500+ users including dedicated support and custom integrations. Volume discounts available: 10% for 500-999 users, 20% for 1000-4999 users.",
|
| 37 |
+
"keywords": ["pricing", "cost", "plans", "enterprise"]
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"id": "faq_005",
|
| 41 |
+
"category": "pricing",
|
| 42 |
+
"language": "pt-BR",
|
| 43 |
+
"question": "Quanto custa a Academy Builder?",
|
| 44 |
+
"answer": "A Academy Builder oferece três planos: Starter a $5/usuário/mês (mín. 50 usuários) com recursos básicos, Professional a $12/usuário/mês (mín. 100 usuários) com gamificação avançada e analytics, e Enterprise com preço personalizado para 500+ usuários incluindo suporte dedicado e integrações customizadas. Descontos por volume: 10% para 500-999 usuários, 20% para 1000-4999 usuários.",
|
| 45 |
+
"keywords": ["preço", "custo", "planos", "enterprise"]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"id": "faq_006",
|
| 49 |
+
"category": "technical",
|
| 50 |
+
"language": "en",
|
| 51 |
+
"question": "Does Academy Builder integrate with our existing systems?",
|
| 52 |
+
"answer": "Yes, Academy Builder integrates with major enterprise systems: SSO (SAML 2.0, OAuth 2.0, Azure AD, Okta), HRIS (Workday, SAP SuccessFactors, BambooHR, ADP), and LMS standards (SCORM 1.2/2004, xAPI, LTI). We also offer REST APIs for custom integrations. Implementation typically takes 2-4 weeks.",
|
| 53 |
+
"keywords": ["integration", "SSO", "HRIS", "API", "SCORM"]
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"id": "faq_007",
|
| 57 |
+
"category": "technical",
|
| 58 |
+
"language": "en",
|
| 59 |
+
"question": "Is Academy Builder mobile-friendly?",
|
| 60 |
+
"answer": "Absolutely! Academy Builder offers: 1) Fully responsive web app that works on any device, 2) Native iOS and Android apps for offline learning, 3) Push notifications for reminders and achievements, 4) Progress sync across all devices. Mobile learners can complete courses, earn badges, and participate in challenges anywhere.",
|
| 61 |
+
"keywords": ["mobile", "app", "iOS", "Android", "responsive"]
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"id": "faq_008",
|
| 65 |
+
"category": "educational",
|
| 66 |
+
"language": "en",
|
| 67 |
+
"question": "What is the difference between pedagogy and andragogy?",
|
| 68 |
+
"answer": "Pedagogy is the art of teaching children, assuming learners are dependent and externally motivated. Andragogy, developed by Malcolm Knowles, is adult learning theory recognizing that adults: 1) Are self-directed, 2) Bring experience as a learning resource, 3) Learn best through problem-solving, 4) Are internally motivated, 5) Need to understand 'why', 6) Learn when they see immediate relevance. Academy Builder applies andragogical principles in all course designs.",
|
| 69 |
+
"keywords": ["pedagogy", "andragogy", "adult learning", "Malcolm Knowles"]
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"id": "faq_009",
|
| 73 |
+
"category": "educational",
|
| 74 |
+
"language": "pt-BR",
|
| 75 |
+
"question": "O que é o Framework Octalysis de gamificação?",
|
| 76 |
+
"answer": "O Octalysis é um framework de gamificação criado por Yu-kai Chou que identifica 8 motivadores centrais: 1) Significado Épico, 2) Desenvolvimento e Realização, 3) Empoderamento da Criatividade, 4) Propriedade e Posse, 5) Influência Social, 6) Escassez e Impaciência, 7) Imprevisibilidade e Curiosidade, 8) Perda e Evitação. A Academy Builder utiliza este framework para criar experiências de aprendizado equilibradas que motivam através de múltiplos drivers.",
|
| 77 |
+
"keywords": ["Octalysis", "gamificação", "Yu-kai Chou", "motivação"]
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"id": "faq_010",
|
| 81 |
+
"category": "product",
|
| 82 |
+
"language": "en",
|
| 83 |
+
"question": "What types of content can I create in Academy Builder?",
|
| 84 |
+
"answer": "Academy Builder supports diverse content types: Video lessons (hosted or embedded), Interactive quizzes and assessments, SCORM/xAPI packages, Document uploads (PDF, PPT, Word), Interactive scenarios with branching, Live session scheduling, Discussion forums, Peer assignments, Gamified challenges and quests. Our content editor is drag-and-drop with no coding required.",
|
| 85 |
+
"keywords": ["content", "courses", "video", "quiz", "SCORM"]
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"id": "faq_011",
|
| 89 |
+
"category": "support",
|
| 90 |
+
"language": "en",
|
| 91 |
+
"question": "What support is included?",
|
| 92 |
+
"answer": "Support varies by plan: Starter includes email support (48h response), Professional adds priority email (24h) and chat support, Enterprise includes dedicated success manager, phone support, and SLA guarantees. All plans include access to our Help Center, video tutorials, and community forums. Implementation support is available for Professional and Enterprise.",
|
| 93 |
+
"keywords": ["support", "help", "SLA", "success manager"]
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"id": "faq_012",
|
| 97 |
+
"category": "product",
|
| 98 |
+
"language": "en",
|
| 99 |
+
"question": "How do leaderboards work?",
|
| 100 |
+
"answer": "Leaderboards in Academy Builder can be configured multiple ways: Global (all users), Department/Team based, Course-specific, Time-limited (weekly, monthly), or Custom segments. Points are earned through course completion, quiz scores, daily challenges, and social actions. You can enable/disable leaderboards per course and set visibility rules. Research shows leaderboards increase engagement by 25-40% when properly implemented.",
|
| 101 |
+
"keywords": ["leaderboards", "rankings", "competition", "engagement"]
|
| 102 |
+
},
|
| 103 |
+
{
|
| 104 |
+
"id": "faq_013",
|
| 105 |
+
"category": "educational",
|
| 106 |
+
"language": "en",
|
| 107 |
+
"question": "What is spaced repetition and why does it matter?",
|
| 108 |
+
"answer": "Spaced repetition is a learning technique where content is reviewed at increasing intervals (1 day, 3 days, 7 days, 30 days). It's based on the 'forgetting curve' research by Hermann Ebbinghaus showing we forget 70% within 24 hours without reinforcement. Academy Builder implements this through: Daily challenges that revisit key concepts, Automated review quizzes, Smart notifications for content refresh. This can improve long-term retention by up to 200%.",
|
| 109 |
+
"keywords": ["spaced repetition", "retention", "forgetting curve", "memory"]
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"id": "faq_014",
|
| 113 |
+
"category": "product",
|
| 114 |
+
"language": "en",
|
| 115 |
+
"question": "Can we white-label the platform?",
|
| 116 |
+
"answer": "Yes! Enterprise plans include full white-labeling: Custom domain (academy.yourcompany.com), Your logo and brand colors, Custom email templates, Branded mobile apps (additional fee), Custom login page, Removal of Academy Builder branding. Professional plans include basic branding (logo, colors). The platform becomes seamlessly part of your employee experience.",
|
| 117 |
+
"keywords": ["white-label", "branding", "custom domain", "enterprise"]
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"id": "faq_015",
|
| 121 |
+
"category": "technical",
|
| 122 |
+
"language": "en",
|
| 123 |
+
"question": "How secure is Academy Builder?",
|
| 124 |
+
"answer": "Academy Builder maintains enterprise-grade security: SOC 2 Type II certified, GDPR compliant, Data encrypted at rest (AES-256) and in transit (TLS 1.3), Regular penetration testing, 99.9% uptime SLA, Data residency options (US, EU, APAC), Role-based access control, Audit logs for compliance. We can provide security documentation and complete vendor security assessments.",
|
| 125 |
+
"keywords": ["security", "SOC 2", "GDPR", "encryption", "compliance"]
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"id": "faq_016",
|
| 129 |
+
"category": "product",
|
| 130 |
+
"language": "pt-BR",
|
| 131 |
+
"question": "Como funciona o sistema de XP e níveis?",
|
| 132 |
+
"answer": "O sistema de XP (Experience Points) da Academy Builder funciona assim: Usuários ganham XP ao completar módulos (10-50 XP), acertar quizzes (5-20 XP), participar de desafios diários (5-15 XP), e interagir na comunidade (2-10 XP). Ao acumular XP, sobem de nível (Iniciante → Aprendiz → Especialista → Mestre → Lenda). Cada nível desbloqueia novos badges, privilégios e reconhecimento. Administradores podem customizar valores de XP por atividade.",
|
| 133 |
+
"keywords": ["XP", "níveis", "pontos", "progressão"]
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"id": "faq_017",
|
| 137 |
+
"category": "educational",
|
| 138 |
+
"language": "en",
|
| 139 |
+
"question": "What is microlearning?",
|
| 140 |
+
"answer": "Microlearning delivers content in small, focused chunks (3-7 minutes) designed for modern attention spans and busy schedules. Benefits include: Higher completion rates (94% vs 15% for hour-long courses), Better retention through focused topics, Mobile-friendly format, Fits into workflow breaks, Easier to update and maintain. Academy Builder's daily challenges and quest system are built on microlearning principles.",
|
| 141 |
+
"keywords": ["microlearning", "bite-sized", "short courses", "mobile learning"]
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"id": "faq_018",
|
| 145 |
+
"category": "product",
|
| 146 |
+
"language": "en",
|
| 147 |
+
"question": "What analytics and reporting are available?",
|
| 148 |
+
"answer": "Academy Builder provides comprehensive analytics: Learner Progress (completion rates, time spent, quiz scores), Engagement Metrics (daily active users, challenge participation, social interactions), Content Analytics (popular courses, drop-off points, difficulty analysis), ROI Metrics (training cost per user, productivity correlation), Custom Reports (scheduled delivery, export to CSV/PDF), Real-time Dashboards (for admins and managers). Enterprise includes advanced analytics with AI insights.",
|
| 149 |
+
"keywords": ["analytics", "reporting", "metrics", "dashboard", "ROI"]
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"id": "faq_019",
|
| 153 |
+
"category": "support",
|
| 154 |
+
"language": "pt-BR",
|
| 155 |
+
"question": "Quanto tempo leva a implementação?",
|
| 156 |
+
"answer": "O tempo de implementação varia conforme complexidade: Setup básico (Starter): 1-2 semanas, Implementação padrão (Professional): 4-6 semanas, Implementação enterprise: 8-12 semanas. O processo inclui: configuração técnica, integração com sistemas existentes, migração de conteúdo, gamificação de cursos, treinamento de administradores, e piloto com grupo teste. Oferecemos implementação acelerada para projetos urgentes.",
|
| 157 |
+
"keywords": ["implementação", "timeline", "setup", "migração"]
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"id": "faq_020",
|
| 161 |
+
"category": "product",
|
| 162 |
+
"language": "en",
|
| 163 |
+
"question": "Can employees earn certificates?",
|
| 164 |
+
"answer": "Yes! Academy Builder offers robust certification features: Auto-generated certificates upon course/path completion, Customizable certificate templates with your branding, Unique verification codes and QR codes, LinkedIn integration for sharing, Expiration dates for compliance certifications, Digital badge integration (Open Badges standard), Certificate tracking and renewal reminders. Certificates can require minimum quiz scores or manager approval.",
|
| 165 |
+
"keywords": ["certificates", "credentials", "badges", "LinkedIn", "compliance"]
|
| 166 |
+
}
|
| 167 |
+
]
|
| 168 |
+
}
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio>=4.44.0
|
| 2 |
+
openai>=1.0.0
|
| 3 |
+
numpy>=1.24.0
|