Prompt的类型

根据不同的分类标准,Prompt可以被分为不同的类型,如按照业务用途来划分、按照Prompt语言格式来划分等等。 按照业务用途划分有:
  • 问题回答,这类Prompt旨在引导AI回答问题,既可以是简单的,也可以是复杂的。例如,“1+1等于几?”或者“能否简要解释相对论,并告诉我如何推演证明?”
  • 文本生成,这类Prompt旨在借助AI写文案,如文章、故事、营销文案等。可以指定上下文,然后借助AI来生成连续的内容。例如,“写一个关于菊次郎的故事”或者“xxxx,请续写后面的内容”
  • 摘要总结,这类Promot用于引导AI进行总结摘要。提供长篇内容,如小说、论文等,要求AI生成其摘要。例如,“给你一篇论文‘xxxx’,请帮我总结其摘要”
  • 互动对话,这类Prompt用于模拟对话或互动场景,可以与AI模型进行多轮的问答或对话。它可以包含先前的对话历史、角色设定和具体问题,以引导模型产生连贯的对话回应。
  • 其他,根据业务还有很多,如翻译、如识别情感、如实体抽取等等
按照语言格式划分有:
  • 命令式,这类Prompt采取指示性语言告知AI完成任务或生产内容。优点在于明确告知模型需要输出的内容,缺点是容易形成固定模板,导致内容缺少泛化能力。常用于需要明确指导的文本生成任务,例如“请概括一下文章要点”
  • 描述式,这类Prompt采用描述的语气设置生成文本的场景和角度。优点是有助于产生更富创造性的文本,缺点是指导模型的效果较间接。适用于需要创新性输出的写作任务,例如“以下是展示XX公司竞争策略的段落”。
  • 示例式,这类Prompt通过提供示例句子或断句来指导模型的文本产出。优点是可以明确指导样式并减少歧义,缺点是可能导致产出过于参照示例化。适用于需要避免歧义的具体写作任务,例如“请参考以下开头句生成小说段落”。
  • 混合式,混合Prompt综合运用命令、描述、示例多种方式进行表达。例如“请参考以下背景资料并撰写相关的报告摘要”。混合Prompt可以发挥不同类型Prompt的优势,是较为全面和高级的Prompt表达。
由于业务类型的多样性,笔者不能涵盖所有的业务类型。为了更通用,在后续的内容中,我将采用“语言格式”作为分类标准,以方便不同背景的读者阅读。

各类型Prompt示意

一个Prompt常常属于多种类型,比如下面的一些Prompt

Prompt的类型 - 图1

Prompt的类型 - 图2

