Skip to content

Commit

Permalink
Merge pull request #31 from LeeJodie/fix-issue30
Browse files Browse the repository at this point in the history
修改query_rewrite默认模型
  • Loading branch information
seiriosPlus authored Jan 2, 2024
2 parents cca1f30 + 90946bc commit 7bf8fca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appbuilder/core/components/llms/query_rewrite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import appbuilder
os.environ["APPBUILDER_TOKEN"] = '...'

# 初始化并使用 QueryRewrite 组件
query_rewrite = appbuilder.QueryRewrite(model="ernie-bot-4")
query_rewrite = appbuilder.QueryRewrite(model="eb-turbo-appbuilder")
answer = query_rewrite(appbuilder.Message(['我应该怎么办理护照?', '您可以查询官网或人工咨询', '我需要准备哪些材料?', '身份证、免冠照片一张以及填写完整的《中国公民因私出国(境)申请表》', '在哪里办']), rewrite_type="带机器人回复")
```
print(answer)
```

## 参数说明

### 初始化参数
Expand Down

0 comments on commit 7bf8fca

Please sign in to comment.