Skip to content

Commit

Permalink
Copy Files From Source Repo (2024-06-19 18:47)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenpeng17 committed Jun 20, 2024
1 parent eb9b1fb commit 217894c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions Instructions/Exercises/01-get-started-azure-openai.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ Azure OpenAI Service には、モデルのデプロイ、管理、調査に使

**ユーザー:**

```
```prompt
Write an advertisement for the lightweight "Ultramop" mop, which uses patented absorbent materials to clean floors.
```

**アシスタント:**

```
```prompt
Welcome to the future of cleaning!
The Ultramop makes light work of even the dirtiest of floors. Thanks to its patented absorbent materials, it ensures a brilliant shine. Just look at these features:
Expand Down Expand Up @@ -155,7 +155,7 @@ Azure OpenAI Studio プレイグラウンドで生成 AI モデルの機能の
1. Web アプリが正常にデプロイされたら、**Chat** プレイグラウンド ページの右上隅にあるボタンを使って Web アプリを起動します。 アプリの起動には数分かかる場合があります。 プロンプトが表示されたら、アクセス許可要求に同意してください。
1. Web アプリで、次のチャット メッセージを入力します:

```
```prompt
Write an advertisement for the new "WonderWipe" cloth that attracts dust particulates and can be used to clean any household surface.
```

Expand Down
20 changes: 10 additions & 10 deletions Instructions/Exercises/03-prompt-engineering.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Azure OpenAI には、モデルのデプロイ、管理、探索に使用でき
3. **[設定]** 領域で、既定のシステム メッセージ テンプレートを選び、チャット セッションのコンテキストを設定します。 既定のシステム メッセージは、"あなたはユーザーが情報を見つけるのを助ける AI アシスタントです" です。**
4. **[チャット セッション]** で、次のクエリを送信します。

```
```prompt
What kind of article is this?
---
Severe drought likely in California
Expand All @@ -86,7 +86,7 @@ Azure OpenAI には、モデルのデプロイ、管理、探索に使用でき

**ユーザー:**

```
```prompt
What kind of article is this?
---
New York Baseballers Wins Big Against Chicago
Expand All @@ -100,15 +100,15 @@ Azure OpenAI には、モデルのデプロイ、管理、探索に使用でき

**アシスタント:**

```
```prompt
Sports
```

7. 次のテキストを含む別の例を追加します。

**ユーザー:**

```
```prompt
Categorize this article:
---
Joyous moments at the Oscars
Expand All @@ -123,15 +123,15 @@ Azure OpenAI には、モデルのデプロイ、管理、探索に使用でき

**アシスタント:**

```
```prompt
Entertainment
```

8. **[設定]** セクションの上部にある **[変更の適用]** ボタンを使って、システム メッセージを更新します。

9. **[チャット セッション]** セクションで、次のプロンプトを再送信します。

```
```prompt
What kind of article is this?
---
Severe drought likely in California
Expand All @@ -149,7 +149,7 @@ Azure OpenAI には、モデルのデプロイ、管理、探索に使用でき

11. **[チャット セッション]** セクションで、次のプロンプトを送信します。

```
```prompt
# 1. Create a list of animals
# 2. Create a list of whimsical names for those animals
# 3. Combine them randomly into a list of 25 animal and name pairs
Expand Down Expand Up @@ -203,21 +203,21 @@ C# と Python の両方のアプリケーションが用意されており、ど
pip install openai==1.13.3
```

3. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、使う言語の構成ファイルを開きます
3. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、使用する言語の構成ファイルを開きます

- **C#**: appsettings.json
- **Python**: .env

4. 次を含めて構成値を更新します。
- 作成した Azure OpenAI リソースの**エンドポイント****キー** (Azure Portal の Azure OpenAI リソースの [**キーとエンドポイント**] ページで使用できます)
- モデル デプロイに指定した**デプロイ名** (Azure OpenAI Studio の **[デプロイ]** ページで確認できます)。
- モデル デプロイに指定した**デプロイ名** (Azure OpenAI Studio の **[デプロイ]** ページでアクセスできます)。
5. 構成ファイルを保存します。

## Azure OpenAI サービスを使うコードを追加する

これで、Azure OpenAI SDK を使って、デプロイされたモデルを使う準備が整いました。

1. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、使う言語のコード ファイルを開き、コメント "***Add Azure OpenAI package***" を、Azure OpenAI SDK ライブラリを追加するコードに置き換えます。
1. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、希望の言語のコード ファイルを開き、コメント "***Add Azure OpenAI package***" を、Azure OpenAI SDK ライブラリを追加するコードに置き換えます。

**C#** : Program.cs

Expand Down
10 changes: 5 additions & 5 deletions Instructions/Exercises/06-use-own-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ Azure OpenAI を独自のデータに接続する前に、まず、基本モデ
3. **[設定]** 領域で、既定のシステム メッセージ テンプレートを選び、チャット セッションのコンテキストを設定します。 既定のシステム メッセージは、"あなたはユーザーが情報を見つけるのを助ける AI アシスタントです" です。**
4. **チャット セッション**で次のクエリを送信し、応答を確認します。

```
```prompt
I'd like to take a trip to New York. Where should I stay?
```

```
```prompt
What are some facts about New York?
```

Expand Down Expand Up @@ -121,11 +121,11 @@ Azure OpenAI を独自のデータに接続する前に、まず、基本モデ

データを追加したので、前と同じ質問をして、応答がどのように異なるかを確認します。

```
```prompt
I'd like to take a trip to New York. Where should I stay?
```

```
```prompt
What are some facts about New York?
```

Expand Down Expand Up @@ -174,7 +174,7 @@ C# と Python の両方のアプリケーションが用意されており、ど
pip install openai==1.13.3
```

3. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、使う言語の構成ファイルを開きます
3. **[エクスプローラー]** ペインの **CSharp** または **Python** フォルダーで、使用する言語の構成ファイルを開きます

- **C#**: appsettings.json
- **Python**: .env
Expand Down

0 comments on commit 217894c

Please sign in to comment.