ai-parrot 0.5.12__cp311-cp311-manylinux_2_28_x86_64.whl → 0.5.13__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.
- {ai_parrot-0.5.12.dist-info → ai_parrot-0.5.13.dist-info}/METADATA +1 -1
- {ai_parrot-0.5.12.dist-info → ai_parrot-0.5.13.dist-info}/RECORD +9 -9
- parrot/bots/abstract.py +3 -1
- parrot/bots/retrievals/multi.py +4 -5
- parrot/manager.py +2 -0
- parrot/version.py +1 -1
- {ai_parrot-0.5.12.dist-info → ai_parrot-0.5.13.dist-info}/LICENSE +0 -0
- {ai_parrot-0.5.12.dist-info → ai_parrot-0.5.13.dist-info}/WHEEL +0 -0
- {ai_parrot-0.5.12.dist-info → ai_parrot-0.5.13.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: ai-parrot
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.13
|
|
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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
parrot/__init__.py,sha256=eTkAkHeJ5BBDG2fxrXA4M37ODBJoS1DQYpeBAWL2xeI,387
|
|
2
2
|
parrot/conf.py,sha256=BBbArVYjcGGaNKw3_h1dOw_pl1qcYNuT6Sj6dINwJd8,5404
|
|
3
3
|
parrot/exceptions.cpython-311-x86_64-linux-gnu.so,sha256=1tKBneucxl6ShNqI8KS4-pa9G-YQw9kXCnqUB-n2tbc,361184
|
|
4
|
-
parrot/manager.py,sha256=
|
|
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=
|
|
7
|
+
parrot/version.py,sha256=aHBE_6_v6JpopyX_oKbxe3SHhZbdmyNey37ExnBxlCs,378
|
|
8
8
|
parrot/bots/__init__.py,sha256=qD-WOn8n34VUCp7Mq6Mq1lZV8h_cKAeXQxn27UtBDP4,153
|
|
9
|
-
parrot/bots/abstract.py,sha256=
|
|
9
|
+
parrot/bots/abstract.py,sha256=IVEXthWe-hR17LsJ8-Fa-I37D2gye5AlJ7qZrtLugsM,36110
|
|
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
|
|
@@ -24,7 +24,7 @@ parrot/bots/prompts/__init__.py,sha256=rm_rAX7ZIxDIpSVOjHVuHRLMI9wS3avsu5fUfwAsd
|
|
|
24
24
|
parrot/bots/prompts/agents.py,sha256=nXmzmRG15jiTDnjhmZ8ljSYCB1xU4RwsayZThFSj0Zg,4310
|
|
25
25
|
parrot/bots/retrievals/__init__.py,sha256=AgI0mTB27tZ0Oyr7RU63G-ZO1VyX-uCJ6lwxgP4baag,45
|
|
26
26
|
parrot/bots/retrievals/constitutional.py,sha256=x7kFR0KpmkR0Wz6bXNOeU3Hesn_EXc6eOSd4TdXxb8o,600
|
|
27
|
-
parrot/bots/retrievals/multi.py,sha256=
|
|
27
|
+
parrot/bots/retrievals/multi.py,sha256=92exQXAU5B2gk0uA9dAJnZMwFldPcarcQzLo-iEZy6o,4990
|
|
28
28
|
parrot/bots/retrievals/retrieval.py,sha256=wvMM53k76njV5b6t6CCKiYVk2o81JCHzCNmlHBKYFMg,20622
|
|
29
29
|
parrot/chatbots/__init__.py,sha256=ypskCnME0xUv6psBEGCEyXCrD0J0ULHSllpVmSxqb4A,200
|
|
30
30
|
parrot/chatbots/abstract.py,sha256=CmDn3k4r9uKImOZRN4L9zxLbCdC-1MPUAorDlfZT-kA,26421
|
|
@@ -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.
|
|
148
|
-
ai_parrot-0.5.
|
|
149
|
-
ai_parrot-0.5.
|
|
150
|
-
ai_parrot-0.5.
|
|
151
|
-
ai_parrot-0.5.
|
|
147
|
+
ai_parrot-0.5.13.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
|
|
148
|
+
ai_parrot-0.5.13.dist-info/METADATA,sha256=vE_oi59f13e6dPb2wr1E5sv609OsORHePqtOfV9wRoY,9716
|
|
149
|
+
ai_parrot-0.5.13.dist-info/WHEEL,sha256=lNWVJ6q28SO2kTKDIyc1kQ-4wE2w5snxBQXSv06oiUw,113
|
|
150
|
+
ai_parrot-0.5.13.dist-info/top_level.txt,sha256=VCLpdIu_5wkShgIQjK85jFzL9HEVVjAqlQa_gupLekI,17
|
|
151
|
+
ai_parrot-0.5.13.dist-info/RECORD,,
|
parrot/bots/abstract.py
CHANGED
|
@@ -486,7 +486,9 @@ class AbstractBot(DBInterface, ABC):
|
|
|
486
486
|
raise ValueError(
|
|
487
487
|
f"Invalid Vector Store Config: {self._vector_store}"
|
|
488
488
|
)
|
|
489
|
-
self.logger.info(
|
|
489
|
+
self.logger.info(
|
|
490
|
+
f"Configured Vector Stores: {self.stores}"
|
|
491
|
+
)
|
|
490
492
|
if self.stores:
|
|
491
493
|
self.store = self.stores[0]
|
|
492
494
|
print('=================================')
|
parrot/bots/retrievals/multi.py
CHANGED
|
@@ -13,11 +13,10 @@ class MultiVectorStoreRetriever(BaseRetriever):
|
|
|
13
13
|
|
|
14
14
|
# Define class attributes with default values
|
|
15
15
|
stores: List[Any] = Field(description="List of vector stores that provide an as_retriever() method")
|
|
16
|
-
search_kwargs: Dict[str, Any] = Field(default_factory=dict, description="Dict to pass to each store's retrieve method (like 'k' for top_k)")
|
|
17
|
-
chain_type: str = Field(default="stuff", description="Chain type for the retriever")
|
|
18
|
-
search_type: str = Field(default="similarity", description="Search type (similarity, mmr)")
|
|
19
|
-
metric_type: str = Field(default="COSINE", description="Similarity metric (COSINE, EUCLIDEAN, DOT_PRODUCT)")
|
|
20
|
-
|
|
16
|
+
search_kwargs: Optional[Dict[str, Any]] = Field(default_factory=dict, description="Dict to pass to each store's retrieve method (like 'k' for top_k)")
|
|
17
|
+
chain_type: Optional[str] = Field(default="stuff", description="Chain type for the retriever")
|
|
18
|
+
search_type: Optional[str] = Field(default="similarity", description="Search type (similarity, mmr)")
|
|
19
|
+
metric_type: Optional[str] = Field(default="COSINE", description="Similarity metric (COSINE, EUCLIDEAN, DOT_PRODUCT)")
|
|
21
20
|
class Config:
|
|
22
21
|
"""Configuration for this pydantic object."""
|
|
23
22
|
arbitrary_types_allowed = True
|
parrot/manager.py
CHANGED
|
@@ -61,7 +61,9 @@ class BotManager:
|
|
|
61
61
|
f"Failed to load chatbots from DB: {e}"
|
|
62
62
|
)
|
|
63
63
|
return
|
|
64
|
+
print('HERE >>>>>> ', len(bots))
|
|
64
65
|
for bot in bots:
|
|
66
|
+
print('CREATING BOT > ', bot)
|
|
65
67
|
if bot.bot_type == 'chatbot':
|
|
66
68
|
self.logger.notice(
|
|
67
69
|
f"Loading chatbot '{bot.name}'..."
|
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.
|
|
6
|
+
__version__ = "0.5.13"
|
|
7
7
|
__author__ = "Jesus Lara"
|
|
8
8
|
__author_email__ = "jesuslarag@gmail.com"
|
|
9
9
|
__license__ = "MIT"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|