mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-02 04:58:46 +00:00
Remove unused variables in Milvus vectorstore (#4868)
# 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.
This commit is contained in:
parent
c5ab9782c6
commit
3e12f0957a
@ -545,10 +545,6 @@ class Milvus(VectorStore):
|
||||
# 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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user