Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
@@ -12,11 +12,11 @@ class MilvusVectorTest(AbstractVectorTest):
|
||||
self.vector = MilvusVector(
|
||||
collection_name=self.collection_name,
|
||||
config=MilvusConfig(
|
||||
host='localhost',
|
||||
host="localhost",
|
||||
port=19530,
|
||||
user='root',
|
||||
password='Milvus',
|
||||
)
|
||||
user="root",
|
||||
password="Milvus",
|
||||
),
|
||||
)
|
||||
|
||||
def search_by_full_text(self):
|
||||
@@ -25,7 +25,7 @@ class MilvusVectorTest(AbstractVectorTest):
|
||||
assert len(hits_by_full_text) == 0
|
||||
|
||||
def get_ids_by_metadata_field(self):
|
||||
ids = self.vector.get_ids_by_metadata_field(key='document_id', value=self.example_doc_id)
|
||||
ids = self.vector.get_ids_by_metadata_field(key="document_id", value=self.example_doc_id)
|
||||
assert len(ids) == 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user