Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.3.0 #55

Merged
merged 31 commits into from
May 24, 2024
Merged

v0.3.0 #55

merged 31 commits into from
May 24, 2024

Conversation

ysekiy
Copy link
Contributor

@ysekiy ysekiy commented May 13, 2024

Motivation

  • AWS Cloudformation(Kendra) の挙動変更に伴うupdate
  • nodejs 14 が非推奨になったことに伴い、 amplify cli のバージョンをupdate
  • UI/UX の改善

Proposed Changes

  • kendra/kendra-docs-index.yaml を更新
  • docs/DevelopperGuide.md を更新
  • クエリのサジェスト機能を追加
  • AI responseの改行サポート
  • streamInvokeのサポート
  • 深堀り機能(Advanced RAG) を追加

Test Plan

dependabot bot and others added 6 commits October 21, 2023 02:57
Bumps [react-devtools-core](https://github.com/facebook/react/tree/HEAD/packages/react-devtools-core) from 4.28.0 to 4.28.4.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-devtools-core)

---
updated-dependencies:
- dependency-name: react-devtools-core
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [axios](https://github.com/axios/axios) to 1.6.0 and updates ancestor dependency [aws-amplify](https://github.com/aws-amplify/amplify-js). These dependencies need to be updated together.


Updates `axios` from 0.26.0 to 1.6.0
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.26.0...v1.6.0)

Updates `aws-amplify` from 5.3.3 to 5.3.12
- [Release notes](https://github.com/aws-amplify/amplify-js/releases)
- [Changelog](https://github.com/aws-amplify/amplify-js/blob/main/docs/changelog.md)
- [Commits](https://github.com/aws-amplify/amplify-js/compare/[email protected]@5.3.12)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: aws-amplify
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.4.2 to 4.5.2.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.2/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <[email protected]>
@ysekiy ysekiy changed the title デプロイ手順のメンテナンス v0.3.0 May 18, 2024
@ysekiy
Copy link
Contributor Author

ysekiy commented May 20, 2024

想定環境

  • c9(us-west-2), claude3 haiku

手順

kendra

cloud9

こちらで、cloud9環境を構築
https://github.com/aws-samples/cloud9-setup-for-prototyping

c9 で使う get-credential.sh の中身

#!/bin/bash

#アタッチされている IAM role 名を変数に保存
role_name=$(curl -s "http://169.254.169.254/latest/meta-data/iam/security-credentials/")
#assume role して aws cli の credential_process に適合するよう整形
curl -s "http://169.254.169.254/latest/meta-data/iam/security-credentials/$role_name" | jq ". + {Version: 1}" | sed 's/Token/SessionToken/'

c9 でのデプロイ手順

# clone
git clone https://github.com/aws-samples/jp-rag-sample.git
cd jp-rag-sample/
git fetch origin pull/55/head:docupdate
git switch docupdate

# set environment
export AWS_DEFAULT_REGION=us-west-2

# optional
npm -g i c9

# AWSへのアクセス情報の設定
mkdir ~/.aws
cat << EOF > ~/.aws/config
[default]
region = us-west-2
EOF

npm install -g @aws-amplify/cli
sudo yum install -y xdg-utils jq

# get-credential.shの初期化
touch get-credential.sh
c9 get-credential.sh
chmod +x /home/ec2-user/environment/jp-rag-sample/get-credential.sh

# AWSへのアクセス情報の設定
cat << EOF >> ~/.aws/config
[profile amplify-user]
output=json
region=us-west-2
credential_process=/home/ec2-user/environment/jp-rag-sample/get-credential.sh
EOF

# setting
npm i
amplify init

# set env file
bash setenv.sh jp-rag-sample-kendra-Index

# deploy
amplify publish

@ysekiy ysekiy merged commit 4b8ee29 into aws-samples:main May 24, 2024
@ysekiy ysekiy deleted the docupdate branch May 24, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants