Skip to content

Commit

Permalink
Update the test case of pgvector store (#516)
Browse files Browse the repository at this point in the history
Signed-off-by: SimFG <[email protected]>
  • Loading branch information
SimFG authored Aug 15, 2023
1 parent 5aa7e1e commit d6d484d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gptcache/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""gptcache version"""
__version__ = "0.1.39"
__version__ = "0.1.39.1"

from gptcache.config import Config
from gptcache.core import Cache
Expand Down
6 changes: 3 additions & 3 deletions tests/unit_tests/manager/test_pgvector.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def test_normal(self):
db.mul_add([VectorData(id=size, data=data[0])])
ret = db.search(data[0])
print(ret)
self.assertIn(ret[0][0], [0, size])
self.assertIn(ret[1][0], [0, size])
self.assertIn(ret[0][1], [0, size])
self.assertIn(ret[1][1], [0, size])
db.delete([0, 1, 2, 3, 4, 5, size])
ret = db.search(data[0])
print(ret)
self.assertNotIn(ret[0][0], [0, size])
self.assertNotIn(ret[0][1], [0, size])
db.rebuild()
db.close()

0 comments on commit d6d484d

Please sign in to comment.