332 lines
8.6 KiB
HTML
332 lines
8.6 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh" dir="ltr">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="description" content="Prompt Example # 英文词典 # 效果 Prompt System Prompt You are an English word lookup helper. Whenever a user sends you an English word, you respond to the user in a fixed format, and if the user sends you something other than a word, reply with an 'invalid token'. User run Assistant ## run [/rʌn/] ### n. 奔跑;">
|
||
<meta name="theme-color" content="#FFFFFF">
|
||
<meta name="color-scheme" content="light dark"><meta property="og:title" content="" />
|
||
<meta property="og:description" content="" />
|
||
<meta property="og:type" content="website" />
|
||
<meta property="og:url" content="https://academics.jamesflare.com/zh/docs/%E5%85%88%E8%BF%9B%E5%B7%A5%E5%85%B7/llm%E7%B3%BB%E5%88%97/gpt%E7%B3%BB%E5%88%97/prompt-example/" />
|
||
<title>Prompt Example | Academic Resources</title>
|
||
<link rel="manifest" href="/manifest.json">
|
||
<link rel="icon" href="/favicon.png" type="image/x-icon">
|
||
<link rel="stylesheet" href="/book.min.f8de3645fe00591b41524aee174e19edd98a22255a2930a0cdc82a94835ba387.css" integrity="sha256-+N42Rf4AWRtBUkruF04Z7dmKIiVaKTCgzcgqlINbo4c=" crossorigin="anonymous">
|
||
<script defer src="/flexsearch.min.js"></script>
|
||
<script defer src="/zh.search.min.3f34d7fccf0167107601775fa8a9c414ccabab8a6a9c508540f2ced427090add.js" integrity="sha256-PzTX/M8BZxB2AXdfqKnEFMyrq4pqnFCFQPLO1CcJCt0=" crossorigin="anonymous"></script>
|
||
<link rel="alternate" type="application/rss+xml" href="https://academics.jamesflare.com/zh/docs/%E5%85%88%E8%BF%9B%E5%B7%A5%E5%85%B7/llm%E7%B3%BB%E5%88%97/gpt%E7%B3%BB%E5%88%97/prompt-example/index.xml" title="Academic Resources" />
|
||
<!--
|
||
Made with Book Theme
|
||
https://github.com/alex-shpak/hugo-book
|
||
-->
|
||
<link rel="stylesheet" href="https://academics.jamesflare.com/css/custom.css">
|
||
|
||
<script type="text/javascript" src="https://academics.jamesflare.com/js/custom.js"></script>
|
||
<script>pangu.spacingPage();</script>
|
||
</head>
|
||
<body dir="ltr">
|
||
<input type="checkbox" class="hidden toggle" id="menu-control" />
|
||
<input type="checkbox" class="hidden toggle" id="toc-control" />
|
||
<main class="container flex">
|
||
<aside class="book-menu">
|
||
<div class="book-menu-content">
|
||
|
||
<nav>
|
||
<h2 class="book-brand">
|
||
<a class="flex align-center" href="/zh/"><span>Academic Resources</span>
|
||
</a>
|
||
</h2>
|
||
|
||
|
||
<div class="book-search">
|
||
<input type="text" id="book-search-input" placeholder="搜索" aria-label="搜索" maxlength="64" data-hotkeys="s/" />
|
||
<div class="book-search-spinner hidden"></div>
|
||
<ul id="book-search-results"></ul>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<ul class="book-languages">
|
||
<li>
|
||
<input type="checkbox" id="languages" class="toggle" />
|
||
<label for="languages" class="flex justify-between">
|
||
<a role="button" class="flex align-center">
|
||
<img src="/svg/translate.svg" class="book-icon" alt="Languages" />
|
||
Chinese
|
||
</a>
|
||
</label>
|
||
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="https://academics.jamesflare.com/">
|
||
English
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<ul>
|
||
<li>
|
||
<p><a href="/zh/docs/%E5%AD%A6%E6%9C%AF%E8%B5%84%E6%BA%90/"><strong>学术资源</strong></a></p>
|
||
<ul>
|
||
<li><a href="/zh/docs/%E5%AD%A6%E6%9C%AF%E8%B5%84%E6%BA%90/%E5%AD%A6%E7%A7%91%E5%9C%A8%E7%BA%BF%E8%B5%84%E6%BA%90/">学科在线资源</a></li>
|
||
<li><a href="/zh/docs/%E5%AD%A6%E6%9C%AF%E8%B5%84%E6%BA%90/%E5%AD%A6%E6%9C%AF%E5%B7%A5%E5%85%B7%E9%9B%86/">学术工具集</a></li>
|
||
<li><a href="/zh/docs/%E5%AD%A6%E6%9C%AF%E8%B5%84%E6%BA%90/%E4%B8%93%E4%B8%9A%E4%B8%8E%E8%AF%BE%E5%A4%96%E8%B5%84%E6%BA%90/">专业与课外资源</a>
|
||
<br /></li>
|
||
</ul>
|
||
</li>
|
||
<li>
|
||
<p><a href="/zh/docs/%E5%85%88%E8%BF%9B%E5%B7%A5%E5%85%B7/"><strong>先进工具</strong></a></p>
|
||
<ul>
|
||
<li><a href="/zh/docs/%E5%85%88%E8%BF%9B%E5%B7%A5%E5%85%B7/llm%E7%B3%BB%E5%88%97/">LLM系列</a>
|
||
<br /></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<ul>
|
||
|
||
<li>
|
||
<a href="/zh/posts/news/" >
|
||
新闻
|
||
</a>
|
||
</li>
|
||
|
||
<li>
|
||
<a href="/zh/posts/about/" >
|
||
关于成员
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</nav>
|
||
|
||
|
||
|
||
|
||
<script>(function(){var e=document.querySelector("aside .book-menu-content");addEventListener("beforeunload",function(){localStorage.setItem("menu.scrollTop",e.scrollTop)}),e.scrollTop=localStorage.getItem("menu.scrollTop")})()</script>
|
||
|
||
|
||
|
||
</div>
|
||
</aside>
|
||
|
||
<div class="book-page">
|
||
<header class="book-header">
|
||
|
||
<div class="flex align-center justify-between">
|
||
<label for="menu-control">
|
||
<img src="/svg/menu.svg" class="book-icon" alt="Menu" />
|
||
</label>
|
||
|
||
<strong>Prompt Example</strong>
|
||
|
||
<label for="toc-control">
|
||
|
||
<img src="/svg/toc.svg" class="book-icon" alt="Table of Contents" />
|
||
|
||
</label>
|
||
</div>
|
||
|
||
|
||
|
||
<aside class="hidden clearfix">
|
||
|
||
|
||
<nav id="TableOfContents">
|
||
<ul>
|
||
<li><a href="#英文词典">英文词典</a></li>
|
||
</ul>
|
||
</nav>
|
||
|
||
|
||
|
||
</aside>
|
||
|
||
|
||
</header>
|
||
|
||
|
||
|
||
<article class="markdown"><h1 id="prompt-example">
|
||
Prompt Example
|
||
<a class="anchor" href="#prompt-example">#</a>
|
||
</h1>
|
||
<h2 id="英文词典">
|
||
英文词典
|
||
<a class="anchor" href="#%e8%8b%b1%e6%96%87%e8%af%8d%e5%85%b8">#</a>
|
||
</h2>
|
||
|
||
|
||
|
||
|
||
<div class="book-tabs"><input type="radio" class="toggle" name="tabs-词典" id="tabs-词典-0" checked="checked" />
|
||
<label for="tabs-词典-0">效果</label>
|
||
<div class="book-tabs-content markdown-inner"><figure><img src="en-dictionary.avif" width="500px"/>
|
||
</figure>
|
||
</div><input type="radio" class="toggle" name="tabs-词典" id="tabs-词典-1" />
|
||
<label for="tabs-词典-1">Prompt</label>
|
||
<div class="book-tabs-content markdown-inner"><p>System Prompt</p>
|
||
<pre tabindex="0"><code>You are an English word lookup helper. Whenever a user sends you an English word, you respond to the user in a fixed format, and if the user sends you something other than a word, reply with an 'invalid token'.
|
||
</code></pre><p>User</p>
|
||
<pre tabindex="0"><code>run
|
||
</code></pre><p>Assistant</p>
|
||
<pre tabindex="0"><code>## run [/rʌn/]
|
||
|
||
### n. 奔跑;竞赛;连续的演出
|
||
|
||
> He went for a run after work.
|
||
>
|
||
> 他下班后去跑步了
|
||
|
||
### v. 奔跑;运行
|
||
|
||
> I like to run in the park every morning.
|
||
>
|
||
> 我喜欢每天早上在公园里跑步
|
||
|
||
### adj. 连续的;流畅的
|
||
|
||
> This printer is really fast and runs smoothly.
|
||
>
|
||
> 这台打印机速度非常快,而且运行流畅
|
||
</code></pre><p>User</p>
|
||
<pre tabindex="0"><code>with
|
||
</code></pre><p>Assistant</p>
|
||
<pre tabindex="0"><code>## with [wɪð, wɪθ]
|
||
|
||
### prep. 有;带着;使用;用
|
||
|
||
> She cut the cake with a knife.
|
||
>
|
||
> 她用刀子切蛋糕。
|
||
|
||
### conj. 和;随着
|
||
|
||
> With a little bit of luck, we'll finish the project on time.
|
||
>
|
||
> 有点运气的话,我们会按时完成这个项目。
|
||
|
||
### adv. 一起;同时
|
||
|
||
> They arrived with their children.
|
||
>
|
||
> 他们带着孩子一起到达了。
|
||
</code></pre></div><input type="radio" class="toggle" name="tabs-词典" id="tabs-词典-2" />
|
||
<label for="tabs-词典-2">解释</label>
|
||
<div class="book-tabs-content markdown-inner"><p>这里使用了Few Shot的技巧,直接使用一个System Prompt可能会导致输出内容的格式不确定。</p>
|
||
<p>通过这两个例子,我们的输出非常理想。</p>
|
||
</div></div>
|
||
|
||
</article>
|
||
|
||
|
||
|
||
<footer class="book-footer">
|
||
|
||
<div class="flex flex-wrap justify-between">
|
||
|
||
|
||
|
||
|
||
<div>
|
||
<a class="flex align-center" href="https://github.com/JamesFlare1212/SCDocs/edit/dev/content.zh/docs/%e5%85%88%e8%bf%9b%e5%b7%a5%e5%85%b7/LLM%e7%b3%bb%e5%88%97/GPT%e7%b3%bb%e5%88%97/Prompt%20Example/_index.md" target="_blank" rel="noopener">
|
||
<img src="/svg/edit.svg" class="book-icon" alt="Edit" />
|
||
<span>编辑本页</span>
|
||
</a>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<script>(function(){function e(e){const t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}document.querySelectorAll("pre code").forEach(t=>{t.addEventListener("click",function(){if(window.getSelection().toString())return;e(t.parentElement),navigator.clipboard&&navigator.clipboard.writeText(t.parentElement.textContent)})})})()</script>
|
||
|
||
|
||
|
||
|
||
</footer>
|
||
|
||
|
||
|
||
<div class="book-comments">
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<label for="menu-control" class="hidden book-menu-overlay"></label>
|
||
</div>
|
||
|
||
|
||
<aside class="book-toc">
|
||
<div class="book-toc-content">
|
||
|
||
|
||
<nav id="TableOfContents">
|
||
<ul>
|
||
<li><a href="#英文词典">英文词典</a></li>
|
||
</ul>
|
||
</nav>
|
||
|
||
|
||
|
||
</div>
|
||
</aside>
|
||
|
||
</main>
|
||
|
||
<script src="/js/pangu.min.js"></script>
|
||
<script>pangu.spacingPage();</script>
|
||
</body>
|
||
</html>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|