vector-vault 3.3.2__tar.gz → 3.3.3__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.3.2 → vector_vault-3.3.3}/PKG-INFO +1 -1
  2. {vector_vault-3.3.2 → vector_vault-3.3.3}/setup.py +1 -1
  3. {vector_vault-3.3.2 → vector_vault-3.3.3}/vector_vault.egg-info/PKG-INFO +1 -1
  4. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/ai.py +0 -4
  5. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/vault.py +2 -2
  6. {vector_vault-3.3.2 → vector_vault-3.3.3}/LICENSE +0 -0
  7. {vector_vault-3.3.2 → vector_vault-3.3.3}/README.md +0 -0
  8. {vector_vault-3.3.2 → vector_vault-3.3.3}/setup.cfg +0 -0
  9. {vector_vault-3.3.2 → vector_vault-3.3.3}/vector_vault.egg-info/SOURCES.txt +0 -0
  10. {vector_vault-3.3.2 → vector_vault-3.3.3}/vector_vault.egg-info/dependency_links.txt +0 -0
  11. {vector_vault-3.3.2 → vector_vault-3.3.3}/vector_vault.egg-info/requires.txt +0 -0
  12. {vector_vault-3.3.2 → vector_vault-3.3.3}/vector_vault.egg-info/top_level.txt +0 -0
  13. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/__init__.py +0 -0
  14. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/cloud_api.py +0 -0
  15. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/cloudmanager.py +0 -0
  16. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/creds.py +0 -0
  17. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/download.py +0 -0
  18. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/itemize.py +0 -0
  19. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/tools_gpt.py +0 -0
  20. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/vecreq.py +0 -0
  21. {vector_vault-3.3.2 → vector_vault-3.3.3}/vectorvault/wrap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 3.3.2
3
+ Version: 3.3.3
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.3.2",
5
+ version="3.3.3",
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.3.2
3
+ Version: 3.3.3
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
@@ -185,7 +185,6 @@ class AI:
185
185
 
186
186
  def llm_w_context(self, user_input = None, context = None, history=None, model='gpt-3.5-turbo', max_tokens=4000, custom_prompt=False, temperature=0, timeout=45, max_retries=5):
187
187
  prompt_template = custom_prompt if custom_prompt else self.context_prompt
188
- print('context:', context)
189
188
  max_tokens = self.model_token_limits.get(model, 4000)
190
189
  tokens = self.get_tokens(history + user_input + context + prompt_template)
191
190
  if tokens >= max_tokens:
@@ -198,10 +197,7 @@ class AI:
198
197
  print('model switch:', model)
199
198
  max_tokens = self.model_token_limits.get(model, 4000)
200
199
 
201
- if not context:
202
- print('context')
203
200
  if user_input and context:
204
- print('y;ksdhbhfvjkhadsjklfvbadhjfbveppp....')
205
201
  # Token calculation for each part.
206
202
  intokes = self.get_tokens(user_input)
207
203
  contokes = self.get_tokens(context)
@@ -659,7 +659,7 @@ class Vault:
659
659
 
660
660
  - Example to print dictionary results:
661
661
  # print response:
662
- `print(vault_response['reply'])`
662
+ `print(vault_response['response'])`
663
663
 
664
664
  # print context:
665
665
  for item in answer['context']:
@@ -773,7 +773,7 @@ class Vault:
773
773
  if not return_context:
774
774
  return response
775
775
  elif return_context:
776
- return {'reply': response, 'context': context}
776
+ return {'response': response, 'context': context}
777
777
 
778
778
  def get_chat_stream(self, text: str = None, history: str = None, summary: bool = False, get_context = False, n_context = 4, return_context = False, smart_history_search = False, model='gpt-3.5-turbo', include_context_meta=False, metatag=False, metatag_prefixes=False, metatag_suffixes=False, custom_prompt=False, local=False, temperature=0, timeout=45):
779
779
  '''
File without changes
File without changes
File without changes