vector-vault 4.3.9__tar.gz → 4.4.2__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-4.3.9 → vector_vault-4.4.2}/PKG-INFO +1 -1
  2. {vector_vault-4.3.9 → vector_vault-4.4.2}/setup.py +1 -1
  3. {vector_vault-4.3.9 → vector_vault-4.4.2}/vector_vault.egg-info/PKG-INFO +1 -1
  4. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/tools_gpt.py +14 -4
  5. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/vault.py +5 -1
  6. {vector_vault-4.3.9 → vector_vault-4.4.2}/LICENSE +0 -0
  7. {vector_vault-4.3.9 → vector_vault-4.4.2}/README.md +0 -0
  8. {vector_vault-4.3.9 → vector_vault-4.4.2}/setup.cfg +0 -0
  9. {vector_vault-4.3.9 → vector_vault-4.4.2}/vector_vault.egg-info/SOURCES.txt +0 -0
  10. {vector_vault-4.3.9 → vector_vault-4.4.2}/vector_vault.egg-info/dependency_links.txt +0 -0
  11. {vector_vault-4.3.9 → vector_vault-4.4.2}/vector_vault.egg-info/requires.txt +0 -0
  12. {vector_vault-4.3.9 → vector_vault-4.4.2}/vector_vault.egg-info/top_level.txt +0 -0
  13. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/__init__.py +0 -0
  14. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/ai.py +0 -0
  15. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/cloud_api.py +0 -0
  16. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/cloudmanager.py +0 -0
  17. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/creds.py +0 -0
  18. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/download.py +0 -0
  19. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/itemize.py +0 -0
  20. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/vecreq.py +0 -0
  21. {vector_vault-4.3.9 → vector_vault-4.4.2}/vectorvault/wrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 4.3.9
3
+ Version: 4.4.2
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="4.3.9",
5
+ version="4.4.2",
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: 4.3.9
3
+ Version: 4.4.2
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
@@ -193,12 +193,22 @@ Content to classify: "{text}" \n\nDo not respond with anything other than the o
193
193
  prompt = f"""Respond with a list of items from this list: {list_of_options}
194
194
  Content to classify: "{text}" \n\n Respond with a subset list that matches the content: {list_of_options}"""
195
195
 
196
+ # Simulate a call to a function that retries a language model query
196
197
  answer = self.retry_llm(prompt, model, loop_limit)
197
198
 
198
- print(f'''Get Answer: {answer}''') if self.verbose else 0
199
- print(ast.literal_eval(answer)) if self.verbose else 0
200
-
201
- return [i if i in list_of_options else self.get_match(i, list_of_options, model, loop_limit) for i in ast.literal_eval(answer)]
199
+ # Logging for debug purposes
200
+ print(f'''Get Answer: {answer}''') if self.verbose else None
201
+ print(ast.literal_eval(answer)) if self.verbose else None
202
+
203
+ # Process the answer, directly adding matches, and using get_match for others
204
+ processed_results = []
205
+ for i in ast.literal_eval(answer):
206
+ if i in list_of_options:
207
+ processed_results.append(i)
208
+ else:
209
+ processed_results.append(self.get_match(i, list_of_options, model, loop_limit))
210
+
211
+ return processed_results
202
212
 
203
213
 
204
214
  def get_topic(self, text: str, list_of_options: list, model='gpt-3.5-turbo', loop_limit=4) -> str:
@@ -1279,7 +1279,11 @@ class Vault:
1279
1279
  t2 = T(target=self.cloud_manager.upload_to_cloud, args=(f'{self.vault}/user_history/{conversation_id}/metadata', json.dumps(metadata_list)))
1280
1280
  t1.start()
1281
1281
  t2.start()
1282
- self.add_n_save(message, vault = f'{self.vault}/user_history/{conversation_id}/vectors', name = message_id)
1282
+ T(target=call_cloud_save, args=(
1283
+ self.user, self.api, self.openai_key,
1284
+ f'{self.vault}/user_history/{conversation_id}/vectors', self.embeddings_model,
1285
+ message, None,
1286
+ message_id, None, None)).start()
1283
1287
  t1.join()
1284
1288
  t2.join()
1285
1289
 
File without changes
File without changes
File without changes