PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
12.11k stars 2.94k forks source link

[Bug]: 执行语义检索无返回值 #7246

Closed PotentialX closed 10 months ago

PotentialX commented 1 year ago

软件环境

- paddlepaddle:2.5.1
- paddlepaddle-gpu: 2.5.0rc0
- paddlenlp: 2.6.1

重复问题

错误描述

在路径 PaddleNLP/pipelines/examples/semantic-search 执行:
python semantic_search_example.py --device gpu   --search_engine faiss
没有返回值

稳定复现步骤 & 代码

python semantic_search_example.py --device gpu --search_engine faiss

PotentialX commented 1 year ago

[2023-10-16 19:11:21,928] [ INFO] - Already cached /home/user/.paddlenlp/models/rocketqa-zh-dureader-cross-encoder/rocketqa-zh-dureader-vocab.txt [2023-10-16 19:11:21,944] [ INFO] - tokenizer config file saved in /home/user/.paddlenlp/models/rocketqa-zh-dureader-cross-encoder/tokenizer_config.json [2023-10-16 19:11:21,944] [ INFO] - Special tokens file saved in /home/user/.paddlenlp/models/rocketqa-zh-dureader-cross-encoder/special_tokens_map.json

Query: 亚马逊河流的介绍

Querying: 100%|███████████████████████████████████████████████████████| 2/2 [00:00<00:00, 1122.82it/s] Ranking: 0it [00:00, ?it/s]

Query: 亚马逊河流的介绍

Query: 期货交易手续费指的是什么?

Query: dev621.txt,五笔

BigTailMonkey commented 1 year ago

paddlepaddle 使用2.5.0rc1试试。

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 60 days with no activity. 当前issue 60天内无活动,被标记为stale。

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale. 当前issue 被标记为stale已有14天,即将关闭。