ai-parrot 0.5.14__cp311-cp311-manylinux_2_28_x86_64.whl → 0.5.15__cp311-cp311-manylinux_2_28_x86_64.whl

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.

Potentially problematic release.


This version of ai-parrot might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ai-parrot
3
- Version: 0.5.14
3
+ Version: 0.5.15
4
4
  Summary: Live Chatbots based on Langchain chatbots and Agents Integrated into Navigator Framework or used into any aiohttp applications.
5
5
  Home-page: https://github.com/phenobarbital/ai-parrot
6
6
  Author: Jesus Lara
@@ -4,9 +4,9 @@ parrot/exceptions.cpython-311-x86_64-linux-gnu.so,sha256=1tKBneucxl6ShNqI8KS4-pa
4
4
  parrot/manager.py,sha256=JNE6vY1H2PvpVeKzLv18uXTY9u5rb-JvmKSx-aIH1y4,6618
5
5
  parrot/models.py,sha256=MT88rYdITenwTuyCfeqHqaNf49rieAKz43R2TibN7G8,14314
6
6
  parrot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- parrot/version.py,sha256=hhUcCDigRFpD1xGNG4vekpgZxvQKfpPpOIlOCACvoZ0,378
7
+ parrot/version.py,sha256=U54zO3D8_39FflpXD5eJ9GDphLpuioshfqpq1LAddKw,378
8
8
  parrot/bots/__init__.py,sha256=qD-WOn8n34VUCp7Mq6Mq1lZV8h_cKAeXQxn27UtBDP4,153
9
- parrot/bots/abstract.py,sha256=YH2XAHMlPCcc1q2V6RvZWkpAreHCqoDNnXATRPg8-5Y,36219
9
+ parrot/bots/abstract.py,sha256=_DX7zASDyDIBsH62ZrLiiA3VCLPnFLDSvh2kkB5W7CY,36298
10
10
  parrot/bots/agent.py,sha256=2v_5hQ3XCvCPpwTne7t-NDUpX3na1LIwXfufT-cK9LU,13432
11
11
  parrot/bots/base.py,sha256=Wl2BXRzxdGsWdHltAi0jalIPPAiM0TkVIHkRc1HQ99I,13422
12
12
  parrot/bots/basic.py,sha256=dg2kT_ynMEtZ3cMTcSovmDwrOo7BhBwL1o-Nn_7I85A,235
@@ -144,8 +144,8 @@ resources/users/handlers.py,sha256=BGzqBvPY_OaIF_nONWX4b_B5OyyBrdGuSihIsdlFwjk,2
144
144
  resources/users/models.py,sha256=glk7Emv7QCi6i32xRFDrGc8UwK23_LPg0XUOJoHnwRU,6799
145
145
  settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
146
146
  settings/settings.py,sha256=9ueEvyLNurUX-AaIeRPV8GKX1c4YjDLbksUAeqEq6Ck,1854
147
- ai_parrot-0.5.14.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
148
- ai_parrot-0.5.14.dist-info/METADATA,sha256=kIekwFxKW7hsvo_yzplt0uy0j2qk0OJWCauU8b9_k0w,9716
149
- ai_parrot-0.5.14.dist-info/WHEEL,sha256=lNWVJ6q28SO2kTKDIyc1kQ-4wE2w5snxBQXSv06oiUw,113
150
- ai_parrot-0.5.14.dist-info/top_level.txt,sha256=VCLpdIu_5wkShgIQjK85jFzL9HEVVjAqlQa_gupLekI,17
151
- ai_parrot-0.5.14.dist-info/RECORD,,
147
+ ai_parrot-0.5.15.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
148
+ ai_parrot-0.5.15.dist-info/METADATA,sha256=7hqzqxTP4cdcbaxKzhOFTiAsXkuQK7T4U2DhwyndThk,9716
149
+ ai_parrot-0.5.15.dist-info/WHEEL,sha256=lNWVJ6q28SO2kTKDIyc1kQ-4wE2w5snxBQXSv06oiUw,113
150
+ ai_parrot-0.5.15.dist-info/top_level.txt,sha256=VCLpdIu_5wkShgIQjK85jFzL9HEVVjAqlQa_gupLekI,17
151
+ ai_parrot-0.5.15.dist-info/RECORD,,
parrot/bots/abstract.py CHANGED
@@ -969,23 +969,25 @@ class AbstractBot(DBInterface, ABC):
969
969
  )
970
970
  async with self.store as store: #pylint: disable=E1101
971
971
  print('STORES > ', self.stores, store)
972
+ # Check if we have multiple stores:
972
973
  if self._use_vector:
973
974
  if len(self.stores) > 1:
974
- retriever = MultiVectorStoreRetriever(
975
- stores=self.stores,
976
- metric_type=metric_type,
977
- search_type=search_type,
978
- chain_type=chain_type,
979
- search_kwargs=search_kwargs
980
- )
981
- else:
982
- vector = store.get_vector(metric_type=metric_type)
983
- retriever = VectorStoreRetriever(
984
- vectorstore=vector,
985
- search_type=search_type,
986
- chain_type=chain_type,
987
- search_kwargs=search_kwargs
988
- )
975
+ store = self.stores[0]
976
+ # retriever = MultiVectorStoreRetriever(
977
+ # stores=self.stores,
978
+ # metric_type=metric_type,
979
+ # search_type=search_type,
980
+ # chain_type=chain_type,
981
+ # search_kwargs=search_kwargs
982
+ # )
983
+ # else:
984
+ vector = store.get_vector(metric_type=metric_type)
985
+ retriever = VectorStoreRetriever(
986
+ vectorstore=vector,
987
+ search_type=search_type,
988
+ chain_type=chain_type,
989
+ search_kwargs=search_kwargs
990
+ )
989
991
  else:
990
992
  retriever = EmptyRetriever()
991
993
  if self.kb:
parrot/version.py CHANGED
@@ -3,7 +3,7 @@
3
3
  __title__ = "ai-parrot"
4
4
  __description__ = "Live Chatbots based on Langchain chatbots and Agents \
5
5
  Integrated into Navigator Framework or used into any aiohttp applications."
6
- __version__ = "0.5.14"
6
+ __version__ = "0.5.15"
7
7
  __author__ = "Jesus Lara"
8
8
  __author_email__ = "jesuslarag@gmail.com"
9
9
  __license__ = "MIT"