Peter MuReading Journal

December 29, 2023

Can't Hurt Me: Master Your Mind and Defy the Odds

Can't Hurt Me: Master Your Mind and Defy the Odds

David Goggins

So I sought out pain, fell in love with suffering, and eventually transformed myself from the weakest piece of shit on the planet into the hardest man God ever created, or so I tell myself.

2:20 AM

Even the best pep talk or self-help hack is nothing but a temporary fix. It won’t rewire your brain

2:20 AM

Out of every one hundred men,” he wrote, “ten shouldn’t even be there, eighty are just targets, nine are the real fighters, and we are lucky to have them, for they make the battle. Ah, but the one, one is a warrior…”

2:20 AM

Human beings change through study, habit, and stories. Through my story you will learn what the body and mind are capable of when they’re driven to maximum capacity, and how to get there. Because when you’re driven, whatever is in front of you, whether it’s racism, sexism, injuries, divorce, depression, obesity, tragedy, or poverty, becomes fuel for your metamorphosis.

2:20 AM

OpenAI的官方Prompt工程指南详解 - 看这一篇真的就够了

OpenAI的官方Prompt工程指南详解 - 看这一篇真的就够了

数字生命卡兹克

比如:不要说:“总结会议记录”而是说:“用一个段落总结会议记录。然后写下演讲者的 Markdown 列表以及他们的每个要点。最后,列出发言人建议的后续步骤或行动项目(如果有)。”

2:20 AM

**3. **使用分隔符清楚地指示输入的不同部分**** 三引号、XML 标签、节标题等分隔符可以帮助划分要区别对待的文本节。可以帮助大模型更好的理解文本内容。我最喜欢用"""把内容框起来。

2:20 AM

**2. 让模型充当某个角色** 你可以把大模型想象成一个演员,你要告诉他让他演什么角色,他就会更专业更明确,一个道理。

2:20 AM

**4.** 指定完成任务所需的步骤 有些任务能拆就拆,最好指定为一系列步骤。明确地写出这些步骤可以使模型更容易去实现它们。

2:20 AM

**5. 提供例子** 也就是经典的少样本提示,few-shot prompt,先扔给大模型例子,让大模型按你的例子来输出。

2:20 AM

**1. 让模型使用参考文本作答** 知识库的经典用法,让大模型使用我们提供的信息来组成其答案。 比如:使用提供的由三重引号引起来的文章来回答问题。如果在文章中找不到答案,请写“我找不到答案”。"""<在此插入文档>""""""<在此插入文档>""" 问题:<在此插入问题>

2:20 AM

比如:您将获得一份由三重引号和一个问题分隔的文档。您的任务是仅使用提供的文档回答问题,并引用用于回答问题的文档段落。如果文档不包含回答此问题所需的信息,则只需写:“信息不足”。如果提供了问题的答案,则必须附有引文注释。使用以下格式引用相关段落({“引用”:…})。 """<在此插入文档>""" 问题:<在此插入问题>

2:20 AM

1. 使用意图分类来识别与用户查询最相关的指令

2:20 AM

**四.** **给模型时间“思考”** think step by step(一步步思考)这个神级提示词的源头。其实也就是链式思考(CoT),Chain-of-Thought Prompting,非常非常有用的一个策略

2:20 AM

让模型在急于得出结论之前找出自己的解决方案

2:20 AM