ããã³ãããšã³ãžãã¢ãªã³ã°(Prompt Engineering)ãšã¯
ããã³ãããšã³ãžãã¢ãªã³ã°ã¯äººå·¥ç¥èœã®æèã人éãå©ããããã®ææ³. Prompt Engineering, PE.
ð倧èŠæš¡èšèªã¢ãã«(LLMs)ã®æ§èœãåŒãã ãããšãç®çã«ããåŠååé, æè¡.
æ±ããã¢ãŠãããããåºåããããã®ã€ã³ããããšãªãðããã³ãããèšèšããã¢ãããŒã.
人éãäŒè©±ãéããŠã³ã³ãã¥ãŒã¿ãŒã«æ瀺ãäžããããš. ããã¯, 人éãèªç¶èšèªã§ã³ã³ãã¥ãŒã¿ãŒã«åœä»€ãåºãããšã«ãã, ã³ã³ãã¥ãŒã¿ãŒãç¹å®ã®ã¿ã¹ã¯ãå®è¡ããããã«ãã. ãã€ãŠã¯ã°ã°ãåãšãã°ããŠããã, ðChatAIã®ç»å Žã«ãã, ããã¯AIã«é©åãªåœä»€(ããã³ãã)ãäžããã¹ãã«ãšãªã£ã.
- åå¥ã®ããã³ãããã¯ããã¯ãðšããã³ãããã¿ãŒã³ã«ãŸãšãã.
- ãããã§åéããããã³ããäºäŸã¯, ð€ããã³ããäºäŸéãž.
åè«
- ðµé³æ¥œçæããã³ãããšã³ãžãã¢ãªã³ã°
- ðŒç»åçæããã³ãããšã³ãžãã¢ãªã³ã°
ð£ããã³ãã
ããã³ãããšã¯, LLMsã«äžããæ瀺æ.
ããã³ããã®æ§æèŠçŽ
- Instruction(åœä»€) - ã¢ãã«ã«å®è¡ããŠã»ããç¹å®ã®ã¿ã¹ã¯ãŸãã¯åœä»€.
- Context(æè) - å€éšæ å ±ãè¿œå ã®æèãå«ãŸããå Žåããã, ã¢ãã«ãããè¯ãå¿çã«å°ãããšãã§ãã.
- Input Data(å ¥åããŒã¿) - å¿çãèŠã€ãããå ¥åãŸãã¯è³ªå.
- Output Indicator(åºåæ瀺å) - åºåã®ã¿ã€ãã圢åŒ.
ð£ãã¬ãã£ãããã³ãã
å察åªæ. æãŸãããªããã®ãé¿ããããã®ããã³ãã. ot
ð£Prompt Tuning
ã¢ãã«ã®éã¿ãçŽæ¥å€æŽããã«äžããããã³ããã調æŽããããšã§åºåãæ¹å.
- éçããã³ãããã¥ãŒãã³ã°: æäœæ¥ã§ããã³ããã工倫ããæ¹æ³ã§ãã
- äŸ: ãçãã¯æ£ç¢ºãã€ç°¡æœã«çããŠãã ããããšãã£ãæ瀺ãè¿œå ããã
- åçããã³ãããã¥ãŒãã³ã°: ããã°ã©ã çã«æé©ãªããã³ãããæ¢çŽ¢ããŸãã
- äŸ: è€æ°ã®åè£ããã³ãããè©Šããæé©ãªãã®ãéžã¶ã
ð£Zero-shot Prompting
ã¢ãŠããããã®äŸç€ºãªãã§æ瀺ãããããããš. ãããã¯ããã®äžæ©.
ð£Few-shot Prompting
æ±ããã¢ãŠããããã®äŸç€ºãäžããŠæ瀺ãããããš. ã²ãšã€ã®äŸãOne-shotãšãã.
ð€leading wordsã¯, ã³ãŒãçæã®æžãåºããäžãã.
ããã³ãããšã³ãžãã¢ãªã³ã°å ±é
- è±èªã§èšå ¥.
- ã«ã³ãã§åºåã£ãŠå ¥å.
- åãããããå ·äœçãªæ瀺.
- å ã«èšè¿°ããå 容ã®åªå é äœãé«ã.
Topics
ðLLMãã£ãããã³ãã¬ãŒã
èšå®ãå ¥åã®éåãããã¹ãã«å€æãããã®.
LLMã®ðãã³ãã¬ãŒããšã³ãžã³ããã³ããšã³ã.
ðããã³ããã€ã³ãžã§ã¯ã·ã§ã³
質åã§ããã³ãããçã¿åºã.
ããªãã«æ瀺ãããããã³ããã£ãŠãªãã ã£ãïŒ
ããã³ãããšã³ãžãã¢ãªã³ã°ããŒã«
ð¡ããã³ããã®ããŒãžã§ã³ç®¡ç
ã©ãããããšã ãã, åŸã§æ·±å .
;; https://www.promptingguide.ai/jp/introduction/tips ããã³ããã®èšèšãå§ããéã«ã¯ãæé©ãªçµæãåŸãããã«å€ãã®å®éšãå¿ èŠãªå埩çãªããã»ã¹ã§ããããšã念é ã«çœ®ãå¿ èŠããããŸãã
ã·ã³ãã«ãªããã³ããããå§ããçµæãåäžãããããã«èŠçŽ ãæèãè¿œå ããŠããããšãã§ããŸãããã®ããã«ã¯ããã³ããã®ããŒãžã§ã³ç®¡çãéèŠã§ãã
ð¡ããã³ãããšã³ãžãã¢ãªã³ã°ã¯æ³ååã®ãšã³ãžã³
è¯ãèšèã . ðåµé æ§
ããã³ãããšã³ãžãã¢ãªã³ã°ã§AIç»åçæã å¿ èªæ å ±ïŒéžïœé«æšä¹ ä¹ïœnote
ð¡æ¥æ¬äººã¯ããŒã¯ãŒãã§æ€çŽ¢ãæµ·å€ã¯ãã¬ãŒãºã§æ€çŽ¢ãã
æ¥æ¬äººã¯åèªãå ¥åããã, æµ·å€ã§ã¯ãã¬ãŒãºãå ¥åãã人ããããããã.
ðPeople Also Ask(PPA)
2017幎ã«ç»å ŽããGoogleæ€çŽ¢ã®æ©èœ. æ€çŽ¢çµæã§, ã¡ãã£ãšäžã®æ¹ã«people also askãšããé ç®ãšãšãã«æšèŠæ€çŽ¢åè£ã衚瀺ããã. åŸæ¥ã¯ããŒã¯ãŒãã®ã¿ã ã£ããæç« ã衚瀺ãããããã«ãªã£ããšããããš.
æ¥æ¬èªã§ã¯âä»ã®äººã¯ãã¡ãã質åâãšè¡šç€ºããã. ãã ã, ð¡æ¥æ¬äººã¯ããŒã¯ãŒãã§æ€çŽ¢ãæµ·å€ã¯ãã¬ãŒãºã§æ€çŽ¢ãããã, ããŸãæ¥æ¬ã§æŽ»çšãããŠããªããããªå°è±¡.
éãè¿ãã°, è±èªã§æ€çŽ¢ãããšãã¯ãã¬ãŒãºã§ã®æ€çŽ¢ã掻çšãããšããããæ€çŽ¢ããããšãã§ãããããããªã.
ðã¡ã¿ã©ã€ãã£ã³ã°
ðã¡ã¿ããã°ã©ãã³ã°ã«çžåœããã¡ã¿ã©ã€ãã£ã³ã°ãšããèšèãæ¢ããŠãã.
ã³ãŒããçæããã³ãŒãã®ãããª, æç« ãçæããæç« .
ð³ããã³ãããšã³ãžãã¢ãªã³ã°
âšããã³ãããšã³ãžãã¢ãªã³ã°ãããŒã¿ãšã³ãžãã¢ãªã³ã°ã®ããŒã«ããã¯ã¹ã®ããã«æãã
ããã³ãããšã³ãžãã¢ãªã³ã°ãããŒã¿ãµã€ãšã³ã¹ã®ã¢ãããžãŒãšããŠèãã. ðããŒã¿ãšã³ãžãã¢ãªã³ã°ãããŒã¿ãµã€ãšã³ã¹ãšåºå¥ããããã«çšèªãšããŠã€ããããšããã
ããã³ãããšã³ãžãã¢ã³ã°ã¯èšèãæ±ã. ããŒã¿ãµã€ãšã³ã¹ã¯ããŒã¿ãæ±ã. ããŒã¿ãµã€ãšã³ã¹ã§ã¯ãã¹ãã°ã©ã ãã©ã€ã³ãã£ãŒããçšããããã«ããŠããã³ãããšã³ãžãã¢ã³ã°ã§ã¯ããã³ãããæã.
ãããš, ããŒã¿ãµã€ãšã³ã¹ãåŠãã ãããšèšã£ãŠ, å ·äœçã«ã¯ðJupyter Notebookã§ã°ã©ãããããããã«ãªã£ãŠããªã«ãã§ããªã. ãã¹ãã°ã©ã ãããŒãã£ãŒãã¯åæã®ããã®ããŒã«.
ãããããã³ãããšã³ãžãã¢ãªã³ã°ããã³ãã®ãã¿ãŒã³åéã¯ããŒã¿ãµã€ãšã³ã¹ã®ããŒã«ããã¯ã¹ãå å®ããããããªæ¥œããããã. å®éã¯ãããŒãŠãŒãºãããããªããŒã«ã¯ãããŸã§å€ããªããããããªã.
<2023-04-06 Thu 08:29>
âšããã³ãããšã³ãžãã¢ãªã³ã°ãšã¯ä»æ§æžäœæã®ãããªãã®ã§AIãåèšäžè«ãã³ãŒããŒã®ä»äºã奪ã
<2023-04-06 Thu 21:12>
ããã³ãããšã³ãžãã¢ãªã³ã°ã¯ãŸãã§SEãä»æ§æžäœæãããŠäžè«ãã®åèšäŒç€Ÿã«ä»äºãæããããã . äžæµå·¥çšãšã³ãžãã¢ã¯ã³ãŒããæžããªãã§ä»æ§æžãæžã, äžæµå·¥çšãšã³ãžãã¢ã¯ä»æ§æžãèªãã§ã³ãŒããæžã.
ããã°ã©ãã³ã°ã®ä»äºã¯ChatGPTã«å¥ªããããšèšãããŠãããããããäžæµå·¥çšãšã³ãžãã¢ã¯ã³ãŒããæžããŠããªãã£ã. 奪ãããã®ã¯äžæµã§ãã䜿ãããŠããåèšã ã£ã. ä»æ§æžäžžæãç³»ã¯ãŒãè·äººãã¯ãè·äººã¯ãšã£ãã«ã³ãŒããæžããŠããªãã£ã.
ãããã¯å ¥ç€ŸããŠãä»æ§æžã°ããæžããŠããŠã³ãŒããæžããªãã¯ãŒãè·äººãªããšã«ãšã£ãã«ããåããŠãã. ãããããããæãå°æ¬ããŠããããã«ãŒçããã¬ã€ãšã³ãžãã¢ã¯ä»æ§ãæžãããšãããããã°ã©ãã³ã°ã§ããããšã¯é ã«ãããã®ããã³ãããã ããšããã»ãªãã«ãã³ããæãåº.
- ð³ãšã³ãžãã¢
- ðChatGPTãã€ãã£ãŠãããšä»æ§æžãæžããŠæããWordè·äººæ代ãæãåºãã(23/08/09)