vector-vault 7.2.7__tar.gz → 7.2.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vector_vault
3
- Version: 7.2.7
3
+ Version: 7.2.9
4
4
  Summary: Quickly create RAG apps, Agents, and Unleash the full power of 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="7.2.7",
5
+ version="7.2.9",
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: 7.2.7
3
+ Version: 7.2.9
4
4
  Summary: Quickly create RAG apps, Agents, and Unleash the full power of AI with Vector Vault
5
5
  Home-page: https://github.com/John-Rood/VectorVault
6
6
  Author: VectorVault.io
@@ -1668,11 +1668,9 @@ class Vault:
1668
1668
  raise e
1669
1669
 
1670
1670
  if return_context:
1671
- for item in context:
1672
- if not metatag:
1673
- for tag in item['metadata']:
1674
- yield str(item['metadata'][f'{tag}'])
1675
- else:
1671
+ # Only stream context items if metatag parameters are specified
1672
+ if metatag:
1673
+ for item in context:
1676
1674
  if metatag_prefixes:
1677
1675
  if metatag_suffixes:
1678
1676
  for i in range(len(metatag)):
@@ -1680,8 +1678,11 @@ class Vault:
1680
1678
  else:
1681
1679
  for i in range(len(metatag)):
1682
1680
  yield str(metatag_prefixes[i]) + str(item['metadata'][f'{metatag[i]}'])
1683
- yield item['data']
1681
+ yield item['data']
1682
+
1684
1683
  self.update_conversation_history(self.cuid, f'User: {text} \n\nAI: {full_response}') if self.cuid else None
1684
+ # Yield the context in the same format as get_chat
1685
+ yield json.dumps({'response': full_response, 'context': context})
1685
1686
  yield '!END'
1686
1687
  self.rate_limiter.on_success()
1687
1688
  else:
File without changes
File without changes
File without changes