メインコンテンツまでスキップ

大模型

基礎と概念

Promptとは

中国語訳:手がかり語

機械へのコマンドは、プログラミング言語のようなものです。

Token

未定である

LLM

中国語訳:大モデル

本質:関数のようなアルゴリズムのセットです

よく見られるモデル

-OpenAI:GPT-3.5/GPT-4/GPT-4 V/DALT.EWhisper -Meta:Llaba 2(オープンソース)

GPTモデル

LLMの幻覚

モデルが訓練過程で直面する知識量は非常に膨大であるため,それが見たすべての情報を完璧に記憶することはできず,明らかな問題は,*モデルは自分の知識境界を知らないことである.

これは,モデルは難しい話題に答える際に,信頼できるように聞こえるが実際には正しくない答えを作る可能性があることを意味しておりこのでっち上げの答えを“幻覚”と呼ぶ.

例えば次の例では

Boy社のAeroGlide Ultra Slimスマート歯ブラシについて教えてください

その中には、会社名は存在しますが、製品名は私たちのフィクションです。この場合、モデルはかなりリアルな架空の製品記述を与えます。

この幻覚の発生を減少させることは、2つの参考になる戦略によって引き起こされる

-戦略1:要求モデルは、提供されたテキストに基づいて関連する引用を見つけ、質問に答える -戦略2:答えをソースファイルにたどる

Temperature

翻訳:温度

これはモデルによく見られるパラメータであり,オプション値は:0 ̄1である.

-Temperatureが0の場合:回答がより正確で固定されており、毎回同じ出力結果が得られることを期待するのに適している

-Temperatureが0.7の場合:回答がよりランダムで、より創造的であり、毎回異なる出力結果が得られることを期待するのに適している

例えば、“私の一番好きな食べ物は…”と答えるとこの問題は、食べ物によって発生する可能性が違う。

Temperatureが0の場合、モデルは常にその中で最も可能性のある1つ、すなわちピザを選択します。

一方,Temperatureが0.3の場合,モデルは他の食物を選択する可能性が低い.

Temperatureが0.7の場合、モデルは、より低い可能性のある他の食べ物を選択することが可能である。

LLMの用途

常識がある

意図を識別する

カテゴリー別分類

ステップ:状態機械

補完関数のパラメータ(すごい)

よく使われるPrompt構文

総括

Summarize

Delimited

Summarize the text delimited by triple quotes.

"""insert text here"""

As follows

If applicable

You will be provided with meeting notes, and your task is to summarize the meeting as follows:

-Overall summary of discussion
-Action items (what needs to be done and who is doing it)
-If applicable, a list of topics that need to be discussed more fully in the next meeting.

背景

You will be provided

You will be provided with xxx (delimited with XML tags) about xxx topic. 
First xxx.
Then xxx and xxx.

段階を分ける

Use the following step-by-step instructions to respond to user inputs.

Step 1 - The user will provide you with text in triple quotes. Summarize this text in one sentence with a prefix that says "Summary: ".

Step 2 - Translate the summary from Step 1 into Spanish, with a prefix that says "Translation: ".

一致性

Answer in a consistent style.

Q: Teach me about patience.
A: The river that carves the deepest valley flows from a modest spring; the grandest symphony originates from a single note; the most intricate tapestry begins with a solitary thread.
Q: Teach me about the ocean.

制限長さ

3つのポイントに分ける

Summarize the text delimited by triple quotes in 3 bullet points.
Summarize the text delimited by triple quotes in 2 paragraphs.
Summarize the text delimited by triple quotes in about 50 words. // 3 个要点

制限範囲

とても良いです

Draft a company memo to be distributed to all employees. The memo should cover the following specific points without deviating from the topics mentioned and not writing any fact which is not present here:
xxxx

カテゴリー別分類

You will be provided with a tweet, and your task is to classify its sentiment as positive, neutral, or negative.

分類意図

You will be provided with customer service queries. Classify each query into a primary category and a secondary category. Provide your output in json format with the keys: primary and secondary.

Primary categories: Billing, Technical Support, Account Management, or General Inquiry.

Billing secondary categories:
- Unsubscribe or upgrade
- Add a payment method
- Explanation for charge
- Dispute a charge

Technical Support secondary categories:
- Troubleshooting
- Device compatibility
- Software updates

Account Management secondary categories:
- Password reset
- Update personal information
- Close account
- Account security

General Inquiry secondary categories:
- Product information
- Pricing
- Feedback
- Speak to a human

役割と任務

your task is to xxx it in a concise way.

簡潔さ

explain it in a concise way.

ターゲットユーザー

2年生にあげる

Summarize content you are provided with for a second-grade student.

格式

ドットリスト形式で出力する

Provide your answer in bullet point form. 

出力

-Easy to use -Provides good value for the price -High quality and durability -Difficult to transport -Difficult to store

秩序のあるリスト

A numbered list

create a numbered list of turn-by-turn directions from it.

サポートのフォーマット

格式类型例子
编号列表1. 打开浏览器2. 输入网址3. 浏览内容
圆点列表- 苹果- 香蕉- 橙子
表格
代码块pythonprint("Hello, world!")
标题和子标题## 主标题### 子标题
JSON格式{ "name": "John", "age": 30, "city": "New York" }
思维导图格式
markdown格式