ai-parrot 0.3.0__tar.gz → 0.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.

Potentially problematic release.


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

Files changed (154) hide show
  1. ai_parrot-0.3.3/.github/workflows/release.yml +98 -0
  2. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/Makefile +2 -3
  3. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/PKG-INFO +54 -55
  4. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/ai_parrot.egg-info/PKG-INFO +54 -55
  5. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/ai_parrot.egg-info/SOURCES.txt +1 -0
  6. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/ai_parrot.egg-info/requires.txt +54 -54
  7. ai_parrot-0.3.3/examples/load_pdf.py +31 -0
  8. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/exceptions.c +477 -444
  9. ai_parrot-0.3.3/parrot/loaders/pdf.py +437 -0
  10. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/videolocal.py +13 -0
  11. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/parsers/toml.c +511 -474
  12. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/types.cpp +997 -981
  13. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/version.py +1 -1
  14. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/pyproject.toml +2 -2
  15. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/setup.py +59 -57
  16. ai_parrot-0.3.0/.github/workflows/release.yml +0 -28
  17. ai_parrot-0.3.0/parrot/loaders/pdf.py +0 -187
  18. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.flake8 +0 -0
  19. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.github/dependabot.yml +0 -0
  20. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.github/workflows/codeql-analysis.yml +0 -0
  21. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.gitignore +0 -0
  22. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.isort.cfg +0 -0
  23. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/.pylintrc +0 -0
  24. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/INSTALL +0 -0
  25. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/LICENSE +0 -0
  26. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/README.md +0 -0
  27. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/SECURITY.md +0 -0
  28. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/ai_parrot.egg-info/dependency_links.txt +0 -0
  29. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/ai_parrot.egg-info/top_level.txt +0 -0
  30. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/app.py +0 -0
  31. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/documents/ex-code-loaders.txt +0 -0
  32. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/navigator-ssl.ini +0 -0
  33. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/navigator.ini +0 -0
  34. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/domain.ext +0 -0
  35. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/navigator.local.crt +0 -0
  36. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/navigator.local.csr +0 -0
  37. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/navigator.local.key +0 -0
  38. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/rootCA.crt +0 -0
  39. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/rootCA.key +0 -0
  40. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/etc/ssl/rootCA.srl +0 -0
  41. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/examples/check_bot.py +0 -0
  42. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/examples/test_bot.py +0 -0
  43. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/examples/test_question.py +0 -0
  44. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/mypy.ini +0 -0
  45. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/__init__.py +0 -0
  46. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/__init__.py +0 -0
  47. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/abstract.py +0 -0
  48. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/asktroc.py +0 -0
  49. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/base.py +0 -0
  50. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/basic.py +0 -0
  51. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/bose.py +0 -0
  52. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/cody.py +0 -0
  53. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/copilot.py +0 -0
  54. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/dataframe.py +0 -0
  55. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/hragents.py +0 -0
  56. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/odoo.py +0 -0
  57. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/retrievals/__init__.py +0 -0
  58. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/chatbots/retrievals/constitutional.py +0 -0
  59. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/conf.py +0 -0
  60. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/__init__.py +0 -0
  61. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/__init__.py +0 -0
  62. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/bing.py +0 -0
  63. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/config.py +0 -0
  64. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/duckgo.py +0 -0
  65. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/file.py +0 -0
  66. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/google.py +0 -0
  67. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/gtrends.py +0 -0
  68. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/md2pdf.py +0 -0
  69. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/rag.py +0 -0
  70. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/search.py +0 -0
  71. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/crew/tools/url.py +0 -0
  72. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/exceptions.pyx +0 -0
  73. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/handlers/__init__.py +0 -0
  74. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/handlers/bots.py +0 -0
  75. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/handlers/chat.py +0 -0
  76. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/interfaces/__init__.py +0 -0
  77. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/interfaces/database.py +0 -0
  78. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/__init__.py +0 -0
  79. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/abstract.py +0 -0
  80. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/anthropic.py +0 -0
  81. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/google.py +0 -0
  82. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/groq.py +0 -0
  83. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/hf.py +0 -0
  84. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/openai.py +0 -0
  85. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/pipes.py +0 -0
  86. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/llms/vertex.py +0 -0
  87. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/__init__.py +0 -0
  88. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/abstract.py +0 -0
  89. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/audio.py +0 -0
  90. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/basepdf.py +0 -0
  91. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/basevideo.py +0 -0
  92. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/csv.py +0 -0
  93. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/dir.py +0 -0
  94. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/excel.py +0 -0
  95. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/github.py +0 -0
  96. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/handlers/__init__.py +0 -0
  97. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/handlers/data.py +0 -0
  98. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/image.py +0 -0
  99. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/json.py +0 -0
  100. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/pdfchapters.py +0 -0
  101. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/pdffn.py +0 -0
  102. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/pdfimages.py +0 -0
  103. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/pdfmark.py +0 -0
  104. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/pdftables.py +0 -0
  105. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/ppt.py +0 -0
  106. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/qa.py +0 -0
  107. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/repo.py +0 -0
  108. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/rtd.py +0 -0
  109. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/txt.py +0 -0
  110. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/utils/__init__.py +0 -0
  111. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/utils/models.py +0 -0
  112. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/video.py +0 -0
  113. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/vimeo.py +0 -0
  114. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/web.py +0 -0
  115. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/web_base.py +0 -0
  116. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/word.py +0 -0
  117. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/loaders/youtube.py +0 -0
  118. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/manager.py +0 -0
  119. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/models.py +0 -0
  120. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/py.typed +0 -0
  121. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/stores/__init__.py +0 -0
  122. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/stores/abstract.py +0 -0
  123. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/stores/milvus.py +0 -0
  124. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/stores/qdrant.py +0 -0
  125. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/__init__.py +0 -0
  126. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/abstract.py +0 -0
  127. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/asknews.py +0 -0
  128. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/bing.py +0 -0
  129. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/duck.py +0 -0
  130. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/google.py +0 -0
  131. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/stack.py +0 -0
  132. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/weather.py +0 -0
  133. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/wikipedia.py +0 -0
  134. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/tools/zipcode.py +0 -0
  135. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/__init__.py +0 -0
  136. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/parsers/__init__.py +0 -0
  137. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/parsers/toml.pyx +0 -0
  138. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/toml.py +0 -0
  139. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/types.pyx +0 -0
  140. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/parrot/utils/uv.py +0 -0
  141. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/pytest.ini +0 -0
  142. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/requirements/requirements-dev.txt +0 -0
  143. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/resources/__init__.py +0 -0
  144. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/resources/quick.py +0 -0
  145. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/resources/users/__init__.py +0 -0
  146. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/resources/users/handlers.py +0 -0
  147. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/resources/users/models.py +0 -0
  148. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/run.py +0 -0
  149. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/settings/__init__.py +0 -0
  150. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/settings/settings.py +0 -0
  151. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/setup.cfg +0 -0
  152. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/templates/.compiled +0 -0
  153. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/templates/README.md +0 -0
  154. {ai_parrot-0.3.0 → ai_parrot-0.3.3}/tox.ini +0 -0
@@ -0,0 +1,98 @@
1
+ name: Python package build and publish
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ${{ matrix.os }}
10
+ strategy:
11
+ matrix:
12
+ os: [ubuntu-latest]
13
+ python-version: ["3.9", "3.10", "3.11", "3.12"]
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up Python
18
+ uses: actions/setup-python@v4
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+
22
+ - name: Install dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install twine
26
+
27
+ - name: Build wheels on Ubuntu
28
+ if: matrix.os == 'ubuntu-latest'
29
+ uses: RalfG/python-wheels-manylinux-build@v0.5.0-manylinux2014_x86_64
30
+ with:
31
+ python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
32
+ build-requirements: 'cython numpy'
33
+
34
+ - name: Build wheels on Windows
35
+ if: matrix.os == 'windows-latest'
36
+ run: |
37
+ pip install cibuildwheel
38
+ cibuildwheel --output-dir dist
39
+ # You may need to adjust the above command based on your package's specific requirements
40
+
41
+ - name: Upload wheel artifacts
42
+ uses: actions/upload-artifact@v4
43
+ with:
44
+ name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
45
+ path: dist/*.whl
46
+
47
+ deploy:
48
+ needs: build
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: actions/checkout@v4
52
+
53
+ - name: Download all artifacts
54
+ uses: actions/download-artifact@v4.1.7
55
+ with:
56
+ path: dist
57
+
58
+ - name: Move wheel files to 'dist' directory
59
+ run: |
60
+ find dist -name '*.whl' -exec mv {} dist \;
61
+
62
+ - name: Check for wheel types
63
+ id: check_wheels
64
+ run: |
65
+ echo "Checking for wheel types..."
66
+ if ls dist/*-manylinux*.whl 1> /dev/null 2>&1; then
67
+ echo "Found manylinux wheels."
68
+ echo "HAS_MANYLINUX_WHEELS=true" >> $GITHUB_ENV
69
+ fi
70
+ if ls dist/*-win_*.whl 1> /dev/null 2>&1; then
71
+ echo "Found Windows wheels."
72
+ echo "HAS_WINDOWS_WHEELS=true" >> $GITHUB_ENV
73
+ fi
74
+
75
+ - name: List files in dist
76
+ run: ls -l dist
77
+
78
+ - name: Set up Python
79
+ uses: actions/setup-python@v4
80
+ with:
81
+ python-version: '3.x'
82
+
83
+ - name: Install twine
84
+ run: pip install twine
85
+
86
+ - name: Publish manylinux wheels to Production PyPI
87
+ if: env.HAS_MANYLINUX_WHEELS == 'true'
88
+ env:
89
+ TWINE_USERNAME: __token__
90
+ TWINE_PASSWORD: ${{ secrets.NAV_AIPARROT_API_SECRET }}
91
+ run: twine upload dist/*-manylinux*.whl
92
+
93
+ - name: Publish Windows wheels to Production PyPI
94
+ if: env.HAS_WINDOWS_WHEELS == 'true'
95
+ env:
96
+ TWINE_USERNAME: __token__
97
+ TWINE_PASSWORD: ${{ secrets.NAV_AIPARROT_API_SECRET }}
98
+ run: twine upload dist/*-win_*.whl
@@ -3,9 +3,7 @@ venv:
3
3
  echo 'run `source .venv/bin/activate` to start develop with Parrot'
4
4
 
5
5
  install:
6
- pip install wheel==0.42.0
7
6
  # Install Parrot
8
- pip install -e .[google,milvus,analytics]
9
7
  pip install --upgrade python-datamodel
10
8
  pip install --upgrade asyncdb[all]
11
9
  pip install --upgrade navconfig[default]
@@ -15,9 +13,10 @@ install:
15
13
  pip install --upgrade navigator-auth
16
14
  # QS requirements
17
15
  pip install --upgrade querysource[analytics]
16
+ # and Parrot:
17
+ # pip install -e .[google,milvus,analytics]
18
18
 
19
19
  develop:
20
- pip install wheel==0.42.0
21
20
  # Install Parrot
22
21
  pip install -e .[all]
23
22
  pip install --upgrade python-datamodel
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ai-parrot
3
- Version: 0.3.0
3
+ Version: 0.3.3
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
@@ -29,47 +29,37 @@ Classifier: Framework :: AsyncIO
29
29
  Requires-Python: >=3.10.12
30
30
  Description-Content-Type: text/markdown
31
31
  License-File: LICENSE
32
- Requires-Dist: Cython==3.0.9
33
- Requires-Dist: pymupdf==1.24.4
34
- Requires-Dist: pymupdf4llm==0.0.1
35
- Requires-Dist: pdf4llm==0.0.6
36
- Requires-Dist: PyPDF2==3.0.1
37
- Requires-Dist: pdfminer.six==20231228
38
- Requires-Dist: pdfplumber==0.11.0
39
- Requires-Dist: bitsandbytes==0.43.0
32
+ Requires-Dist: Cython==3.0.11
33
+ Requires-Dist: accelerate==0.34.2
34
+ Requires-Dist: langchain>=0.2.6
35
+ Requires-Dist: langchain-community>=0.2.6
36
+ Requires-Dist: langchain-core>=0.2.32
37
+ Requires-Dist: langchain-experimental==0.0.62
38
+ Requires-Dist: langchainhub==0.1.15
39
+ Requires-Dist: langchain-text-splitters==0.2.2
40
+ Requires-Dist: langchain-huggingface==0.0.3
41
+ Requires-Dist: huggingface-hub==0.23.5
42
+ Requires-Dist: llama-index==0.10.20
43
+ Requires-Dist: llama_cpp_python==0.2.56
44
+ Requires-Dist: bitsandbytes==0.43.3
40
45
  Requires-Dist: Cartopy==0.22.0
41
46
  Requires-Dist: chromadb==0.4.24
42
- Requires-Dist: contourpy==1.2.0
43
47
  Requires-Dist: datasets==2.18.0
44
48
  Requires-Dist: faiss-cpu==1.8.0
45
49
  Requires-Dist: fastavro==1.9.4
46
- Requires-Dist: GitPython==3.1.42
47
50
  Requires-Dist: gunicorn==21.2.0
48
51
  Requires-Dist: jq==1.7.0
49
52
  Requires-Dist: rank_bm25==0.2.2
50
53
  Requires-Dist: matplotlib==3.8.3
51
54
  Requires-Dist: numba==0.59.0
52
- Requires-Dist: opentelemetry-sdk==1.24.0
53
- Requires-Dist: rapidocr-onnxruntime==1.3.15
54
- Requires-Dist: pytesseract==0.3.10
55
- Requires-Dist: python-docx==1.1.0
56
- Requires-Dist: python-pptx==0.6.23
57
- Requires-Dist: docx2txt==0.8
58
- Requires-Dist: pytube==15.0.0
59
- Requires-Dist: pydub==0.25.1
60
- Requires-Dist: markdownify==0.12.1
61
- Requires-Dist: librosa==0.10.1
62
- Requires-Dist: yt_dlp==2024.4.9
63
- Requires-Dist: moviepy==1.0.3
64
- Requires-Dist: safetensors==0.4.2
65
- Requires-Dist: sentence-transformers==2.6.1
55
+ Requires-Dist: querysource>=3.12.10
56
+ Requires-Dist: safetensors>=0.4.3
57
+ Requires-Dist: sentence-transformers==3.0.1
66
58
  Requires-Dist: tabulate==0.9.0
67
59
  Requires-Dist: tiktoken==0.7.0
68
60
  Requires-Dist: tokenizers==0.19.1
69
61
  Requires-Dist: unstructured==0.14.3
70
62
  Requires-Dist: unstructured-client==0.18.0
71
- Requires-Dist: uvloop==0.19.0
72
- Requires-Dist: XlsxWriter==3.2.0
73
63
  Requires-Dist: youtube-transcript-api==0.6.2
74
64
  Requires-Dist: selenium==4.18.1
75
65
  Requires-Dist: webdriver_manager==4.0.1
@@ -81,31 +71,43 @@ Requires-Dist: google-api-python-client>=2.86.0
81
71
  Requires-Dist: gdown==5.1.0
82
72
  Requires-Dist: weasyprint==61.2
83
73
  Requires-Dist: markdown2==2.4.13
84
- Requires-Dist: xformers==0.0.25.post1
85
74
  Requires-Dist: fastembed==0.3.4
86
- Requires-Dist: mammoth==1.7.1
87
- Requires-Dist: accelerate==0.29.3
88
- Requires-Dist: langchain>=0.2.6
89
- Requires-Dist: langchain-community>=0.2.6
90
- Requires-Dist: langchain-core==0.2.32
91
- Requires-Dist: langchain-experimental==0.0.62
92
- Requires-Dist: langchainhub==0.1.15
93
- Requires-Dist: langchain-text-splitters==0.2.2
94
- Requires-Dist: huggingface-hub==0.23.5
95
- Requires-Dist: llama-index==0.10.20
96
- Requires-Dist: llama_cpp_python==0.2.56
97
- Requires-Dist: asyncdb[all]>=2.7.10
98
- Requires-Dist: querysource>=3.10.1
99
75
  Requires-Dist: yfinance==0.2.40
100
76
  Requires-Dist: youtube_search==2.1.2
101
77
  Requires-Dist: wikipedia==1.4.0
102
78
  Requires-Dist: mediawikiapi==1.2
103
- Requires-Dist: wikibase-rest-api-client==0.2.0
104
- Requires-Dist: asknews==0.7.30
105
79
  Requires-Dist: pyowm==3.3.0
106
80
  Requires-Dist: O365==2.0.35
107
- Requires-Dist: langchain-huggingface==0.0.3
108
81
  Requires-Dist: stackapi==0.3.1
82
+ Requires-Dist: timm==1.0.9
83
+ Requires-Dist: torchvision==0.19.1
84
+ Provides-Extra: loaders
85
+ Requires-Dist: pymupdf==1.24.4; extra == "loaders"
86
+ Requires-Dist: pymupdf4llm==0.0.1; extra == "loaders"
87
+ Requires-Dist: pdf4llm==0.0.6; extra == "loaders"
88
+ Requires-Dist: PyPDF2==3.0.1; extra == "loaders"
89
+ Requires-Dist: pdfminer.six==20231228; extra == "loaders"
90
+ Requires-Dist: pdfplumber==0.11.0; extra == "loaders"
91
+ Requires-Dist: GitPython==3.1.42; extra == "loaders"
92
+ Requires-Dist: opentelemetry-sdk==1.24.0; extra == "loaders"
93
+ Requires-Dist: rapidocr-onnxruntime==1.3.15; extra == "loaders"
94
+ Requires-Dist: pytesseract==0.3.10; extra == "loaders"
95
+ Requires-Dist: python-docx==1.1.0; extra == "loaders"
96
+ Requires-Dist: python-pptx==0.6.23; extra == "loaders"
97
+ Requires-Dist: docx2txt==0.8; extra == "loaders"
98
+ Requires-Dist: pytube==15.0.0; extra == "loaders"
99
+ Requires-Dist: pydub==0.25.1; extra == "loaders"
100
+ Requires-Dist: markdownify==0.12.1; extra == "loaders"
101
+ Requires-Dist: yt_dlp==2024.4.9; extra == "loaders"
102
+ Requires-Dist: moviepy==1.0.3; extra == "loaders"
103
+ Requires-Dist: mammoth==1.7.1; extra == "loaders"
104
+ Requires-Dist: paddlepaddle==2.6.1; extra == "loaders"
105
+ Requires-Dist: paddlepaddle_gpu==2.6.1; extra == "loaders"
106
+ Requires-Dist: paddleocr==2.8.1; extra == "loaders"
107
+ Requires-Dist: ftfy==6.2.3; extra == "loaders"
108
+ Requires-Dist: librosa==0.10.1; extra == "loaders"
109
+ Requires-Dist: XlsxWriter==3.2.0; extra == "loaders"
110
+ Requires-Dist: xformers==0.0.27.post2; extra == "loaders"
109
111
  Provides-Extra: anthropic
110
112
  Requires-Dist: langchain-anthropic==0.1.11; extra == "anthropic"
111
113
  Requires-Dist: anthropic==0.25.2; extra == "anthropic"
@@ -115,23 +117,20 @@ Requires-Dist: openai==1.40.3; extra == "openai"
115
117
  Requires-Dist: llama-index-llms-openai==0.1.11; extra == "openai"
116
118
  Requires-Dist: tiktoken==0.7.0; extra == "openai"
117
119
  Provides-Extra: google
118
- Requires-Dist: langchain-google-vertexai==1.0.4; extra == "google"
119
- Requires-Dist: langchain-google-genai==1.0.4; extra == "google"
120
- Requires-Dist: google-generativeai==0.5.4; extra == "google"
121
- Requires-Dist: vertexai==1.49.0; extra == "google"
122
- Requires-Dist: google-cloud-aiplatform==1.49.0; extra == "google"
123
- Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "google"
120
+ Requires-Dist: langchain-google-vertexai==1.0.10; extra == "google"
121
+ Requires-Dist: langchain-google-genai==1.0.10; extra == "google"
122
+ Requires-Dist: vertexai==1.65.0; extra == "google"
124
123
  Provides-Extra: hunggingfaces
125
124
  Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "hunggingfaces"
126
125
  Provides-Extra: groq
127
- Requires-Dist: groq==0.6.0; extra == "groq"
128
- Requires-Dist: langchain-groq==0.1.4; extra == "groq"
126
+ Requires-Dist: groq==0.11.0; extra == "groq"
127
+ Requires-Dist: langchain-groq==0.1.9; extra == "groq"
129
128
  Provides-Extra: qdrant
130
129
  Requires-Dist: qdrant-client==1.8.0; extra == "qdrant"
131
130
  Provides-Extra: milvus
132
- Requires-Dist: langchain-milvus==0.1.1; extra == "milvus"
131
+ Requires-Dist: langchain-milvus>=0.1.4; extra == "milvus"
133
132
  Requires-Dist: milvus==2.3.5; extra == "milvus"
134
- Requires-Dist: pymilvus==2.4.4; extra == "milvus"
133
+ Requires-Dist: pymilvus==2.4.6; extra == "milvus"
135
134
  Provides-Extra: crew
136
135
  Requires-Dist: colbert-ai==0.2.19; extra == "crew"
137
136
  Requires-Dist: vanna==0.3.4; extra == "crew"
@@ -147,7 +146,7 @@ Provides-Extra: all
147
146
  Requires-Dist: langchain-milvus==0.1.1; extra == "all"
148
147
  Requires-Dist: milvus==2.3.5; extra == "all"
149
148
  Requires-Dist: pymilvus==2.4.4; extra == "all"
150
- Requires-Dist: groq==0.6.0; extra == "all"
149
+ Requires-Dist: groq==0.11.0; extra == "all"
151
150
  Requires-Dist: langchain-groq==0.1.4; extra == "all"
152
151
  Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "all"
153
152
  Requires-Dist: langchain-google-vertexai==1.0.8; extra == "all"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ai-parrot
3
- Version: 0.3.0
3
+ Version: 0.3.3
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
@@ -29,47 +29,37 @@ Classifier: Framework :: AsyncIO
29
29
  Requires-Python: >=3.10.12
30
30
  Description-Content-Type: text/markdown
31
31
  License-File: LICENSE
32
- Requires-Dist: Cython==3.0.9
33
- Requires-Dist: pymupdf==1.24.4
34
- Requires-Dist: pymupdf4llm==0.0.1
35
- Requires-Dist: pdf4llm==0.0.6
36
- Requires-Dist: PyPDF2==3.0.1
37
- Requires-Dist: pdfminer.six==20231228
38
- Requires-Dist: pdfplumber==0.11.0
39
- Requires-Dist: bitsandbytes==0.43.0
32
+ Requires-Dist: Cython==3.0.11
33
+ Requires-Dist: accelerate==0.34.2
34
+ Requires-Dist: langchain>=0.2.6
35
+ Requires-Dist: langchain-community>=0.2.6
36
+ Requires-Dist: langchain-core>=0.2.32
37
+ Requires-Dist: langchain-experimental==0.0.62
38
+ Requires-Dist: langchainhub==0.1.15
39
+ Requires-Dist: langchain-text-splitters==0.2.2
40
+ Requires-Dist: langchain-huggingface==0.0.3
41
+ Requires-Dist: huggingface-hub==0.23.5
42
+ Requires-Dist: llama-index==0.10.20
43
+ Requires-Dist: llama_cpp_python==0.2.56
44
+ Requires-Dist: bitsandbytes==0.43.3
40
45
  Requires-Dist: Cartopy==0.22.0
41
46
  Requires-Dist: chromadb==0.4.24
42
- Requires-Dist: contourpy==1.2.0
43
47
  Requires-Dist: datasets==2.18.0
44
48
  Requires-Dist: faiss-cpu==1.8.0
45
49
  Requires-Dist: fastavro==1.9.4
46
- Requires-Dist: GitPython==3.1.42
47
50
  Requires-Dist: gunicorn==21.2.0
48
51
  Requires-Dist: jq==1.7.0
49
52
  Requires-Dist: rank_bm25==0.2.2
50
53
  Requires-Dist: matplotlib==3.8.3
51
54
  Requires-Dist: numba==0.59.0
52
- Requires-Dist: opentelemetry-sdk==1.24.0
53
- Requires-Dist: rapidocr-onnxruntime==1.3.15
54
- Requires-Dist: pytesseract==0.3.10
55
- Requires-Dist: python-docx==1.1.0
56
- Requires-Dist: python-pptx==0.6.23
57
- Requires-Dist: docx2txt==0.8
58
- Requires-Dist: pytube==15.0.0
59
- Requires-Dist: pydub==0.25.1
60
- Requires-Dist: markdownify==0.12.1
61
- Requires-Dist: librosa==0.10.1
62
- Requires-Dist: yt_dlp==2024.4.9
63
- Requires-Dist: moviepy==1.0.3
64
- Requires-Dist: safetensors==0.4.2
65
- Requires-Dist: sentence-transformers==2.6.1
55
+ Requires-Dist: querysource>=3.12.10
56
+ Requires-Dist: safetensors>=0.4.3
57
+ Requires-Dist: sentence-transformers==3.0.1
66
58
  Requires-Dist: tabulate==0.9.0
67
59
  Requires-Dist: tiktoken==0.7.0
68
60
  Requires-Dist: tokenizers==0.19.1
69
61
  Requires-Dist: unstructured==0.14.3
70
62
  Requires-Dist: unstructured-client==0.18.0
71
- Requires-Dist: uvloop==0.19.0
72
- Requires-Dist: XlsxWriter==3.2.0
73
63
  Requires-Dist: youtube-transcript-api==0.6.2
74
64
  Requires-Dist: selenium==4.18.1
75
65
  Requires-Dist: webdriver_manager==4.0.1
@@ -81,31 +71,43 @@ Requires-Dist: google-api-python-client>=2.86.0
81
71
  Requires-Dist: gdown==5.1.0
82
72
  Requires-Dist: weasyprint==61.2
83
73
  Requires-Dist: markdown2==2.4.13
84
- Requires-Dist: xformers==0.0.25.post1
85
74
  Requires-Dist: fastembed==0.3.4
86
- Requires-Dist: mammoth==1.7.1
87
- Requires-Dist: accelerate==0.29.3
88
- Requires-Dist: langchain>=0.2.6
89
- Requires-Dist: langchain-community>=0.2.6
90
- Requires-Dist: langchain-core==0.2.32
91
- Requires-Dist: langchain-experimental==0.0.62
92
- Requires-Dist: langchainhub==0.1.15
93
- Requires-Dist: langchain-text-splitters==0.2.2
94
- Requires-Dist: huggingface-hub==0.23.5
95
- Requires-Dist: llama-index==0.10.20
96
- Requires-Dist: llama_cpp_python==0.2.56
97
- Requires-Dist: asyncdb[all]>=2.7.10
98
- Requires-Dist: querysource>=3.10.1
99
75
  Requires-Dist: yfinance==0.2.40
100
76
  Requires-Dist: youtube_search==2.1.2
101
77
  Requires-Dist: wikipedia==1.4.0
102
78
  Requires-Dist: mediawikiapi==1.2
103
- Requires-Dist: wikibase-rest-api-client==0.2.0
104
- Requires-Dist: asknews==0.7.30
105
79
  Requires-Dist: pyowm==3.3.0
106
80
  Requires-Dist: O365==2.0.35
107
- Requires-Dist: langchain-huggingface==0.0.3
108
81
  Requires-Dist: stackapi==0.3.1
82
+ Requires-Dist: timm==1.0.9
83
+ Requires-Dist: torchvision==0.19.1
84
+ Provides-Extra: loaders
85
+ Requires-Dist: pymupdf==1.24.4; extra == "loaders"
86
+ Requires-Dist: pymupdf4llm==0.0.1; extra == "loaders"
87
+ Requires-Dist: pdf4llm==0.0.6; extra == "loaders"
88
+ Requires-Dist: PyPDF2==3.0.1; extra == "loaders"
89
+ Requires-Dist: pdfminer.six==20231228; extra == "loaders"
90
+ Requires-Dist: pdfplumber==0.11.0; extra == "loaders"
91
+ Requires-Dist: GitPython==3.1.42; extra == "loaders"
92
+ Requires-Dist: opentelemetry-sdk==1.24.0; extra == "loaders"
93
+ Requires-Dist: rapidocr-onnxruntime==1.3.15; extra == "loaders"
94
+ Requires-Dist: pytesseract==0.3.10; extra == "loaders"
95
+ Requires-Dist: python-docx==1.1.0; extra == "loaders"
96
+ Requires-Dist: python-pptx==0.6.23; extra == "loaders"
97
+ Requires-Dist: docx2txt==0.8; extra == "loaders"
98
+ Requires-Dist: pytube==15.0.0; extra == "loaders"
99
+ Requires-Dist: pydub==0.25.1; extra == "loaders"
100
+ Requires-Dist: markdownify==0.12.1; extra == "loaders"
101
+ Requires-Dist: yt_dlp==2024.4.9; extra == "loaders"
102
+ Requires-Dist: moviepy==1.0.3; extra == "loaders"
103
+ Requires-Dist: mammoth==1.7.1; extra == "loaders"
104
+ Requires-Dist: paddlepaddle==2.6.1; extra == "loaders"
105
+ Requires-Dist: paddlepaddle_gpu==2.6.1; extra == "loaders"
106
+ Requires-Dist: paddleocr==2.8.1; extra == "loaders"
107
+ Requires-Dist: ftfy==6.2.3; extra == "loaders"
108
+ Requires-Dist: librosa==0.10.1; extra == "loaders"
109
+ Requires-Dist: XlsxWriter==3.2.0; extra == "loaders"
110
+ Requires-Dist: xformers==0.0.27.post2; extra == "loaders"
109
111
  Provides-Extra: anthropic
110
112
  Requires-Dist: langchain-anthropic==0.1.11; extra == "anthropic"
111
113
  Requires-Dist: anthropic==0.25.2; extra == "anthropic"
@@ -115,23 +117,20 @@ Requires-Dist: openai==1.40.3; extra == "openai"
115
117
  Requires-Dist: llama-index-llms-openai==0.1.11; extra == "openai"
116
118
  Requires-Dist: tiktoken==0.7.0; extra == "openai"
117
119
  Provides-Extra: google
118
- Requires-Dist: langchain-google-vertexai==1.0.4; extra == "google"
119
- Requires-Dist: langchain-google-genai==1.0.4; extra == "google"
120
- Requires-Dist: google-generativeai==0.5.4; extra == "google"
121
- Requires-Dist: vertexai==1.49.0; extra == "google"
122
- Requires-Dist: google-cloud-aiplatform==1.49.0; extra == "google"
123
- Requires-Dist: grpc-google-iam-v1==0.13.0; extra == "google"
120
+ Requires-Dist: langchain-google-vertexai==1.0.10; extra == "google"
121
+ Requires-Dist: langchain-google-genai==1.0.10; extra == "google"
122
+ Requires-Dist: vertexai==1.65.0; extra == "google"
124
123
  Provides-Extra: hunggingfaces
125
124
  Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "hunggingfaces"
126
125
  Provides-Extra: groq
127
- Requires-Dist: groq==0.6.0; extra == "groq"
128
- Requires-Dist: langchain-groq==0.1.4; extra == "groq"
126
+ Requires-Dist: groq==0.11.0; extra == "groq"
127
+ Requires-Dist: langchain-groq==0.1.9; extra == "groq"
129
128
  Provides-Extra: qdrant
130
129
  Requires-Dist: qdrant-client==1.8.0; extra == "qdrant"
131
130
  Provides-Extra: milvus
132
- Requires-Dist: langchain-milvus==0.1.1; extra == "milvus"
131
+ Requires-Dist: langchain-milvus>=0.1.4; extra == "milvus"
133
132
  Requires-Dist: milvus==2.3.5; extra == "milvus"
134
- Requires-Dist: pymilvus==2.4.4; extra == "milvus"
133
+ Requires-Dist: pymilvus==2.4.6; extra == "milvus"
135
134
  Provides-Extra: crew
136
135
  Requires-Dist: colbert-ai==0.2.19; extra == "crew"
137
136
  Requires-Dist: vanna==0.3.4; extra == "crew"
@@ -147,7 +146,7 @@ Provides-Extra: all
147
146
  Requires-Dist: langchain-milvus==0.1.1; extra == "all"
148
147
  Requires-Dist: milvus==2.3.5; extra == "all"
149
148
  Requires-Dist: pymilvus==2.4.4; extra == "all"
150
- Requires-Dist: groq==0.6.0; extra == "all"
149
+ Requires-Dist: groq==0.11.0; extra == "all"
151
150
  Requires-Dist: langchain-groq==0.1.4; extra == "all"
152
151
  Requires-Dist: llama-index-llms-huggingface==0.2.7; extra == "all"
153
152
  Requires-Dist: langchain-google-vertexai==1.0.8; extra == "all"
@@ -33,6 +33,7 @@ etc/ssl/rootCA.crt
33
33
  etc/ssl/rootCA.key
34
34
  etc/ssl/rootCA.srl
35
35
  examples/check_bot.py
36
+ examples/load_pdf.py
36
37
  examples/test_bot.py
37
38
  examples/test_question.py
38
39
  parrot/__init__.py
@@ -1,44 +1,34 @@
1
- Cython==3.0.9
2
- pymupdf==1.24.4
3
- pymupdf4llm==0.0.1
4
- pdf4llm==0.0.6
5
- PyPDF2==3.0.1
6
- pdfminer.six==20231228
7
- pdfplumber==0.11.0
8
- bitsandbytes==0.43.0
1
+ Cython==3.0.11
2
+ accelerate==0.34.2
3
+ langchain>=0.2.6
4
+ langchain-community>=0.2.6
5
+ langchain-core>=0.2.32
6
+ langchain-experimental==0.0.62
7
+ langchainhub==0.1.15
8
+ langchain-text-splitters==0.2.2
9
+ langchain-huggingface==0.0.3
10
+ huggingface-hub==0.23.5
11
+ llama-index==0.10.20
12
+ llama_cpp_python==0.2.56
13
+ bitsandbytes==0.43.3
9
14
  Cartopy==0.22.0
10
15
  chromadb==0.4.24
11
- contourpy==1.2.0
12
16
  datasets==2.18.0
13
17
  faiss-cpu==1.8.0
14
18
  fastavro==1.9.4
15
- GitPython==3.1.42
16
19
  gunicorn==21.2.0
17
20
  jq==1.7.0
18
21
  rank_bm25==0.2.2
19
22
  matplotlib==3.8.3
20
23
  numba==0.59.0
21
- opentelemetry-sdk==1.24.0
22
- rapidocr-onnxruntime==1.3.15
23
- pytesseract==0.3.10
24
- python-docx==1.1.0
25
- python-pptx==0.6.23
26
- docx2txt==0.8
27
- pytube==15.0.0
28
- pydub==0.25.1
29
- markdownify==0.12.1
30
- librosa==0.10.1
31
- yt_dlp==2024.4.9
32
- moviepy==1.0.3
33
- safetensors==0.4.2
34
- sentence-transformers==2.6.1
24
+ querysource>=3.12.10
25
+ safetensors>=0.4.3
26
+ sentence-transformers==3.0.1
35
27
  tabulate==0.9.0
36
28
  tiktoken==0.7.0
37
29
  tokenizers==0.19.1
38
30
  unstructured==0.14.3
39
31
  unstructured-client==0.18.0
40
- uvloop==0.19.0
41
- XlsxWriter==3.2.0
42
32
  youtube-transcript-api==0.6.2
43
33
  selenium==4.18.1
44
34
  webdriver_manager==4.0.1
@@ -50,37 +40,22 @@ google-api-python-client>=2.86.0
50
40
  gdown==5.1.0
51
41
  weasyprint==61.2
52
42
  markdown2==2.4.13
53
- xformers==0.0.25.post1
54
43
  fastembed==0.3.4
55
- mammoth==1.7.1
56
- accelerate==0.29.3
57
- langchain>=0.2.6
58
- langchain-community>=0.2.6
59
- langchain-core==0.2.32
60
- langchain-experimental==0.0.62
61
- langchainhub==0.1.15
62
- langchain-text-splitters==0.2.2
63
- huggingface-hub==0.23.5
64
- llama-index==0.10.20
65
- llama_cpp_python==0.2.56
66
- asyncdb[all]>=2.7.10
67
- querysource>=3.10.1
68
44
  yfinance==0.2.40
69
45
  youtube_search==2.1.2
70
46
  wikipedia==1.4.0
71
47
  mediawikiapi==1.2
72
- wikibase-rest-api-client==0.2.0
73
- asknews==0.7.30
74
48
  pyowm==3.3.0
75
49
  O365==2.0.35
76
- langchain-huggingface==0.0.3
77
50
  stackapi==0.3.1
51
+ timm==1.0.9
52
+ torchvision==0.19.1
78
53
 
79
54
  [all]
80
55
  langchain-milvus==0.1.1
81
56
  milvus==2.3.5
82
57
  pymilvus==2.4.4
83
- groq==0.6.0
58
+ groq==0.11.0
84
59
  langchain-groq==0.1.4
85
60
  llama-index-llms-huggingface==0.2.7
86
61
  langchain-google-vertexai==1.0.8
@@ -113,24 +88,49 @@ vanna==0.3.4
113
88
  crewai[tools]==0.28.8
114
89
 
115
90
  [google]
116
- langchain-google-vertexai==1.0.4
117
- langchain-google-genai==1.0.4
118
- google-generativeai==0.5.4
119
- vertexai==1.49.0
120
- google-cloud-aiplatform==1.49.0
121
- grpc-google-iam-v1==0.13.0
91
+ langchain-google-vertexai==1.0.10
92
+ langchain-google-genai==1.0.10
93
+ vertexai==1.65.0
122
94
 
123
95
  [groq]
124
- groq==0.6.0
125
- langchain-groq==0.1.4
96
+ groq==0.11.0
97
+ langchain-groq==0.1.9
126
98
 
127
99
  [hunggingfaces]
128
100
  llama-index-llms-huggingface==0.2.7
129
101
 
102
+ [loaders]
103
+ pymupdf==1.24.4
104
+ pymupdf4llm==0.0.1
105
+ pdf4llm==0.0.6
106
+ PyPDF2==3.0.1
107
+ pdfminer.six==20231228
108
+ pdfplumber==0.11.0
109
+ GitPython==3.1.42
110
+ opentelemetry-sdk==1.24.0
111
+ rapidocr-onnxruntime==1.3.15
112
+ pytesseract==0.3.10
113
+ python-docx==1.1.0
114
+ python-pptx==0.6.23
115
+ docx2txt==0.8
116
+ pytube==15.0.0
117
+ pydub==0.25.1
118
+ markdownify==0.12.1
119
+ yt_dlp==2024.4.9
120
+ moviepy==1.0.3
121
+ mammoth==1.7.1
122
+ paddlepaddle==2.6.1
123
+ paddlepaddle_gpu==2.6.1
124
+ paddleocr==2.8.1
125
+ ftfy==6.2.3
126
+ librosa==0.10.1
127
+ XlsxWriter==3.2.0
128
+ xformers==0.0.27.post2
129
+
130
130
  [milvus]
131
- langchain-milvus==0.1.1
131
+ langchain-milvus>=0.1.4
132
132
  milvus==2.3.5
133
- pymilvus==2.4.4
133
+ pymilvus==2.4.6
134
134
 
135
135
  [openai]
136
136
  langchain-openai==0.1.21
@@ -0,0 +1,31 @@
1
+ import asyncio
2
+ from navconfig import BASE_DIR
3
+ from parrot.llms.vertex import VertexLLM
4
+ from parrot.loaders import (
5
+ PDFLoader
6
+ )
7
+
8
+ async def process_pdf():
9
+ llm = VertexLLM(
10
+ model='gemini-1.5-flash-001',
11
+ temperature=0.1,
12
+ top_k=30,
13
+ Top_p=0.5,
14
+ )
15
+ # Add LLM
16
+ doc = BASE_DIR.joinpath('documents', 'AR_Certification_Skill_Practice_Scorecard_EXAMPLE.pdf')
17
+ print(':: Processing: ', doc)
18
+ # PDF Files
19
+ loader = PDFLoader(
20
+ doc,
21
+ source_type=f"PDF {doc.name}",
22
+ llm=llm.get_llm(),
23
+ language="en",
24
+ parse_images=False,
25
+ page_as_images=True
26
+ )
27
+ docs = loader.load()
28
+ print('DOCS > ', docs)
29
+
30
+ if __name__ == "__main__":
31
+ agent = asyncio.run(process_pdf())