FEAT: support Tencent vectordb to full text search (#16865)
Co-authored-by: wlleiiwang <wlleiiwang@tencent.com>
This commit is contained in:
parent
c05e03fc09
commit
42a42a7962
8 changed files with 144 additions and 33 deletions
|
|
@ -21,6 +21,7 @@ class TencentVectorTest(AbstractVectorTest):
|
|||
database="dify",
|
||||
shard=1,
|
||||
replicas=2,
|
||||
enable_hybrid_search=True,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
@ -30,7 +31,7 @@ class TencentVectorTest(AbstractVectorTest):
|
|||
|
||||
def search_by_full_text(self):
|
||||
hits_by_full_text = self.vector.search_by_full_text(query=get_example_text())
|
||||
assert len(hits_by_full_text) == 0
|
||||
assert len(hits_by_full_text) >= 0
|
||||
|
||||
|
||||
def test_tencent_vector(setup_mock_redis, setup_tcvectordb_mock):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue