プロンプティング
非公式ベータ版翻訳
このページは PageTurner AI で翻訳されました(ベータ版)。プロジェクト公式の承認はありません。 エラーを見つけましたか? 問題を報告 →
Ask AIから最適な結果を得るためのプロンプティング技術を習得しましょう。このガイドでは、DocSearch v4におけるプロンプトの仕組み、主要AIプロバイダーで実証済みのテクニック、ドキュメント向けの効果的でブランドに沿ったAI応答を作成する実践例を紹介します。
学習内容:
-
Ask AIがコンテンツと連携してプロンプトを活用する方法
-
実証済みプロンプティング技術とパターン
-
よくある落とし穴と回避策
-
セキュリティとコンプライアンスのベストプラクティス
1. Ask AIにおけるプロンプトの仕組み
-
基本システムプロンプト(非表示) - すべてのAsk AIリクエストは、安全性・検索機能・トーンを強制する独自システムプロンプトから始まります。
-
補完システムプロンプト - ユーザーが追加する短い指示(例:「Kubernetes SREのように回答し、簡潔な箇条書きを優先」)。
-
ユーザークエリ - 訪問者がチャットボックスに入力する質問。
-
コンテキストパッセージ - Algoliaインデックスから自動挿入される関連コンテンツ。
ステップ2のみがユーザー制御可能で、他はAsk AIが処 理します。プロンプトは完全な書き換えではなくポリシーオーバーレイと捉えましょう。
2. 効果的なプロンプトの原則
| Goal | What to do | Why it helps |
|---|---|---|
| Be explicit | State role, style and constraints in the first sentence. | LLMs obey the earliest, clearest instruction. |
| Ground in context | Add product names, audience level, or domain jargon. | Reduces hallucinations and keeps answers on-brand. |
| Set format | "Answer in Markdown with H2 headings and a summary table." (we handled this for you) | Ensures consistent rendering in your site theme. |
| Show, don't tell | Give one or two short exemplars of the desired output. | Few-shot examples outperform general adjectives. |
| Limit scope | "If you're unsure, say I don't know." | Encourages honesty over speculation. |
| Iterate & test | Look at the feedback, tweak, re-run. | Prompting is an empirical craft - small wording changes matter. |
ポイント - 簡潔さを保つ 過度に長いプロンプトは関連ドキュメントをコンテキストウィンドウから押し出し、応答を遅延させます。