Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Ensure staticvectors is installed before calling method, closes #876

davidmezzetti53f5af52adb0
diff --git a/setup.py b/setup.py
index f0f6bc47..d1a422ec 100644
--- a/setup.py
+++ b/setup.py
@@ -130,7 +130,7 @@ extras["all"] = (
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 520c7dc6..ece4a34a 100644
--- a/src/python/txtai/vectors/words.py
+++ b/src/python/txtai/vectors/words.py
@@ -115,7 +115,7 @@ class WordVectors(Vectors):
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 38ecdd70..7e9e6d33 100644
--- a/src/python/txtai/version.py
+++ b/src/python/txtai/version.py
@@ -3,4 +3,4 @@ Version strings
"""
# Current version tag
-__version__ = "8.4.0"
+__version__ = "8.3.1"
diff --git a/test/python/testoptional.py b/test/python/testoptional.py
index 23b1606c..c5770209 100644
--- a/test/python/testoptional.py
+++ b/test/python/testoptional.py
@@ -306,6 +306,10 @@ class TestOptional(unittest.TestCase):
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