vector-vault 5.3.2__tar.gz → 5.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {vector_vault-5.3.2 → vector_vault-5.3.4}/PKG-INFO +1 -1
  2. {vector_vault-5.3.2 → vector_vault-5.3.4}/setup.py +1 -1
  3. {vector_vault-5.3.2 → vector_vault-5.3.4}/vector_vault.egg-info/PKG-INFO +1 -1
  4. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/cloudmanager.py +1 -5
  5. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/vault.py +2 -1
  6. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/vecreq.py +0 -16
  7. {vector_vault-5.3.2 → vector_vault-5.3.4}/LICENSE +0 -0
  8. {vector_vault-5.3.2 → vector_vault-5.3.4}/README.md +0 -0
  9. {vector_vault-5.3.2 → vector_vault-5.3.4}/setup.cfg +0 -0
  10. {vector_vault-5.3.2 → vector_vault-5.3.4}/vector_vault.egg-info/SOURCES.txt +0 -0
  11. {vector_vault-5.3.2 → vector_vault-5.3.4}/vector_vault.egg-info/dependency_links.txt +0 -0
  12. {vector_vault-5.3.2 → vector_vault-5.3.4}/vector_vault.egg-info/requires.txt +0 -0
  13. {vector_vault-5.3.2 → vector_vault-5.3.4}/vector_vault.egg-info/top_level.txt +0 -0
  14. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/__init__.py +0 -0
  15. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/ai.py +0 -0
  16. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/cloud_api.py +0 -0
  17. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/creds.py +0 -0
  18. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/download.py +0 -0
  19. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/groq_api.py +0 -0
  20. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/itemize.py +0 -0
  21. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/tools_gpt.py +0 -0
  22. {vector_vault-5.3.2 → vector_vault-5.3.4}/vectorvault/wrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 5.3.2
3
+ Version: 5.3.4
4
4
  Summary: Quickly create ChatGPT RAG apps and Unleash the full potential of GenAI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="vector_vault",
5
- version="5.3.2",
5
+ version="5.3.4",
6
6
  packages=find_packages(),
7
7
  author="VectorVault.io",
8
8
  author_email="john@johnrood.com",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector-vault
3
- Version: 5.3.2
3
+ Version: 5.3.4
4
4
  Summary: Quickly create ChatGPT RAG apps and Unleash the full potential of GenAI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -18,7 +18,7 @@ import os
18
18
  import json
19
19
  import time
20
20
  from .creds import CustomCredentials
21
- from .vecreq import call_proj, call_update
21
+ from .vecreq import call_proj
22
22
  from .itemize import cloud_name
23
23
  from google.cloud import storage
24
24
  from threading import Thread as T
@@ -110,10 +110,6 @@ class CloudManager:
110
110
  os.remove(temp_file_path)
111
111
  return _map
112
112
 
113
- def update(self):
114
- t = T(target=call_update, args=(self.user, self.vault, self.api))
115
- t.start()
116
-
117
113
  def build_update(self):
118
114
  _map = self.get_mapping()
119
115
  for i in range(len(_map)):
@@ -785,7 +785,8 @@ class Vault:
785
785
  Returns similar items from the Vault as the one you entered, but locally
786
786
  (saves a few milliseconds and is sometimes used on production builds)
787
787
  '''
788
- self.cloud_manager.update()
788
+ t = T(target=self.cloud_manager.build_update)
789
+ t.start()
789
790
  vector = self.process_batch([text], never_stop=False, loop_timeout=180)[0]
790
791
  return self.get_items_by_vector(vector, n, include_distances = include_distances)
791
792
 
@@ -98,22 +98,6 @@ def call_proj():
98
98
  return decoded + 'vault-' + str(numerical_suffix) + 'ab'
99
99
 
100
100
 
101
- def call_update(email, vault, api):
102
- url = "https://api.vectorvault.io/update_vault_use"
103
-
104
- data={ "user": email, "vault": vault, "api_key": api }
105
-
106
- # Make the POST request
107
- response = requests.post(url, json=data)
108
-
109
- # Check the request was successful
110
- if response.status_code == 200:
111
- # Parse the response JSON
112
- data = response.json()
113
- return data
114
- else:
115
- raise Exception(f"Request failed with status {response.status_code}")
116
-
117
101
  def call_cloud_save(user, api_key, openai_key, vault, embeddings_model, text, meta = None, name = None, split = None, split_size = None):
118
102
  url = "https://api.vectorvault.io/add_cloud"
119
103
 
File without changes
File without changes
File without changes