diff --git a/setup.py b/setup.py index ae5d89914..e9a990f55 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ setup( name="txtai", - version="4.3.0", + version="4.2.1", author="NeuML", description="Build AI-powered semantic search applications", long_description=DESCRIPTION, diff --git a/src/python/txtai/__init__.py b/src/python/txtai/__init__.py index 53762ae71..10c038960 100644 --- a/src/python/txtai/__init__.py +++ b/src/python/txtai/__init__.py @@ -8,4 +8,4 @@ logging.basicConfig(format="%(asctime)s [%(levelname)s] %(funcName)s: %(message)s") # Current version tag -__version__ = "4.3.0" +__version__ = "4.2.1" diff --git a/src/python/txtai/api/base.py b/src/python/txtai/api/base.py index 6fc5e3f3a..2739d7838 100644 --- a/src/python/txtai/api/base.py +++ b/src/python/txtai/api/base.py @@ -66,10 +66,10 @@ def __init__(self, config, loaddata=True): self.pool = None # Local embeddings index - if loaddata and self.config.get("path") and Embeddings().exists(self.config["path"], self.config.get("archive")): + if loaddata and self.config.get("path") and Embeddings().exists(self.config["path"], self.config.get("cloud")): # Load existing index if available self.embeddings = Embeddings() - self.embeddings.load(self.config["path"], self.config.get("archive")) + self.embeddings.load(self.config["path"], self.config.get("cloud")) elif self.config.get("embeddings"): # Initialize empty embeddings self.embeddings = Embeddings(self.config["embeddings"]) @@ -349,7 +349,7 @@ def index(self): # Save index if path available, otherwise this is an memory-only index if self.config.get("path"): - self.embeddings.save(self.config["path"], self.config.get("archive")) + self.embeddings.save(self.config["path"], self.config.get("cloud")) # Reset document stream self.documents.close()