vector-vault 3.6.2__tar.gz → 3.6.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 (21) hide show
  1. {vector_vault-3.6.2 → vector_vault-3.6.4}/PKG-INFO +1 -1
  2. {vector_vault-3.6.2 → vector_vault-3.6.4}/setup.py +1 -1
  3. {vector_vault-3.6.2 → vector_vault-3.6.4}/vector_vault.egg-info/PKG-INFO +1 -1
  4. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/cloudmanager.py +5 -1
  5. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/vault.py +3 -11
  6. {vector_vault-3.6.2 → vector_vault-3.6.4}/LICENSE +0 -0
  7. {vector_vault-3.6.2 → vector_vault-3.6.4}/README.md +0 -0
  8. {vector_vault-3.6.2 → vector_vault-3.6.4}/setup.cfg +0 -0
  9. {vector_vault-3.6.2 → vector_vault-3.6.4}/vector_vault.egg-info/SOURCES.txt +0 -0
  10. {vector_vault-3.6.2 → vector_vault-3.6.4}/vector_vault.egg-info/dependency_links.txt +0 -0
  11. {vector_vault-3.6.2 → vector_vault-3.6.4}/vector_vault.egg-info/requires.txt +0 -0
  12. {vector_vault-3.6.2 → vector_vault-3.6.4}/vector_vault.egg-info/top_level.txt +0 -0
  13. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/__init__.py +0 -0
  14. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/ai.py +0 -0
  15. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/cloud_api.py +0 -0
  16. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/creds.py +0 -0
  17. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/download.py +0 -0
  18. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/itemize.py +0 -0
  19. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/tools_gpt.py +0 -0
  20. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/vecreq.py +0 -0
  21. {vector_vault-3.6.2 → vector_vault-3.6.4}/vectorvault/wrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 3.6.2
3
+ Version: 3.6.4
4
4
  Summary: Quickly create ChatGPT RAG apps and Unleash the full potential of generative AI 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="3.6.2",
5
+ version="3.6.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: 3.6.2
3
+ Version: 3.6.4
4
4
  Summary: Quickly create ChatGPT RAG apps and Unleash the full potential of generative AI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -116,7 +116,11 @@ class CloudManager:
116
116
  for i in range(len(_map)):
117
117
  if _map[i]['vault'] == self.vault:
118
118
  _map[i]['last_use'] = time.time()
119
- _map[i]['total_use'] += 1
119
+ try:
120
+ _map[i]['total_use'] += 1
121
+ except:
122
+ _map[i]['total_use'] = 1
123
+
120
124
 
121
125
  with tempfile.NamedTemporaryFile(mode='w', delete=False) as temp_file:
122
126
  _path = temp_file.name
@@ -574,18 +574,10 @@ class Vault:
574
574
  def get_similar(self, text: str, n: int = 4, include_distances: bool = False):
575
575
  '''
576
576
  Returns similar items from the Vault as the text you enter.
577
- Sample return when called:
578
- `[{'data': 'sample_data__sample_data...',
579
- 'metadata': {'name': '', 'item_id': 1, 'created_at':
580
- '2023-07-16T04:29:00.730754', 'updated_at': '2023-07-16T04:29:00.730758'},
581
- 'distance': 0.7101698517799377}]`
582
-
583
- (Usually there are four items, but in this sample print out, we have removed the other 3
584
- and shortened this one's data for brevity)
585
577
 
586
- This sample was called with "include_distances=True", which adds the "distance" field to the return.
578
+ Param `include_distances = True` adds the "distance" field to the return.
587
579
  The distance can be useful for assessing similarity differences in the items returned.
588
- Each item has its' own distance number.
580
+ Each item has its' own distance number, and this changes the structure of the output.
589
581
 
590
582
 
591
583
  '''
@@ -619,7 +611,7 @@ class Vault:
619
611
 
620
612
  def add_n_save(self, text: str, meta: dict = None, name: str = None, split: bool = False, split_size: int = 1000, max_threshold: int = 16000):
621
613
  """
622
- Adds, gets vectors, then saves your data to the cloud in a single call
614
+ Adds data, gets vectors, then saves the data to the cloud in one call
623
615
  If your text length is greater than 4000 tokens, your text will automatically be split by
624
616
  Vault.split_text(your_text).
625
617
  """
File without changes
File without changes
File without changes