Prompt的类型 - 图3

  • Prompt如下:摘要总结、命令式、描述式
  1. 给你一段视频字幕,总结视频的核心观点,每个核心观点不超过10个字。以表格形式输出结果,表格抬头是:核心观点|观点说明|字幕开始时间|字幕结束时间,视频字幕如下:
  2. 0:00 now when it comes to installing
  3. 0:00 receptacles or other devices like them
  4. 0:03 i've seen a lot of very common mistakes
  5. 0:06 or at the very least some very poor
  6. 0:08 practices when installing these types of
  7. 0:11 devices so there's quite a few of them
  8. 0:13 so let's go ahead and jump right in
  9. 0:15 let's go alright so the first mistake
  10. 0:16 i'm going to go over when discussing
  11. 0:18 installing these receptacles this may
  12. 0:20 seem very basic but you might be
  13. 0:22 surprised how many people don't know the
  14. 0:24 difference as far as where the wires are
  15. 0:26 supposed to go so on this side here
  16. 0:29 you'll see we've got these gold colored
  17. 0:30 terminals if we flip it over the other
  18. 0:32 side we've got these silver colored
  19. 0:34 terminals the gold colored terminals are
  20. 0:36 going to be for your hot wire typically
  21. 0:38 it's going to be a black wire that's
  22. 0:40 coming in that's supplying the power and
  23. 0:42 that's going to be connected over here
  24. 0:43 to the gold side the neutral wire which
  25. 0:46 is the white wire is always going to go
  26. 0:48 over here on the side with the silver
  27. 0:50 colored terminal screws if you were to
  28. 0:53 put your black line wire on the silver
  29. 0:55 terminal and your white neutral wire on
  30. 0:57 the gold terminals this is referred to
  31. 0:59 as reverse polarity now the reason why
  32. 1:02 that's so dangerous to where if you have
  33. 1:04 the line or the electricity wired into
  34. 1:07 the neutral side with these silver
  35. 1:08 screws is because it's going to create
  36. 1:11 an unsafe receptacle it may work but you
  37. 1:14 are running a risk of having a short
  38. 1:16 circuit or a shock or even possibly a
  39. 1:19 fire
  40. 1:20 so just remember that black is always to
  41. 1:23 gold the white neutral wires are always
  42. 1:25 to the silver terminals and green wires
  43. 1:27 and bare copper wires like this one here
  44. 1:29 are always the ground wires and they
  45. 1:31 will always go to this green ground
  46. 1:33 screw here all right so for this next
  47. 1:34 mistake this is a very common
  48. 1:36 residential receptacle these type
  49. 1:38 receptacles require for a hook to go
  50. 1:41 around the terminal screws and then it
  51. 1:42 gets tightened down but one of the
  52. 1:44 really big mistakes i see when people
  53. 1:46 are installing these types of
  54. 1:47 receptacles is when they take their
  55. 1:49 wiring they're stripping off way too
  56. 1:51 much insulation so when they take their
  57. 1:53 hook and they wrap it around the
  58. 1:55 terminal screw and then they go to
  59. 1:56 tighten it down you can see this copper
  60. 1:59 that's extending on
  61. 2:00 past the terminal screw by quite a bit
  62. 2:03 and then also past the back of the
  63. 2:05 receptacle the problem with this is once
  64. 2:07 this is all tightened up and pushed into
  65. 2:08 the back of the box what could happen is
  66. 2:11 possibly your bare copper your ground
  67. 2:13 wire could rub up against this hot wire
  68. 2:15 here and then it's going to cause
  69. 2:17 everything to shore out you could also
  70. 2:19 have instances with arcing depending on
  71. 2:22 how everything is in your box which is
  72. 2:24 obviously something that you don't want
  73. 2:26 that could ultimately cause a fire
  74. 2:28 conversely i've seen people and this is
  75. 2:30 a little bit of a dramatization but i
  76. 2:31 have seen them like this where they cut
  77. 2:33 too little insulation off that hook when
  78. 2:36 they wrap it around that terminal screw
  79. 2:38 as you can see even though that hook is
  80. 2:40 around that terminal screw once we would
  81. 2:42 tighten down the terminal screw on top
  82. 2:44 of it if we flip it here to the bottom
  83. 2:46 side
  84. 2:47 you can see that insulation is
  85. 2:49 underneath of the head of that terminal
  86. 2:51 screw
  87. 2:52 well when that terminal screw gets
  88. 2:54 tightened down and it clamps down this
  89. 2:56 wire it's going to be making a lot of
  90. 2:58 contact with that insulation which is
  91. 3:00 obviously wider than the copper portion
  92. 3:02 of the wire and you're not going to get
  93. 3:04 a good connection there so you also are
  94. 3:07 going to have a bunch of issues here the
  95. 3:09 outlet itself may not work or it may
  96. 3:11 work intermittently or you could have a
  97. 3:13 case of where it short circuits or
  98. 3:14 causes overheating and a really easy way
  99. 3:17 to check and make sure that you have the
  100. 3:18 correct amount of insulation stripped
  101. 3:20 off of the wiring is you can use a strip
  102. 3:23 gauge they're on pretty much all of the
  103. 3:25 receptacles that are out there and you
  104. 3:27 can just put your wiring up into that
  105. 3:30 strip gauge just to either confirm that
  106. 3:32 you've stripped off the proper amount or
  107. 3:34 if this wire wasn't stripped already you
  108. 3:36 can just lay it up in there make a mark
  109. 3:38 and then strip it from that mark off and
  110. 3:40 you know that you're going to have the
  111. 3:42 perfect amount of insulation removed
  112. 3:44 from the wiring in order to have that
  113. 3:45 good connection and so this is what a
  114. 3:48 good connection would look like all
  115. 3:50 right so talking about the wiring being
  116. 3:51 connected to the receptacles that leads
  117. 3:53 me to the next mistake that i'm going to
  118. 3:55 talk about
  119. 3:56 and that has to do with these hooks
  120. 3:57 again and so i'm just going to put this
  121. 3:59 hook over this terminal screw
  122. 4:02 and then i'm just going to go ahead and
  123. 4:04 tighten that down all right so does
  124. 4:06 anybody see the mistake with this wire
  125. 4:08 on this terminal screw yeah it's put on
  126. 4:12 in the wrong direction it's being put on
  127. 4:14 in a counterclockwise direction and the
  128. 4:16 problem with that is if you can see all
  129. 4:18 this copper up here at the top
  130. 4:20 and then here at the bottom it's not
  131. 4:22 awful but what ends up happening if you
  132. 4:24 put your wiring on in a counterclockwise
  133. 4:26 direction you may have seen it as i was
  134. 4:27 tightening that down it's actually going
  135. 4:30 to promote the wire being pushed away
  136. 4:33 from the terminal screw so it's not
  137. 4:35 going to be in nice and tight in the
  138. 4:37 middle of this terminal screw which
  139. 4:39 could lead to
  140. 4:40 not as good of a connection as you would
  141. 4:42 want so what you'd actually want to do
  142. 4:44 is you'd actually want to take that hook
  143. 4:46 and instead of wrapping it around in a
  144. 4:48 counterclockwise direction we want that
  145. 4:50 hook or that loop to go around the
  146. 4:52 terminal screw in a clockwise direction
  147. 4:56 as i tighten down the terminal screw
  148. 4:58 it's going to promote pulling that wire
  149. 5:00 in closer to the center of that terminal
  150. 5:03 screw which is going to give us a much
  151. 5:05 better connection
  152. 5:06 so as you can see it's pulled in here
  153. 5:08 nice and tight and we have a really nice
  154. 5:11 solid connection here and this is
  155. 5:13 especially true for this stranded wire
  156. 5:15 here it's going to be promoting or
  157. 5:17 pushing each one of those strands out
  158. 5:19 away from the terminal screw
  159. 5:21 but if we take that same strand of wire
  160. 5:23 and wrap it around in the correct
  161. 5:24 direction the clockwise direction you'll
  162. 5:27 see that it actually wants to pull it in
  163. 5:29 closer
  164. 5:32 so as you can see all those strands are
  165. 5:35 in there much tighter we don't have any
  166. 5:37 of those stray strands that are
  167. 5:38 basically reaching up to this second
  168. 5:40 terminal up here everything's in there
  169. 5:42 nice and tight by going around in a
  170. 5:44 clockwise direction now really quickly
  171. 5:46 if you're finding value in this video if
  172. 5:48 you could do me a huge favor all that i
  173. 5:49 ask is that you hit that thumbs up
  174. 5:51 button right down below or leave a
  175. 5:53 comment down the comment section letting
  176. 5:54 me know what you think of the video so
  177. 5:56 far it really does help the video out to
  178. 5:58 spread out to other people and hopefully
  179. 6:00 be able to help them out as well i
  180. 6:02 really appreciate it let's get back into
  181. 6:04 it all right so for this next mistake or
  182. 6:06 really a very poor practice and this is
  183. 6:09 one that i've seen electricians do
  184. 6:11 because my house was wired in some
  185. 6:13 places like this since then i have
  186. 6:15 corrected it because i really think that
  187. 6:17 this is a really poor way of doing it is
  188. 6:20 on these residential outlets if we flip
  189. 6:22 it over here to the back if you see
  190. 6:24 these four holes here
  191. 6:25 this is where you can insert up to 14 6:28 gauge wire into these holes to connect
  192. 6:31 the wiring to the receptacle itself
  193. 6:34 this is known as speed wiring also known
  194. 6:37 as backstabbing and the way that this
  195. 6:39 works we've got our silver terminals
  196. 6:40 here and a white wire all you have to do
  197. 6:43 in order to make this connection is push
  198. 6:46 the wiring into one of those holes
  199. 6:48 and once it seats as you can see it
  200. 6:51 doesn't just pull out and while this
  201. 6:53 seems like a really great way of doing
  202. 6:55 things because it is so quick and easy
  203. 6:57 to do there's a lot of problems that can
  204. 6:59 come from this now if you're going to
  205. 7:00 have a problem and you have a defective
  206. 7:02 device you may see issues right away
  207. 7:05 other times it may take time in order
  208. 7:08 for issues to develop and the reason
  209. 7:10 that it may take a while is that the
  210. 7:12 more that the device is used the more
  211. 7:14 that it warms and cools the more that
  212. 7:16 it's moved around that little piece of
  213. 7:19 metal that's inside that's making
  214. 7:20 connection and holding this wiring in
  215. 7:22 may become loose and if it becomes loose
  216. 7:24 over time what can end up happening is
  217. 7:26 the wire starts to back out and may fall
  218. 7:28 out completely if it doesn't fall all
  219. 7:30 the way out and it just starts to have a
  220. 7:32 really poor connection well then you
  221. 7:33 could have arcing and heating and a
  222. 7:36 bunch of other issues and to kind of
  223. 7:38 illustrate this wire being backed out as
  224. 7:40 you can see it's in there nice and tight
  225. 7:41 you need to depress there's a little tab
  226. 7:43 inside of here usually use a screwdriver
  227. 7:45 to depress it and then pull it out if
  228. 7:47 you wanted to remove the wire i'm going
  229. 7:49 to show you right here where i can
  230. 7:50 remove this wire without depressing that
  231. 7:52 tab just by pulling on it and twisting
  232. 7:54 the receptacle back and forth and it's
  233. 7:56 just that easy for that wire to come out
  234. 7:58 so for this next mistake this is a big
  235. 8:01 one as you can see here i've got two
  236. 8:03 terminal screws and just imagine that
  237. 8:05 the whites both of these terminal screws
  238. 8:07 are taken up as well and they're wanting
  239. 8:09 to connect another receptacle or another
  240. 8:11 device of some sort and they want to use
  241. 8:13 this as a way to tap into the circuit
  242. 8:16 well what they'll end up doing
  243. 8:18 is they'll loosen one of the terminal
  244. 8:21 screws
  245. 8:22 they'll leave that wire in place they'll
  246. 8:24 take their new wire and they'll put it
  247. 8:27 in on top of the wiring that's already
  248. 8:30 there so that's what they do they leave
  249. 8:33 their wires that are already there in
  250. 8:34 place they take their new wire coming in
  251. 8:36 so they can connect to something in
  252. 8:38 order to power a new device and then
  253. 8:40 they just sandwich the two together
  254. 8:42 underneath of one terminal screw these
  255. 8:45 devices are not made to have more than
  256. 8:47 one wire under the terminal screw so
  257. 8:49 this is against code and it's also
  258. 8:51 incredibly dangerous to do over time
  259. 8:54 what can end up happening is since we
  260. 8:55 don't have proper pressure from the
  261. 8:57 terminal screw on the wiring and there's
  262. 9:00 variables to where these wires can move
  263. 9:03 one of these wires can eventually fall
  264. 9:05 out from underneath of the terminal
  265. 9:06 screw which then also has the other wire
  266. 9:08 being loose and then that can cause all
  267. 9:10 kinds of problems with the minimum of
  268. 9:12 the receptacle not working or damaging
  269. 9:15 it all the way up to causing a fire it
  270. 9:18 would be far better to avoid doing this
  271. 9:20 at all and just use some pigtails in
  272. 9:23 order to connect all of your devices and
  273. 9:26 the new device that you're wanting to
  274. 9:28 install the next thing i want to talk
  275. 9:29 about as far as installing these
  276. 9:31 receptacles or devices that are like
  277. 9:33 them that is really going to make things
  278. 9:35 a whole lot faster
  279. 9:36 easier and make sure that your
  280. 9:38 connections are going to be as tight as
  281. 9:40 they should be
  282. 9:41 is it comes down to the tools that you
  283. 9:43 use now a lot of people are using their
  284. 9:46 standard phillips head screwdriver in
  285. 9:49 order to
  286. 9:50 loosen and tighten the terminal screws
  287. 9:53 on the receptacles and while a phillips
  288. 9:56 head will work it can also cause issues
  289. 10:01 if you get down to the point of where
  290. 10:02 it's becoming hard to turn if you go to
  291. 10:04 keep trying to turn it look at what
  292. 10:06 happens the phillips head wants to just
  293. 10:08 kind of come out of that terminal screw
  294. 10:10 and that terminal screw can still be
  295. 10:12 tightened down a little bit more so with
  296. 10:15 a phillips head you can't always get
  297. 10:17 this tightened down as much as you
  298. 10:19 should
  299. 10:20 and then there is the robertson bit or a
  300. 10:22 lot of people call it the square bit the
  301. 10:25 robertson bit is what i've been using
  302. 10:26 for quite a while now because it is
  303. 10:28 extremely effective at tightening down
  304. 10:30 these terminal screws but there are a
  305. 10:32 couple of options out there that are
  306. 10:34 actually better than the robertson bit
  307. 10:36 so what i'm using now are these two bits
  308. 10:38 right here over here is milwaukee's ecx
  309. 10:41 bit and over here is klein's combination
  310. 10:44 bit if you see here you've got this long
  311. 10:46 blade here kind of mimics a flat head so
  312. 10:49 you can get a lot of nice torque on that
  313. 10:52 terminal screw if we flip it up here to
  314. 10:54 the top side you can see it's kind of
  315. 10:56 squared off so it's more like that
  316. 10:58 robertson bit so you can get right into
  317. 11:00 the middle of that terminal screw and
  318. 11:02 also help to add to that torque and get
  319. 11:04 a nice grip on that terminal screw so
  320. 11:07 just to kind of give you a visual as to
  321. 11:08 how much better these work this is a
  322. 11:10 standard phillips head so i'm going to
  323. 11:11 get it down to where i can tighten as
  324. 11:13 much as possible with this
  325. 11:15 and now it's popping out so let's see if
  326. 11:17 we can't take one of these newer bits
  327. 11:20 put it in there and get it to tighten
  328. 11:21 down a little bit more
  329. 11:26 so as you can see i was able to rotate
  330. 11:28 it a little bit further than i was able
  331. 11:30 to with the phillips head and it was
  332. 11:31 pretty easy to do so i have links for
  333. 11:34 both of these down in the description
  334. 11:35 down below now if you like electrical
  335. 11:37 projects or other projects for around
  336. 11:38 the home i'll post some links right over
  337. 11:40 here of some videos and playlists that
  338. 11:43 you might be interested in now i hope
  339. 11:45 this video was helpful and maybe you
  340. 11:46 found it to be interesting and if you
  341. 11:48 did if you could do me a huge favor hit
  342. 11:49 that thumbs up button right down below
  343. 11:51 and of course if you have any questions
  344. 11:53 or comments at all you can leave those
  345. 11:55 down in the comment section and i'll
  346. 11:56 catch you all in the next one see ya