diff --git a/setup.py b/setup.py index f0f6bc47e..d1a422ec5 100644 --- a/setup.py +++ b/setup.py @@ -130,7 +130,7 @@ setup( name="txtai", - version="8.4.0", + version="8.3.1", author="NeuML", description="All-in-one open-source embeddings database for semantic search, LLM orchestration and language model workflows", long_description=DESCRIPTION, diff --git a/src/python/txtai/vectors/words.py b/src/python/txtai/vectors/words.py index 520c7dc68..ece4a34a1 100644 --- a/src/python/txtai/vectors/words.py +++ b/src/python/txtai/vectors/words.py @@ -115,7 +115,7 @@ def isdatabase(path): True if this is a SQLite database """ - return isinstance(path, str) and Database.isdatabase(path) + return isinstance(path, str) and STATICVECTORS and Database.isdatabase(path) def __init__(self, config, scoring, models): # Check before parent constructor since it calls loadmodel diff --git a/src/python/txtai/version.py b/src/python/txtai/version.py index 38ecdd701..7e9e6d33d 100644 --- a/src/python/txtai/version.py +++ b/src/python/txtai/version.py @@ -3,4 +3,4 @@ """ # Current version tag -__version__ = "8.4.0" +__version__ = "8.3.1" diff --git a/test/python/testoptional.py b/test/python/testoptional.py index 23b1606c8..c5770209a 100644 --- a/test/python/testoptional.py +++ b/test/python/testoptional.py @@ -306,6 +306,10 @@ def testVectors(self): with self.assertRaises(ImportError): VectorsFactory.create({"method": "words"}, None) + # Test default model + model = VectorsFactory.create({"path": "sentence-transformers/all-MiniLM-L6-v2"}, None) + self.assertIsNotNone(model) + def testWorkflow(self): """ Test missing workflow dependencies