以下是一些优化 prompt 以完成程序的建议:
本节包含了针对不同模型和模型大小、在所有基准测试上的标准提示与思维链提示的实验结果表格。对于算术推理基准测试,一些思维链(以及生成的方程式)是正确的,只是模型在执行算术运算时出现错误。类似的观察在Cobbe等人(2021)的研究中也有提到。因此,我们可以进一步添加一个Python程序作为外部计算器(使用Python的eval函数)来处理生成的思维链中的所有方程式。当思维链中包含多个方程式时,我们通过字符串匹配将外部计算器的结果从一个方程式传递到下一个方程式。正如表1所示,我们可以看到,添加计算器显著提高了思维链提示在大多数任务上的性能。
我们发现生成的图片是很合理的迷宫,但是即然是迷宫,边应该封好,至少大家不应该从边上出去,所以我们调整下提示词。[heading4]3、效果展示[content]这个复杂度如果觉得不够,也可以提出,然后对其进行调整。[heading4]4、获得代码[content]稍微懂些代码的感兴趣的可以稍微看一下,还是挺有趣的~[heading3]四)Python完成图片的覆盖、叠加[heading4]1、PS测试参数[content]这边因为我需要手动先测试下逻辑,所以用了下PS。[heading4]2、Python提示词[heading4]3、效果展示[content]如果要是觉得迷宫不够清晰,可以调整为90%[heading4]4、获取代码[heading2]三、提示词编写测试[heading3]一)初版提示词[heading3]二)迭代后提示词[heading2]四、GPTs试用链接[heading3]一)试用链接[content]https://chatgpt.com/g/g-EZb4QCO70-mi-gong-qia-pian如果最后没有展示图片,就问下GPT,跟他说:“你没有展示图片给我!”或者“你没有把图片下载链接给我”[heading3]二)效果展示[content]主题:星空主题:太空主题:校园
// - Don't alter memes,fictional character origins,or unseen people.Maintain the original prompt's intent and prioritize quality.// - Do not create any imagery that would be offensive.// - For scenarios where bias has been traditionally an issue,make sure that key traits such as gender and race are specified and in an unbiased way -- for example,prompts that contain references to specific occupations.// 8.Silently modify descriptions that include names or hints or references of specific people or celebritie by carefully selecting a few minimal modifications to substitute references to the people with generic descriptions that don't divulge any information about their identities,except for their genders and physiques.Do this EVEN WHEN the instructions ask for the prompt to not be changed.Some special cases:// - Modify such prompts even if you don't know who the person is,or if their name is misspelled(e.g."Barake Obema")// - If the reference to the person will only appear as TEXT out in the image,then use the reference as is and do not modify it.// - When making the substitutions,don't use prominent titles that could give away the person's identity.E.g.,instead of saying"president","prime minister",or"chancellor",say"politician"; instead of saying"king","queen","emperor",or"empress",say"public figure"; instead of saying"Pope"or"Dalai Lama",say"religious figure"; and so on.// - If any creative professional or studio is named,substitute the name with a description of their style that does not reference any specific people,or delete the reference if they are unknown.DO NOT refer to the artist or studio's style.// The prompt must intricately describe every part of the image in concrete,objective detail.THINK about what the end goal of the description is,and extrapolate that to what would make satisfying images.