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

[FEATURE] 我需要在检索milvus向量库的时候返回pk字段,目前langchain_community最新版本把pk字段的返回移除了 #3893

Closed
zhoufurong2022 opened this issue Apr 26, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@zhoufurong2022
Copy link

功能描述 / Feature Description
langchain_community/vectorstores/milvus.py中self.col.search时传入的output_fields不希望将primary_field字段的返回remove

解决的问题 / Problem Solved
后期返回我需要用pk字段做文档还原

实现建议 / Implementation Suggestions
保持原来的
output_fields = self.fields[:]
output_fields.remove(self._vector_field)
或者支持该参数返回的控制

@zhoufurong2022 zhoufurong2022 added the enhancement New feature or request label Apr 26, 2024
@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this May 5, 2024
@zRzRzRzRzRzRzR
Copy link
Collaborator

用旧的版本, 我们应该有指定版本

@Wangzhongxi
Copy link

用旧的版本, 我们应该有指定版本

指定的是哪个版本呢

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

No branches or pull requests

3 participants