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

Update README.md and Rename dir to FAQ directory of PIpelines #3272

Merged
merged 1 commit into from
Sep 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pipelines/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PaddleNLP Pipelines 是一个端到端智能文本产线框架,面向 NLP **全场景**,帮助用户**低门槛**构建强大**产品级系统**。

<div align="center">
<img src="https://user-images.githubusercontent.com/12107462/189293482-1ba0d500-9726-4a67-bdc5-f71339cfe773.gif" width="500">
<img src="https://user-images.githubusercontent.com/12107462/190302765-663ba441-9dd3-470a-8fee-f7a6f81da615.gif" width="500px">
</div>

更多效果展示Demo请参考 [效果展示](#效果展示)
Expand Down Expand Up @@ -39,19 +39,19 @@ PaddleNLP Pipelines 智能文本产线库针对 NLP 部分高频场景开源了
+ 语义检索

<div align="center">
<img src="https://user-images.githubusercontent.com/12107462/189293482-1ba0d500-9726-4a67-bdc5-f71339cfe773.gif" width="400">
<img src="https://user-images.githubusercontent.com/12107462/190302765-663ba441-9dd3-470a-8fee-f7a6f81da615.gif" width="500px">
</div>

+ 智能问答

<div align="center">
<img src="https://user-images.githubusercontent.com/12107462/189299496-70e5a4d9-862f-45ce-a036-64b91e587035.gif" width="400">
<img src="https://user-images.githubusercontent.com/12107462/190298926-a1fc92f3-5ec7-4265-8357-ab860cc1fed2.gif" width="500px">
</div>

+ FAQ智能问答

<div align="center">
<img src="https://user-images.githubusercontent.com/12107462/189297769-dd2658d3-5a0e-4d79-96a4-12903b6d3acd.gif" width="400">
<img src="https://user-images.githubusercontent.com/12107462/190307449-38135678-f259-4483-ac0f-2fa3ae4be97f.gif" width="500px">
</div>

| | |
Expand Down
19 changes: 19 additions & 0 deletions pipelines/examples/FAQ/run_faq_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# 指定语义检索系统的Yaml配置文件
export CUDA_VISIBLE_DEVICES=0
export PIPELINE_YAML_PATH=rest_api/pipeline/dense_faq.yaml
# 使用端口号 8891 启动模型服务
python rest_api/application.py 8891
19 changes: 19 additions & 0 deletions pipelines/examples/FAQ/run_faq_web.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

unset http_proxy && unset https_proxy
# 配置模型服务地址
export API_ENDPOINT=http://127.0.0.1:8891
# 在指定端口 8502 启动 WebUI
python -m streamlit run ui/webapp_faq.py --server.port 8502

This file was deleted.

5 changes: 0 additions & 5 deletions pipelines/examples/frequently-asked-question/run_faq_web.sh

This file was deleted.