ai-parrot 0.2.3__tar.gz → 0.2.4__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.
Potentially problematic release.
This version of ai-parrot might be problematic. Click here for more details.
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/Makefile +12 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/PKG-INFO +24 -4
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/ai_parrot.egg-info/PKG-INFO +24 -4
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/ai_parrot.egg-info/SOURCES.txt +2 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/ai_parrot.egg-info/requires.txt +24 -3
- ai_parrot-0.2.4/examples/check_bot.py +44 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/__init__.py +3 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/abstract.py +138 -265
- ai_parrot-0.2.4/parrot/chatbots/base.py +366 -0
- ai_parrot-0.2.4/parrot/chatbots/copilot.py +73 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/retrievals/__init__.py +14 -14
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/conf.py +2 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/exceptions.c +1287 -205
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/exceptions.pyx +3 -0
- ai_parrot-0.2.4/parrot/llms/__init__.py +137 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/abstract.py +7 -1
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/anthropic.py +7 -1
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/google.py +5 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/groq.py +12 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/hf.py +6 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/openai.py +11 -1
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/pipes.py +12 -1
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/llms/vertex.py +10 -0
- ai_parrot-0.2.4/parrot/loaders/audio.py +106 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/manager.py +47 -33
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/models.py +25 -0
- ai_parrot-0.2.4/parrot/stores/__init__.py +48 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/stores/milvus.py +104 -42
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/__init__.py +0 -4
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/types.cpp +5 -5
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/version.py +1 -1
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/setup.py +33 -6
- ai_parrot-0.2.3/parrot/chatbots/base.py +0 -257
- ai_parrot-0.2.3/parrot/chatbots/copilot.py +0 -100
- ai_parrot-0.2.3/resources/__init__.py +0 -0
- ai_parrot-0.2.3/settings/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.flake8 +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.github/dependabot.yml +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.github/workflows/codeql-analysis.yml +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.github/workflows/release.yml +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.gitignore +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.isort.cfg +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/.pylintrc +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/INSTALL +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/LICENSE +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/README.md +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/SECURITY.md +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/ai_parrot.egg-info/dependency_links.txt +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/ai_parrot.egg-info/top_level.txt +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/app.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/documents/ex-code-loaders.txt +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/navigator-ssl.ini +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/navigator.ini +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/domain.ext +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/navigator.local.crt +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/navigator.local.csr +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/navigator.local.key +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/rootCA.crt +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/rootCA.key +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/etc/ssl/rootCA.srl +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/examples/test_bot.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/examples/test_question.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/mypy.ini +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/asktroc.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/basic.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/bose.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/cody.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/dataframe.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/hragents.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/odoo.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/chatbots/retrievals/constitutional.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/bing.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/config.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/duckgo.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/file.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/google.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/gtrends.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/md2pdf.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/rag.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/search.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/crew/tools/url.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/handlers/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/handlers/bots.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/handlers/chat.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/interfaces/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/interfaces/database.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/abstract.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/basepdf.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/basevideo.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/csv.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/dir.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/excel.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/github.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/handlers/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/handlers/data.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/image.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/json.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdf.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdfchapters.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdffn.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdfimages.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdfmark.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/pdftables.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/ppt.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/qa.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/repo.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/rtd.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/txt.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/utils/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/utils/models.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/video.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/videolocal.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/vimeo.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/web.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/web_base.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/word.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/loaders/youtube.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/py.typed +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/stores/abstract.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/stores/qdrant.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/abstract.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/asknews.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/bing.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/duck.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/google.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/stack.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/weather.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/wikipedia.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/tools/zipcode.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/parsers/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/parsers/toml.c +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/parsers/toml.pyx +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/toml.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/types.pyx +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/parrot/utils/uv.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/pyproject.toml +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/pytest.ini +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/requirements/requirements-dev.txt +0 -0
- {ai_parrot-0.2.3/parrot/llms → ai_parrot-0.2.4/resources}/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/resources/quick.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/resources/users/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/resources/users/handlers.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/resources/users/models.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/run.py +0 -0
- {ai_parrot-0.2.3/parrot/stores → ai_parrot-0.2.4/settings}/__init__.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/settings/settings.py +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/setup.cfg +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/templates/.compiled +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/templates/README.md +0 -0
- {ai_parrot-0.2.3 → ai_parrot-0.2.4}/tox.ini +0 -0
|
@@ -17,6 +17,18 @@ install:
|
|
|
17
17
|
pip install --upgrade querysource[analytics]
|
|
18
18
|
|
|
19
19
|
develop:
|
|
20
|
+
pip install wheel==0.42.0
|
|
21
|
+
# Install Parrot
|
|
22
|
+
pip install -e .[all]
|
|
23
|
+
pip install --upgrade python-datamodel
|
|
24
|
+
pip install --upgrade asyncdb[all]
|
|
25
|
+
pip install --upgrade navconfig[default]
|
|
26
|
+
pip install --upgrade navigator-api[locale]
|
|
27
|
+
# Nav requirements:
|
|
28
|
+
pip install --upgrade navigator-session
|
|
29
|
+
pip install --upgrade navigator-auth
|
|
30
|
+
# QS requirements
|
|
31
|
+
pip install --upgrade querysource
|
|
20
32
|
python -m pip install -Ur requirements/requirements-dev.txt
|
|
21
33
|
|
|
22
34
|
dev:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ai-parrot
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Live Chatbots based on Langchain chatbots and Agents Integrated into Navigator Framework or used into aiohttp applications.
|
|
5
5
|
Home-page: https://github.com/phenobarbital/ai-parrot
|
|
6
6
|
Author: Jesus Lara
|
|
@@ -64,7 +64,7 @@ Requires-Dist: moviepy==1.0.3
|
|
|
64
64
|
Requires-Dist: safetensors==0.4.2
|
|
65
65
|
Requires-Dist: sentence-transformers==2.6.1
|
|
66
66
|
Requires-Dist: tabulate==0.9.0
|
|
67
|
-
Requires-Dist: tiktoken==0.
|
|
67
|
+
Requires-Dist: tiktoken==0.7.0
|
|
68
68
|
Requires-Dist: tokenizers==0.19.1
|
|
69
69
|
Requires-Dist: unstructured==0.14.3
|
|
70
70
|
Requires-Dist: unstructured-client==0.18.0
|
|
@@ -87,7 +87,7 @@ Requires-Dist: mammoth==1.7.1
|
|
|
87
87
|
Requires-Dist: accelerate==0.29.3
|
|
88
88
|
Requires-Dist: langchain>=0.2.6
|
|
89
89
|
Requires-Dist: langchain-community>=0.2.6
|
|
90
|
-
Requires-Dist: langchain-core==0.2.
|
|
90
|
+
Requires-Dist: langchain-core==0.2.32
|
|
91
91
|
Requires-Dist: langchain-experimental==0.0.62
|
|
92
92
|
Requires-Dist: langchainhub==0.1.15
|
|
93
93
|
Requires-Dist: langchain-text-splitters==0.2.2
|
|
@@ -105,6 +105,7 @@ Requires-Dist: asknews==0.7.30
|
|
|
105
105
|
Requires-Dist: pyowm==3.3.0
|
|
106
106
|
Requires-Dist: O365==2.0.35
|
|
107
107
|
Requires-Dist: langchain-huggingface==0.0.3
|
|
108
|
+
Requires-Dist: stackapi==0.3.1
|
|
108
109
|
Provides-Extra: anthropic
|
|
109
110
|
Requires-Dist: langchain-anthropic==0.1.11; extra == "anthropic"
|
|
110
111
|
Requires-Dist: anthropic==0.25.2; extra == "anthropic"
|
|
@@ -121,7 +122,7 @@ Requires-Dist: vertexai==1.49.0; extra == "google"
|
|
|
121
122
|
Requires-Dist: google-cloud-aiplatform==1.49.0; extra == "google"
|
|
122
123
|
Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "google"
|
|
123
124
|
Provides-Extra: hunggingfaces
|
|
124
|
-
Requires-Dist: llama-index-llms-huggingface==0.
|
|
125
|
+
Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "hunggingfaces"
|
|
125
126
|
Provides-Extra: groq
|
|
126
127
|
Requires-Dist: groq==0.6.0; extra == "groq"
|
|
127
128
|
Requires-Dist: langchain-groq==0.1.4; extra == "groq"
|
|
@@ -141,6 +142,25 @@ Requires-Dist: gradio_tools==0.0.9; extra == "analytics"
|
|
|
141
142
|
Requires-Dist: gradio-client==0.2.9; extra == "analytics"
|
|
142
143
|
Requires-Dist: streamlit==1.37.1; extra == "analytics"
|
|
143
144
|
Requires-Dist: simsimd==4.3.1; extra == "analytics"
|
|
145
|
+
Requires-Dist: opencv-python==4.10.0.84; extra == "analytics"
|
|
146
|
+
Provides-Extra: all
|
|
147
|
+
Requires-Dist: langchain-milvus==0.1.1; extra == "all"
|
|
148
|
+
Requires-Dist: milvus==2.3.5; extra == "all"
|
|
149
|
+
Requires-Dist: pymilvus==2.4.4; extra == "all"
|
|
150
|
+
Requires-Dist: groq==0.6.0; extra == "all"
|
|
151
|
+
Requires-Dist: langchain-groq==0.1.4; extra == "all"
|
|
152
|
+
Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "all"
|
|
153
|
+
Requires-Dist: langchain-google-vertexai==1.0.8; extra == "all"
|
|
154
|
+
Requires-Dist: langchain-google-genai==1.0.8; extra == "all"
|
|
155
|
+
Requires-Dist: google-generativeai==0.7.2; extra == "all"
|
|
156
|
+
Requires-Dist: vertexai==1.60.0; extra == "all"
|
|
157
|
+
Requires-Dist: google-cloud-aiplatform>=1.60.0; extra == "all"
|
|
158
|
+
Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "all"
|
|
159
|
+
Requires-Dist: langchain-openai==0.1.21; extra == "all"
|
|
160
|
+
Requires-Dist: openai==1.40.8; extra == "all"
|
|
161
|
+
Requires-Dist: llama-index-llms-openai==0.1.11; extra == "all"
|
|
162
|
+
Requires-Dist: langchain-anthropic==0.1.23; extra == "all"
|
|
163
|
+
Requires-Dist: anthropic==0.34.0; extra == "all"
|
|
144
164
|
|
|
145
165
|
# AI Parrot: Python package for creating Chatbots
|
|
146
166
|
This is an open-source Python package for creating Chatbots based on Langchain and Navigator.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ai-parrot
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Live Chatbots based on Langchain chatbots and Agents Integrated into Navigator Framework or used into aiohttp applications.
|
|
5
5
|
Home-page: https://github.com/phenobarbital/ai-parrot
|
|
6
6
|
Author: Jesus Lara
|
|
@@ -64,7 +64,7 @@ Requires-Dist: moviepy==1.0.3
|
|
|
64
64
|
Requires-Dist: safetensors==0.4.2
|
|
65
65
|
Requires-Dist: sentence-transformers==2.6.1
|
|
66
66
|
Requires-Dist: tabulate==0.9.0
|
|
67
|
-
Requires-Dist: tiktoken==0.
|
|
67
|
+
Requires-Dist: tiktoken==0.7.0
|
|
68
68
|
Requires-Dist: tokenizers==0.19.1
|
|
69
69
|
Requires-Dist: unstructured==0.14.3
|
|
70
70
|
Requires-Dist: unstructured-client==0.18.0
|
|
@@ -87,7 +87,7 @@ Requires-Dist: mammoth==1.7.1
|
|
|
87
87
|
Requires-Dist: accelerate==0.29.3
|
|
88
88
|
Requires-Dist: langchain>=0.2.6
|
|
89
89
|
Requires-Dist: langchain-community>=0.2.6
|
|
90
|
-
Requires-Dist: langchain-core==0.2.
|
|
90
|
+
Requires-Dist: langchain-core==0.2.32
|
|
91
91
|
Requires-Dist: langchain-experimental==0.0.62
|
|
92
92
|
Requires-Dist: langchainhub==0.1.15
|
|
93
93
|
Requires-Dist: langchain-text-splitters==0.2.2
|
|
@@ -105,6 +105,7 @@ Requires-Dist: asknews==0.7.30
|
|
|
105
105
|
Requires-Dist: pyowm==3.3.0
|
|
106
106
|
Requires-Dist: O365==2.0.35
|
|
107
107
|
Requires-Dist: langchain-huggingface==0.0.3
|
|
108
|
+
Requires-Dist: stackapi==0.3.1
|
|
108
109
|
Provides-Extra: anthropic
|
|
109
110
|
Requires-Dist: langchain-anthropic==0.1.11; extra == "anthropic"
|
|
110
111
|
Requires-Dist: anthropic==0.25.2; extra == "anthropic"
|
|
@@ -121,7 +122,7 @@ Requires-Dist: vertexai==1.49.0; extra == "google"
|
|
|
121
122
|
Requires-Dist: google-cloud-aiplatform==1.49.0; extra == "google"
|
|
122
123
|
Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "google"
|
|
123
124
|
Provides-Extra: hunggingfaces
|
|
124
|
-
Requires-Dist: llama-index-llms-huggingface==0.
|
|
125
|
+
Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "hunggingfaces"
|
|
125
126
|
Provides-Extra: groq
|
|
126
127
|
Requires-Dist: groq==0.6.0; extra == "groq"
|
|
127
128
|
Requires-Dist: langchain-groq==0.1.4; extra == "groq"
|
|
@@ -141,6 +142,25 @@ Requires-Dist: gradio_tools==0.0.9; extra == "analytics"
|
|
|
141
142
|
Requires-Dist: gradio-client==0.2.9; extra == "analytics"
|
|
142
143
|
Requires-Dist: streamlit==1.37.1; extra == "analytics"
|
|
143
144
|
Requires-Dist: simsimd==4.3.1; extra == "analytics"
|
|
145
|
+
Requires-Dist: opencv-python==4.10.0.84; extra == "analytics"
|
|
146
|
+
Provides-Extra: all
|
|
147
|
+
Requires-Dist: langchain-milvus==0.1.1; extra == "all"
|
|
148
|
+
Requires-Dist: milvus==2.3.5; extra == "all"
|
|
149
|
+
Requires-Dist: pymilvus==2.4.4; extra == "all"
|
|
150
|
+
Requires-Dist: groq==0.6.0; extra == "all"
|
|
151
|
+
Requires-Dist: langchain-groq==0.1.4; extra == "all"
|
|
152
|
+
Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "all"
|
|
153
|
+
Requires-Dist: langchain-google-vertexai==1.0.8; extra == "all"
|
|
154
|
+
Requires-Dist: langchain-google-genai==1.0.8; extra == "all"
|
|
155
|
+
Requires-Dist: google-generativeai==0.7.2; extra == "all"
|
|
156
|
+
Requires-Dist: vertexai==1.60.0; extra == "all"
|
|
157
|
+
Requires-Dist: google-cloud-aiplatform>=1.60.0; extra == "all"
|
|
158
|
+
Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "all"
|
|
159
|
+
Requires-Dist: langchain-openai==0.1.21; extra == "all"
|
|
160
|
+
Requires-Dist: openai==1.40.8; extra == "all"
|
|
161
|
+
Requires-Dist: llama-index-llms-openai==0.1.11; extra == "all"
|
|
162
|
+
Requires-Dist: langchain-anthropic==0.1.23; extra == "all"
|
|
163
|
+
Requires-Dist: anthropic==0.34.0; extra == "all"
|
|
144
164
|
|
|
145
165
|
# AI Parrot: Python package for creating Chatbots
|
|
146
166
|
This is an open-source Python package for creating Chatbots based on Langchain and Navigator.
|
|
@@ -32,6 +32,7 @@ etc/ssl/navigator.local.key
|
|
|
32
32
|
etc/ssl/rootCA.crt
|
|
33
33
|
etc/ssl/rootCA.key
|
|
34
34
|
etc/ssl/rootCA.srl
|
|
35
|
+
examples/check_bot.py
|
|
35
36
|
examples/test_bot.py
|
|
36
37
|
examples/test_question.py
|
|
37
38
|
parrot/__init__.py
|
|
@@ -83,6 +84,7 @@ parrot/llms/pipes.py
|
|
|
83
84
|
parrot/llms/vertex.py
|
|
84
85
|
parrot/loaders/__init__.py
|
|
85
86
|
parrot/loaders/abstract.py
|
|
87
|
+
parrot/loaders/audio.py
|
|
86
88
|
parrot/loaders/basepdf.py
|
|
87
89
|
parrot/loaders/basevideo.py
|
|
88
90
|
parrot/loaders/csv.py
|
|
@@ -33,7 +33,7 @@ moviepy==1.0.3
|
|
|
33
33
|
safetensors==0.4.2
|
|
34
34
|
sentence-transformers==2.6.1
|
|
35
35
|
tabulate==0.9.0
|
|
36
|
-
tiktoken==0.
|
|
36
|
+
tiktoken==0.7.0
|
|
37
37
|
tokenizers==0.19.1
|
|
38
38
|
unstructured==0.14.3
|
|
39
39
|
unstructured-client==0.18.0
|
|
@@ -56,7 +56,7 @@ mammoth==1.7.1
|
|
|
56
56
|
accelerate==0.29.3
|
|
57
57
|
langchain>=0.2.6
|
|
58
58
|
langchain-community>=0.2.6
|
|
59
|
-
langchain-core==0.2.
|
|
59
|
+
langchain-core==0.2.32
|
|
60
60
|
langchain-experimental==0.0.62
|
|
61
61
|
langchainhub==0.1.15
|
|
62
62
|
langchain-text-splitters==0.2.2
|
|
@@ -74,6 +74,26 @@ asknews==0.7.30
|
|
|
74
74
|
pyowm==3.3.0
|
|
75
75
|
O365==2.0.35
|
|
76
76
|
langchain-huggingface==0.0.3
|
|
77
|
+
stackapi==0.3.1
|
|
78
|
+
|
|
79
|
+
[all]
|
|
80
|
+
langchain-milvus==0.1.1
|
|
81
|
+
milvus==2.3.5
|
|
82
|
+
pymilvus==2.4.4
|
|
83
|
+
groq==0.6.0
|
|
84
|
+
langchain-groq==0.1.4
|
|
85
|
+
llama-index-llms-huggingface==0.2.7
|
|
86
|
+
langchain-google-vertexai==1.0.8
|
|
87
|
+
langchain-google-genai==1.0.8
|
|
88
|
+
google-generativeai==0.7.2
|
|
89
|
+
vertexai==1.60.0
|
|
90
|
+
google-cloud-aiplatform>=1.60.0
|
|
91
|
+
grpc-google-iam-v1==0.13.0
|
|
92
|
+
langchain-openai==0.1.21
|
|
93
|
+
openai==1.40.8
|
|
94
|
+
llama-index-llms-openai==0.1.11
|
|
95
|
+
langchain-anthropic==0.1.23
|
|
96
|
+
anthropic==0.34.0
|
|
77
97
|
|
|
78
98
|
[analytics]
|
|
79
99
|
annoy==1.17.3
|
|
@@ -81,6 +101,7 @@ gradio_tools==0.0.9
|
|
|
81
101
|
gradio-client==0.2.9
|
|
82
102
|
streamlit==1.37.1
|
|
83
103
|
simsimd==4.3.1
|
|
104
|
+
opencv-python==4.10.0.84
|
|
84
105
|
|
|
85
106
|
[anthropic]
|
|
86
107
|
langchain-anthropic==0.1.11
|
|
@@ -104,7 +125,7 @@ groq==0.6.0
|
|
|
104
125
|
langchain-groq==0.1.4
|
|
105
126
|
|
|
106
127
|
[hunggingfaces]
|
|
107
|
-
llama-index-llms-huggingface==0.
|
|
128
|
+
llama-index-llms-huggingface==0.2.7
|
|
108
129
|
|
|
109
130
|
[milvus]
|
|
110
131
|
langchain-milvus==0.1.1
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from pymilvus import connections
|
|
3
|
+
from parrot.chatbots.basic import Chatbot
|
|
4
|
+
from parrot.llms.groq import GroqLLM
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
_HOST = '127.0.0.1'
|
|
9
|
+
_PORT = '19530'
|
|
10
|
+
|
|
11
|
+
def create_connection():
|
|
12
|
+
print(f"\nCreate connection...")
|
|
13
|
+
connections.connect('test', host=_HOST, port=_PORT)
|
|
14
|
+
print(f"\nList connections:")
|
|
15
|
+
print(connections.list_connections())
|
|
16
|
+
connections.disconnect('test')
|
|
17
|
+
|
|
18
|
+
async def get_agent(agent_name: str):
|
|
19
|
+
"""Return the New Agent.
|
|
20
|
+
"""
|
|
21
|
+
llm = GroqLLM(
|
|
22
|
+
model="llama3-groq-70b-8192-tool-use-preview",
|
|
23
|
+
temperature=0.1,
|
|
24
|
+
top_k=30,
|
|
25
|
+
Top_p=0.6,
|
|
26
|
+
)
|
|
27
|
+
agent = Chatbot(
|
|
28
|
+
name=agent_name,
|
|
29
|
+
llm=llm
|
|
30
|
+
)
|
|
31
|
+
await agent.configure()
|
|
32
|
+
return agent
|
|
33
|
+
|
|
34
|
+
if __name__ == "__main__":
|
|
35
|
+
# Test Connections created by bot
|
|
36
|
+
create_connection()
|
|
37
|
+
loop = asyncio.get_event_loop()
|
|
38
|
+
agent = loop.run_until_complete(
|
|
39
|
+
get_agent('RFPBot')
|
|
40
|
+
)
|
|
41
|
+
print(
|
|
42
|
+
'Agent: ', agent, agent.chatbot_id
|
|
43
|
+
)
|
|
44
|
+
create_connection()
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
Basic Chatbots for Navigator Services.
|
|
5
5
|
"""
|
|
6
|
+
import os
|
|
6
7
|
from pathlib import Path
|
|
7
8
|
from .version import (
|
|
8
9
|
__author__,
|
|
@@ -12,6 +13,8 @@ from .version import (
|
|
|
12
13
|
__version__
|
|
13
14
|
)
|
|
14
15
|
|
|
16
|
+
os.environ["USER_AGENT"] = "Parrot.AI/1.0"
|
|
17
|
+
|
|
15
18
|
def get_project_root() -> Path:
|
|
16
19
|
return Path(__file__).parent.parent
|
|
17
20
|
|