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

[BUG] <title>这个解析检索结果parse_batch_result #433

Open
2 tasks done
HelloBroTan opened this issue Jul 17, 2024 · 0 comments
Open
2 tasks done

[BUG] <title>这个解析检索结果parse_batch_result #433

HelloBroTan opened this issue Jul 17, 2024 · 0 comments

Comments

@HelloBroTan
Copy link

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

  • 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

milvus_client.py中的parse_batch_result
new_result = []
......
new_result.append(new_cands)
返回的结果是一个包含了一个list的list???????
导致def get_source_documents(self, queries, milvus_kb, cosine_thresh=None, top_k=None)中
batch_result = milvus_kb.search_emb_async(embs=embs, top_k=top_k, queries=queries)
for query, query_docs in zip(queries, batch_result):输出结果只包含milvus检索的结果??????

期望行为 | Expected Behavior

milvus_client.py中的parse_batch_result
new_result = []########去掉这一行??????
......
new_result.append(new_cands)########去掉这一行??????

运行环境 | Environment

- OS:
- NVIDIA Driver:
- CUDA:
- docker:
- docker-compose:
- NVIDIA GPU:
- NVIDIA GPU Memory:

QAnything日志 | QAnything logs

No response

复现方法 | Steps To Reproduce

No response

备注 | Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant