Lovable 的提示词架构
AI入口 生成器 词典 学习测试 支持我 生成器 词典 培训测试 支持我 迈向AI的门户:理解并开始创作 深入了解生成式人工智能的世界。学习创建有效的提示词,掌握关键概念,并找到最适合您的工具。 探索工具 创建理想的提示词 使用我们的交互式生成器,为生成文本、图像和视频的AI创建精确的提示词。 文本 图像 视频 文本提示词生成器 目标 目标受众 文案撰写模型 AIDA (Attention, Interest, Desire, Action) PAS (Problem, Agitate, Solution) 关键信息 生成 生成的提示词 ...
图像提示生成器 主要主题/对象 风格 照片写实主义 数字艺术 动漫 像素艺术 构图 特写 广角镜头 俯视角度 照明 日光 霓虹 戏剧性的 生成的提示词 ...
视频提示生成器 主要主题/场景 风格(与图像相同) 照片写实主义 数字艺术 动漫 镜头运动 推进 全景 静态镜头 生成的提示词 ...
AI 概念手册 了解人工智能的术语。搜索并学习关键术语的定义。 哪个AI生态系统适合你? 回答几个问题,即可获得最适合您需求的AI平台推荐。 你喜欢这个网站吗? 如果您认为这个工具很有用,您可以支持它的发展。每一份支持都是继续工作的动力! 为我买杯咖啡 ☕ 成为赞助人 © 2025 Brama do AI.
版权所有。 旨在帮助理解和利用人工智能的潜力。 { term: 'Token', definition: '语言模型操作的基本数据单元。它可以是一个单词、一个词的一部分(例如“auto”和“matycznie”)或单个标点符号。AI的文本长度是以token为单位衡量的。' }, ]; const quizData = [ { question: "你使用AI的主要目的是什么?", answers: [ { text: "用于日常任务的快速、开箱即用的解决方案(例如撰写邮件、总结)。", score: { openai: 2, microsoft: 2, meta: 1, anthropic: 1 } }, { text: "为我的公司构建定制化、可扩展的应用,并拥有最大的控制权。", score: { openai: 2, microsoft: 3, meta: 1, anthropic: 2 } }, { text: "创意实验、内容生成和开源创新项目。", score: { openai: 2, microsoft: 1, meta: 3, anthropic: 1 } }, ] }, { question: "数据隐私和企业级安全对您有多重要?", answers: [ { text: "绝对优先。我将处理敏感数据,需要保证这些数据不会用于模型训练。", score: { openai: 1, microsoft: 3, meta: 0, anthropic: 2 } }, { text: "很重要,但我主要使用公开数据。标准的安全措施足够了。", score: { openai: 2, microsoft: 1, meta: 1, anthropic: 1 } }, { text: "这不是关键。我将AI用于个人和创意目的。", score: { openai: 2, microsoft: 0, meta: 3, anthropic: 1 } }, ] }, { question: "您的技术经验和对‘深入代码’的兴趣如何?", answers: [ { text: "很少。我更喜欢直观的图形界面和现成的应用程序。", score: { openai: 2, microsoft: 2, meta: 1, anthropic: 1 } }, { text: "我有一定的经验,不害怕使用 API 将 AI 与其他工具集成。", score: { openai: 3, microsoft: 2, meta: 2, anthropic: 3 } }, { text: "高级。我想要完全的自由度,能够微调模型并使用开源技术。", score: { openai: 1, microsoft: 1, meta: 3, anthropic: 1 } }, ] } ]; const quizResults = { openai: { name: "OpenAI (ChatGPT, API)", description: "通用且创新。非常适合寻找最新功能的开发人员和用户。提供出色的 API 用于构建自己的应用程序,而 ChatGPT Team/Enterprise 则提供了现成的商业解决方案。" }, microsoft: { name: "Microsoft (Azure OpenAI Service, Copilot)", description: "企业和大型机构的最佳选择。它提供了最高级别的安全性、数据隐私性和合规性。在安全的 Azure 云环境中集成 OpenAI 模型。" }, meta: { name: "Meta (Llama, Open Source)", description: "开源的王国。非常适合想要完全控制权、具备模型微调能力并在自己基础设施上部署模型的研究人员、爱好者和公司。需要更高的技术知识。" }, anthropic: { name: "Anthropic (Claude)", description: "专注于安全和伦理。Claude 模型以较少生成有害内容而闻名,并且擅长处理" } 具有长上下文,使其成为分析大型文档的理想选择。" } }; let currentQuestionIndex = 0; let userScores = { openai: 0, microsoft: 0, meta: 0, anthropic: 0 }; function initScrollAnimations() { const sections = document.querySelectorAll('section'); const observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.isIntersecting) { entry.target.classList.add('fade-in-section'); observer.unobserve(entry.target); } }); }, { threshold: 0.1 }); sections.forEach(section => observer.observe(section)); } function initHeaderScroll() { const header = document.getElementById('main-header'); window.addEventListener('scroll', () => { if (window.scrollY > 50) { header.classList.add('glass-nav', 'shadow-md'); } else { header.classList.remove('glass-nav', 'shadow-md'); } }); } function initMobileMenu() { const button = document.getElementById('mobile-menu-button'); const menu = document.getElementById('mobile-menu'); const links = menu.querySelectorAll('a'); button.addEventListener('click', () => { menu.classList.toggle('hidden'); }); links.forEach(link => { link.addEventListener('click', () => { menu.classList.add('hidden'); }); }); } function initTabs() { const tabButtons = document.q uerySelectorAll('.tab-button'); const tabContents = document.querySelectorAll('.tab-content'); tabButtons.forEach(button => { button.addEventListener('click', () => { tabButtons.forEach(btn => { btn.classList.remove('active', 'text-cyan-600', 'border-cyan-600'); btn.classList.add('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300'); }); button.classList.add('active', 'text-cyan-600', 'border-cyan-600'); button.classList.remove('text-gray-500', 'hover:text-gray-700', 'hover:border-gray-300'); tabContents.forEach(content => { content.classList.add('hidden'); }); document.getElementById(button.dataset.target + '-generator').classList.remove('hidden'); }); }); } function initCopyButtons() { document.querySelectorAll('.copy-button').forEach(button => { button.addEventListener('click', () => { const targetId = button.dataset.target; const textToCopy = document.getElementById(targetId).value; navigator.clipboard.writeText(textToCopy).then(() => { const originalContent = button.innerHTML; button.innerHTML = '✅'; setTimeout(() => { button.innerHTML = originalContent; }, 2000); }); }); }); } function initPromptBuilders() { const generateTextPromptBtn = document.getElementById('genera te-text-prompt'); const textPromptOutput = document.getElementById('text-prompt-output'); generateTextPromptBtn.addEventListener('click', () => { const goal = document.getElementById('text-goal').value; const audience = document.getElementById('text-audience').value; const model = document.getElementById('text-model').value; const info = document.getElementById('text-info').value; let prompt = `创建营销文案。\n目标:${goal}。\n目标受众:${audience}。\n需要包含的关键信息:${info}。`; if (model === 'AIDA') { prompt += "\n应用AIDA模型(注意、兴趣、欲望、行动)。"; } else if (model === 'PAS') { prompt += "\n应用PAS模型(问题、激化、解决方案)。"; } textPromptOutput.value = prompt; }); const imgSubject = document.getElementById('img-subject'); const imagePromptOutput = document.getElementById('image-prompt-output'); const vidSubject = document.getElementById('vid-subject'); const videoPromptOutput = document.getElementById('video-prompt-output'); function updateImagePrompt() { const subject = imgSubject.value; const style = Array.from(document.querySelectorAll('#img-style-tags .selected')).map(el => el.textContent).join(', '); const composition = Array.from(document.querySelectorAll('#img-composition-tags .selected')).map(el => el.textContent).join(', '); const lighting = Array.from(document.querySelectorAll('#img-lighting-tags .selected')).map(el => el.textContent).join(', '); let prompt = subject; if (style) prompt += `, 风格: ${style}`; if (composition) prompt += `, 构图: ${composition}`; if (lighting) prompt += `, 照明: ${lighting}`; imagePromptOutput.value = subject ?
`${prompt}.` : '...'; } function updateVideoPrompt() { const subject = vidSubject.value; const style = Array.from(document.querySelectorAll('#vid-style-tags .selected')).map(el => el.textContent).join(', '); const camera = Array.from(document.querySelectorAll('#vid-camera-tags .selected')).map(el => el.textContent).join(', '); let prompt = subject; if (style) prompt += `, 风格: ${style}`; if (camera) prompt += `, 运镜: ${camera}`; videoPromptOutput.value = subject ?
`${prompt}.` : '...'; } document.querySelectorAll('.prompt-builder-tag').forEach(tag => { tag.addEventListener('click', () => { const group = tag.dataset.group; const parent = tag.parentElement; // Deselect other tags in the same group for single-choice logic if (group === 'style' || group === 'composition' || group === 'lighting' || group === 'camera') { parent.querySelectorAll(`[data-group=${group}]`).forEach(t => t.classList.remove('selected')); } tag.classList.toggle('selected'); updateImagePrompt(); updateVideoPrompt(); }); }); imgSubject.
addEventListener('input', updateImagePrompt); vidSubject.addEventListener('input', updateVideoPrompt); } function initDictionary() { const container = document.getElementById('dictionary-container'); const searchInput = document.getElementById('dictionary-search'); function renderDictionary(filter = '') { container.innerHTML = ''; const filteredData = dictionaryData.filter(item => item.term.toLowerCase().includes(filter.toLowerCase())); if (filteredData.length === 0) { container.innerHTML = ` 未找到匹配的术语。 `; return; } filteredData.forEach(item => { const div = document.createElement('div'); div.className = 'bg-white rounded-lg shadow-sm border border-gray-200'; div.innerHTML = ` ${item.term} ${item.definition} `; container.appendChild(div); }); document.querySelectorAll('.accordion-button').forEach(button => { button.addEventListener('click', () => { const content = button.nextElementSibling; const icon = button.querySelector('svg'); if (content.style.maxHeight) { content.style.maxHeight = null; icon.classList.remove('rotate-180'); } else { content.style.maxHeight = content.scrollHeight + "px"; icon.classList.add('rotate-180'); } }); }); } searchInput.addEventListener('input', (e) => renderDictionary(e.target.value)); renderDictionary(); } function initQuiz() { const quizContainer = document.getElementById('quiz-container'); function showResult() { let maxScore = -1; let resultKey = ''; for (const key in userScores) { if (userScores[key] > maxScore) { maxScore = userScores[key]; resultKey = key; } } const result = quizResults[resultKey]; quizContainer.innerHTML = ` 为您推荐: `; ${result.name} ${result.description} 从头开始 `; document.getElementById('restart-quiz').addEventListener('click', startQuiz); } function showQuestion() { const questionData = quizData[currentQuestionIndex]; let answersHTML = ''; questionData.answers.forEach((answer, index) => { answersHTML += ` ${answer.text} `; }); quizContainer.innerHTML = ` 第 ${currentQuestionIndex + 1} 个问题,共 ${quizData.length} 个 ${questionData.question} ${answersHTML} `; document.querySelectorAll('.quiz-option').forEach(button => { button.addEventListener('click', () => { const answerIndex = parseInt(button.dataset.answerIndex); const selectedAnswer = questionData.answers[answerIndex]; for (const key in selectedAnswer.score) { userScores[key] += selectedAnswer.score[key]; } currentQuestionIndex++; if (currentQuestionIndex