Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 716dfd7

Browse files
committed
update readme for public UI
1 parent afb3072 commit 716dfd7

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

README.md

Lines changed: 46 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,63 @@
163163
```
164164

165165
- 流程介绍
166-
166+
167167
- 离线流程
168168
- a1. 前端界面上传文档到S3
169169
- a2. S3触发Lambda开启Glue处理流程,进行内容的embedding,并入库到AOS中
170170
- b1. 把cloud watch中的日志通过KDF写入到AOS中,供维护迭代使用
171171
- 在线流程[网页](http://chatbotfe-1170248869.us-west-2.elb.amazonaws.com/login#)
172172
- 测试账号密码:test/test
173+
- 使用这个公共测试前端需要填入自己的ak sk才能上传文档
174+
- 进入IAM创建一个用户,附加一个权限策略,替换"arn:aws:s3:::xxxx-chatbot-bucket"为实际的bucket
175+
```json
176+
{
177+
"Version": "2012-10-17",
178+
"Statement": [
179+
{
180+
"Sid": "VisualEditor0",
181+
"Effect": "Allow",
182+
"Action": [
183+
"s3:ListStorageLensConfigurations",
184+
"s3:ListAccessPointsForObjectLambda",
185+
"s3:GetAccessPoint",
186+
"s3:PutAccountPublicAccessBlock",
187+
"s3:GetAccountPublicAccessBlock",
188+
"s3:ListAllMyBuckets",
189+
"s3:ListAccessPoints",
190+
"s3:PutAccessPointPublicAccessBlock",
191+
"s3:ListJobs",
192+
"s3:PutStorageLensConfiguration",
193+
"s3:ListMultiRegionAccessPoints",
194+
"s3:CreateJob"
195+
],
196+
"Resource": "*"
197+
},
198+
{
199+
"Sid": "VisualEditor1",
200+
"Effect": "Allow",
201+
"Action": "s3:*",
202+
"Resource": "arn:aws:s3:::xxxx-chatbot-bucket"
203+
},
204+
{
205+
"Sid": "VisualEditor2",
206+
"Effect": "Allow",
207+
"Action": "s3:*",
208+
"Resource": "arn:aws:s3:::xxxxx-chatbot-bucket/*"
209+
}
210+
]
211+
}
212+
```
213+
- IAM用户创建好之后,进入安全凭证->创建访问密钥,保存到本地。
214+
- a0. 登录前端页面,配置相关信息
215+
![Alt text](image.png)
216+
- 更多设置切换模型等操作
217+
![Alt text](image-1.png)
173218
- a1. 前端界面发起聊天,调用AIGateway,通过Dynamodb获取session信息
174219
- a2. 通过lambda访问 Sagemaker Endpoint对用户输入进行向量化
175220
- a3. 通过AOS进行向量相似检索
176221
- a4. 通过AOS进行倒排检索,与向量检索结果融合,构建Prompt
177222
- a5. 调用LLM生成结果
178-
- 前端[网页](http://chatbotfe-1170248869.us-west-2.elb.amazonaws.com/login#)切换模型
179-
180223

181224

182225
- 知识库构建

image-1.png

187 KB
Loading

image.png

384 KB
Loading

0 commit comments

Comments
 (0)