ç¥çºæçš¿ðåç»å£ãã話
ã¯ããã«
2024幎5æ11æ¥ã«éå¬ãããJAWS-UG DE&Iã«ãŠåç»å£ã®æ©äŒãããã ãããAWSã®ãŠãŒã¶ãŒã°ã«ãŒãã§ããJAWSãŒUGã«ã¯1幎ã»ã©åå ããŠãããããŸããŸãªç¥èŠãåŠã°ããŠããã£ãŠããããŠãŒã¶ãŒã°ã«ãŒãã§ã¯çãå©ãåããAWSã®ç¥èŠã話ãåããçŽ æŽãããæåãããããã€ãèªåãç»å£ããŠã¢ãŠããããããããšæã£ãŠããã®ã§ãããå¬ãããéå¶ã«çããã«ã¯æè¬ãããªãð¥¹
åæçš¿ã¯ã¯ãŒã¯ã·ã§ãããšç»å£ã«ã€ããŠçŽ¹ä»ãããã
åå ããã¯ãŒã¯ã·ã§ãã
ä»æµè¡ãã®çæAIã䜿ããAmazon BedrockãšããŒã³ãŒãã§ããŒã¿è»¢éãã§ããAWS AppFlowã䜿ã£ãã¯ãŒã¯ã·ã§ããã
Bedrockãã¬ããžããŒã¹ã䜿ã£ãŠãè³æãããŒã¹ãšããRAGãç°¡åã«äœããäœéšãšãStripeãªã©ã«ããååããŒã¿ãAppFlowã§ããŒã³ãŒãã§S3ã«åã蟌ã¿ãBedrockããå©çšã§ããããã«ããäœéšãã§ããã
åºæ¬ã¯ããã³ã³ããæäœããã ãã§RAGãæ§ç¯ã§ãããAmazon OpenSearch Serviceã䜿ãã®ã§æ§ç¯åŸã¯åé€ã¯å¿ é !!!ãšãã泚æç¹ãããããããã
æ¥æ¬é ã®é èµããããRAGã®çŽ æã ã£ãã®ãããã ã£ããïŒå人çã«ããã£ãŠããã®ã§å¬ããð¶ïŒ
JAWS-UGã§ã¯è¬åž«ã®æ¹ãã¯ãããã¡ã³ã¿ãŒã®æ¹ã ã®ãµããŒããããã¯ãŒã¯ã·ã§ããããããããããJWASã¯çŽ æŽããããèªåããã¬ããžããŒã¹ãäœæã§ããªããã©ãã«ãèµ·ããããã¡ã³ã¿ãŒãã¯ãããšããçããã®å©ããåããŠç¡äºå®èµ°ã§ããã
ãã©ãã«ã解決ããŠãããäœæ¥å·¥çšãèŠãŠããã®ã ããããããããå匷ã«ãªã£ãããã©ãã«ã®è©³çŽ°ã«ã€ããŠã¯æ¬¡ã®èšäºã§è§£èª¬ã
RegionDisabledExceptionã§Bedrockãã¬ããžããŒã¹ãäœæã§ããªã!
ç»å£å 容ïŒè©±ããªãã£ãããšãå°ãèšèŒïŒ
现ããæ§ç¯ã®è©±ãå²æããAWSã課é¡è§£æ±ºã®æ段ã«äœ¿ã£ã話ããããä»åã¯çæAIã®ã¯ãŒã¯ã·ã§ããã ã£ãã®ã§çæAIãåãå ¥ããäºäŸã話ããã
ç»å£è³æ
課é¡ïŒæ©ã¿ïŒãšã¯ïŒ
ç§ã¯ããŒã éçºãåãå ¥ããããšæã£ãŠãããå ·äœçã«ã¯ã·ã³ãã«ãªGitHub Flowã«ãŠæ¥åãè¡ãããã£ããä»äºæãäºåæã«ããªãããšãå€ã现ããå 容ããã§ãã¯ããŠãããããŠãããªããªã確èªããããšãã§ããªãããããŠãã«ãªã¯ãSlackã§åããããå€ã§ãã¬ãã¥ãŒã§ããã®ã«ãªãCI/CDãæ§ç¯ããŠããŠã°ãããã€ãã§ããã
ãã ãããŒã ã¡ã³ããŒãéçºã®ã¿ãä»äºã§ã¯ãªããGitã«ããæ £ããŠããªãããªããªãæ¥åžžçã«ãã«ãªã¯ãæ¥ããšããç¶æ³ã§ã¯ãªãã£ããç°å¢ãžã®ãããã€ãæåã§è¡ãªã£ãŠãããäºåŸå ±åãšããŠãã«ãªã¯ãæ¥ããããªç¶æ³ãã ã£ãã
ããŒã ã¡ã³ããŒã®èª²é¡ïŒæ©ã¿ïŒ
å®æçãªé¢è«ã§ã¡ã³ããŒã¯äžèšã®ãããªããšãäžããŠãããã
- 人åã§ã®äŒè©±ãèŠæã
- è³æãäœãããšãèŠæã
- ITãåŠã¶æéã欲ããã
æéã¯èª¿æŽããŠããããããèŠæã®å æã¯èšç·ŽãããªãããããããªããšãèããŠããð€
éããããšð¡
ããæ¥ã課é¡ã®è§£æ±ºæ¹æ³ãæãã€ããã
- CI/CDã§æŽæ°ã§ãã瀟å çšã®ãã¬ããžãµã€ãã®ç«ã¡äžããã
- Markdownã§èšèŒã§ãããã«ãªã¯ãã¬ãã¥ãŒåŸã«ãããã€ããã
- æ¥ã çãã ããšãããã°ã«ããã
- ããã°ãããŒã¹ã«ãã¬ããžãå ±æããäŒãå®æçã«éå¬ããã
ãŸãšããããšã話ãããšãåŠã¶ããšã3ã€ãèåããCI/CDç°å¢ã§ããã°ããŒã éçºãããŠãã£ãœãéå¶ã§ãããããŒã ãšç§ã®æ©ã¿ãšèª²é¡ãèåããããŸã解決ã§ãããšç¢ºä¿¡ãããããšã¯ãããã®ããã«æ§ç¯ããŠããã®ãïŒ
ééæéã§çéã§æ§ç¯ã§ãããã®ã§ãªããšãããªããAWSãµãŒãã¹ãå©çšãããããªããšèããã
瀟å çšãã¬ããžãµã€ãã®æ§ç¯æ¹æ³
- Hugoã®ãã³ãã¬ãŒãã掻çšããŠãéçãµã€ããäœãã
- Amplifyãã¹ãã£ã³ã°ãå©çšããŠCI/CDç°å¢ãæ§ç¯ããã
- äžå¿ãã©ã€ããŒããªã®ã§æäœéBasicèªèšŒãèšå®ããã
- Slackãžã®éç¥èšå®ã
ã³ã³ãã³ãã®èª¿æŽãå«ããããã3æ¥çšåºŠã§å®æãããæ§ç¯ã®è©³çŽ°ã¯å¥éãŸãšãããã
ãã¬ããžãµã€ãã®ãããã¯ã¹æ©èœ
ãã¬ããžãµã€ãã«ã¯ãã¯ãããŠèšäºãèšèŒãã人çšã«ãã³ãºãªã³æ©èœãèšããã
ãã³ãºãªã³ïŒã¯ãŒã¯ã·ã§ããïŒ
AWSã®Workshopã®ãããªUIã§èšäºã®æŽæ°æ¹æ³ãåŠã¹ãã
èªå·±çŽ¹ä»èšäºãäœããGitHub FlowãCI/CDãäœéšã§ãããHugoã®ãã³ãã¬ãŒããå©çšãããšãªãããªUIãMarkdownã§äœæã§ããã
å©çšãããã³ãã¬ãŒã
ãããããŒãºã«åã£ãŠããã
èŠåŽããããš
Hugoã®ãã³ãã¬ãŒãã®ã«ã¹ã¿ãã€ãºãããããªããHugoã¯ããŸãæ å ±ããªããããªæ°ããããã¿ã€ã ã¹ã¿ã³ãã®ä¿®æ£ã«èŠåŽãããæ £ããªãGoã®ä»æ§ã®å匷ã«ãªã£ãã
ãã¬ããžãµã€ãã®æ å ±ããåçã§ããQ&A Botã®éçº
ãã£ãããªã®ã§ç°¡åãªã³ãŒãã£ã³ã°ã§RAGãäœã£ããPythonã®ã¿ã§å®çµã
å©çšããã®ã¯äžèšã®éã
- streamlit
ãã£ããUIãç°¡åã«äœããã - langchain
Open AIãBedrockãªã©ç°¡åã«åŒã³åºããŠããžãã¯æ§ç¯ã§ããã©ã€ãã©ãªãä»åã¯BedrockãåŒã³åºãããClaude2ãšAmazon TitanãåŒã³åºããã - Faiss
langchainã察å¿ããŠãããã¯ã¿ãŒã¹ãã¢ãMeta補
ãã¬ããžå ±æäŒã«ã€ããŠè³ªåããŠã¿ãã
ãã¬ããžå ±æäŒïŒæè¡å ±æäŒïŒã«ã€ããŠè³ªåãããšã
èªåã«ã«ã€ããŠè³ªåããŠã¿ãã
è€ããããŸããããïŒâºïž
åœæã¯ãŸã ãBedrockãã¬ããžããŒã¹ãªã©ãªãã£ãã®ã§ã³ãŒãã£ã³ã°ããããJAWSã§åŠãã ããšãããšã«ãªã¢ãŒããã¯ãã£ããããšæãã
ãŸãšã
AWSã¯ããããã®ãµãŒãã¹ãããã®ã§èª²é¡ã«ããããããã®ãæ¢ãã ãã§ã倧å€ãããããJAWSãªã©ã§åŠã³ãæ·±ããŠããããšã§ãæ £ããŠãããšçŽ æ©ã欲ãããã®ãæã«å ¥ããJAWSã«åå ããããšã§ã¢ãŠããããã®æåãç¥ããèªèº«ã®èããå€ãã£ããšæããŠããã
ã¢ãŠãããããç¶ããèªèº«ãæé·ãç¶ããããJAWS-UGæé«ðŠ
Discussion