{row.inputTitle}
-
{row.inputs.map((item) =>
- {item} )}
{row.need?.decision_context || '这类信息没有形成需要判断的问题'}
{query.query}
import { useMemo, useState } from 'react' import { generateTopicTableQueries, getTopicTableQueryPrompt } from '../../api/workbench.js' const EXAMPLE = { topicBuildId: '1229', topicId: '1392', } const ROUTES = [ { key: 'unique_hook', inputTitle: '灵感点和特殊组合' }, { key: 'goal_execution', inputTitle: '目标和想达到的效果' }, { key: 'key_execution', inputTitle: '关键镜头和动作要求' }, { key: 'cross_dimension', inputTitle: '实质、形式、意图三类元素' }, { key: 'account_fit', inputTitle: '账号原来的内容风格' }, { key: 'evidence_gap', inputTitle: '参考案例和元素来源' }, ] function shortText(value, max = 120) { const text = String(value || '').trim() return text.length > max ? `${text.slice(0, max)}…` : text } function firstItems(values, max = 4) { return [...new Set((values || []).filter(Boolean).map((value) => shortText(value)))].slice(0, max) } function joinNames(values, max = 8) { const names = values || [] if (names.length <= max) return names.join('、') return `${names.slice(0, max).join('、')}等` } function sourceItems(result, route) { const topic = result.topic || {} const groups = topic.input_groups || {} const points = groups.points || {} const dimensions = topic.dimensions || {} const direction = topic.topic_direction || {} const preferences = direction.persona_dimensions || {} if (route === 'unique_hook') { return firstItems(points['灵感点'] || [topic.result]) } if (route === 'goal_execution') { return firstItems([ ...(points['目的点'] || []), dimensions['意图']?.length ? `想达到的效果:${joinNames(dimensions['意图'])}` : '', ]) } if (route === 'key_execution') { return firstItems([ ...(points['关键点'] || []), dimensions['形式']?.length ? `拍摄形式:${joinNames(dimensions['形式'])}` : '', ]) } if (route === 'cross_dimension') { return firstItems([ dimensions['实质']?.length ? `内容里有什么:${joinNames(dimensions['实质'])}` : '', dimensions['形式']?.length ? `怎么呈现:${joinNames(dimensions['形式'])}` : '', dimensions['意图']?.length ? `想达到什么效果:${joinNames(dimensions['意图'])}` : '', ]) } if (route === 'account_fit') { return firstItems([ preferences['实质偏好'] ? `常拍内容:${preferences['实质偏好']}` : '', preferences['形式偏好'] ? `常用拍法:${preferences['形式偏好']}` : '', preferences['意图偏好'] ? `希望观众感受到:${preferences['意图偏好']}` : '', ], 3) } return firstItems((groups.reference_notes || []).map((row) => `${row.element}:${row.note}`), 3) } function PromptModal({ payload, loading, error, onClose }) { return (
{payload ? `${payload.name} · ${payload.version}` : '读取当前线上使用的完整 Prompt'}
{payload.system_prompt}
>
)}
{row.need?.decision_context || '这类信息没有形成需要判断的问题'}
{query.query}
每一类选题信息,都对应一项大模型判断和一组具体搜索词。
樱花树下低角度拍小羊,用 CCD 记录彩虹光晕
这个画面里的彩虹光晕,怎样才能稳定拍出来?