Skip to content

Commit

Permalink
Remove unused variables in Milvus vectorstore (#4868)
Browse files Browse the repository at this point in the history
# Remove unused variables in Milvus vectorstore
This PR simply removes a variable unused in Milvus. The variable looks
like a copy-paste from other functions in Milvus but it is really
unnecessary.
  • Loading branch information
larry-fuy committed May 17, 2023
1 parent c5ab978 commit 3e12f09
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions langchain/vectorstores/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,10 +545,6 @@ def similarity_search_with_score(
# Embed the query text.
embedding = self.embedding_func.embed_query(query)

# Determine result metadata fields.
output_fields = self.fields[:]
output_fields.remove(self._vector_field)

res = self.similarity_search_with_score_by_vector(
embedding=embedding, k=k, param=param, expr=expr, timeout=timeout, **kwargs
)
Expand Down

0 comments on commit 3e12f09

Please sign in to comment.