mirror of
https://github.com/hwchase17/langchain
synced 2024-11-20 03:25:56 +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:
|
if param is None:
|
||||||
param = self.search_params
|
param = self.search_params
|
||||||
|
|
||||||
# Determine result metadata fields.
|
# Determine result metadata fields with PK.
|
||||||
output_fields = [x for x in self.fields if x != self._primary_field]
|
output_fields = self.fields[:]
|
||||||
output_fields.remove(self._vector_field)
|
output_fields.remove(self._vector_field)
|
||||||
|
|
||||||
# Perform the search.
|
# Perform the search.
|
||||||
|
Loading…
Reference in New Issue
Block a user