mirror of
https://github.com/hwchase17/langchain
synced 2024-11-18 09:25:54 +00:00
community[patch]: Return PK in similarity search Document (#17561)
Issue: #17390 Co-authored-by: hasan <hasan@m2sys.com>
This commit is contained in:
parent
1ec8199c8e
commit
7248e98b9e
@ -739,8 +739,8 @@ class Milvus(VectorStore):
|
||||
if param is None:
|
||||
param = self.search_params
|
||||
|
||||
# Determine result metadata fields.
|
||||
output_fields = [x for x in self.fields if x != self._primary_field]
|
||||
# Determine result metadata fields with PK.
|
||||
output_fields = self.fields[:]
|
||||
output_fields.remove(self._vector_field)
|
||||
|
||||
# Perform the search.
|
||||
|
Loading…
Reference in New Issue
Block a user