File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
pipelines/examples/semantic-search Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ a. 依赖安装:
10
10
``` bash
11
11
git clone https://github.com/tvst/htbuilder.git
12
12
cd htbuilder/
13
- python setup install
13
+ python setup.py install
14
14
# pip 一键安装
15
15
pip install --upgrade paddle-pipelines -i https://pypi.tuna.tsinghua.edu.cn/simple
16
16
# 或者源码进行安装最新版本
@@ -59,7 +59,7 @@ xpack.security.enabled: false
59
59
#### 1.4.2 文档数据写入 ANN 索引库
60
60
```
61
61
# 以DuReader-Robust 数据集为例建立 ANN 索引库
62
- python utils/offline_ann.py --index_name dureader_robust_query_encoder --doc_dir data/dureader_dev
62
+ python utils/offline_ann.py --index_name dureader_robust_query_encoder --doc_dir data/dureader_dev --query_embedding_model rocketqa-zh-base-query-encoder --passage_embedding_model rocketqa-zh-base-para-encoder --embedding_dim 768 --delete_index
63
63
```
64
64
参数含义说明
65
65
* ` index_name ` : 索引的名称
You can’t perform that action at this time.
0 commit comments