ai-parrot 0.3.9__cp311-cp311-manylinux_2_28_x86_64.whl → 0.3.10__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.1
2
2
  Name: ai-parrot
3
- Version: 0.3.9
3
+ Version: 0.3.10
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
@@ -78,13 +78,13 @@ Requires-Dist: O365==2.0.35
78
78
  Requires-Dist: stackapi==0.3.1
79
79
  Requires-Dist: torchvision==0.19.1
80
80
  Requires-Dist: tf-keras==2.17.0
81
+ Requires-Dist: simsimd==4.3.1
82
+ Requires-Dist: opencv-python==4.10.0.84
81
83
  Provides-Extra: analytics
82
84
  Requires-Dist: annoy==1.17.3; extra == "analytics"
83
85
  Requires-Dist: gradio-tools==0.0.9; extra == "analytics"
84
86
  Requires-Dist: gradio-client==0.2.9; extra == "analytics"
85
87
  Requires-Dist: streamlit==1.37.1; extra == "analytics"
86
- Requires-Dist: simsimd==4.3.1; extra == "analytics"
87
- Requires-Dist: opencv-python==4.10.0.84; extra == "analytics"
88
88
  Provides-Extra: anthropic
89
89
  Requires-Dist: langchain-anthropic==0.1.11; extra == "anthropic"
90
90
  Requires-Dist: anthropic==0.25.2; extra == "anthropic"
@@ -4,7 +4,7 @@ parrot/exceptions.cpython-311-x86_64-linux-gnu.so,sha256=VNyBh3uLxGQgB0l1bkWjQDq
4
4
  parrot/manager.py,sha256=NhzXoWxSgtoWHpmYP8cV2Ujq_SlvCbQYQBaohAeL2TM,5935
5
5
  parrot/models.py,sha256=RsVQCqhSXBKRPcu-BCga9Y1wyvENFXDCuq3_ObIKvAo,13452
6
6
  parrot/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
- parrot/version.py,sha256=o8PMJd_TdNH7tJOCDKI8wEUjTKyJlSXk1miRoOSNRl8,373
7
+ parrot/version.py,sha256=HoNVx3mljjW-CBZ6CYPJUMxrG6X1SETBEn5g7YQTv4g,374
8
8
  parrot/chatbots/__init__.py,sha256=ypskCnME0xUv6psBEGCEyXCrD0J0ULHSllpVmSxqb4A,200
9
9
  parrot/chatbots/abstract.py,sha256=CmDn3k4r9uKImOZRN4L9zxLbCdC-1MPUAorDlfZT-kA,26421
10
10
  parrot/chatbots/asktroc.py,sha256=gyWzyvpAnmXwXd-3DEKoIJtAxt6NnP5mUZdZbkFky8s,604
@@ -56,7 +56,7 @@ parrot/loaders/excel.py,sha256=Y1agxm-jG4AgsA2wlPP3p8uBH40wYW1KM2ycTTLKUm4,12441
56
56
  parrot/loaders/github.py,sha256=CscyUIqoHTytqCbRUUTcV3QSxI8XoDntq5aTU0vdhzQ,2593
57
57
  parrot/loaders/image.py,sha256=A9KCXXoGuhDoyeJaascY7Q1ZK12Kf1ggE1drzJjS3AU,3946
58
58
  parrot/loaders/json.py,sha256=6B43k591OpvoJLbsJa8CxJue_lAt713SCdldn8bFW3c,1481
59
- parrot/loaders/pdf.py,sha256=-E80LzTsghNID5-SgN1jBjOMfCBFpCYXP7dVnzTQU_Y,20653
59
+ parrot/loaders/pdf.py,sha256=YnWXFVJjT76cGcRclAKHmFPeMt7SXAuqywIt0UMI9P4,20722
60
60
  parrot/loaders/pdfchapters.py,sha256=YhA8Cdx3qXBR0vuTVnQ12XgH1DXT_rp1Tawzh4V2U3o,5637
61
61
  parrot/loaders/pdffn.py,sha256=gA-vJEWUiIUwbMxP8Nmvlzlcb39DVV69vGKtSzavUoI,4004
62
62
  parrot/loaders/pdfimages.py,sha256=4Q_HKiAee_hALBsG2qF7PpMgKP1AivHXhmcsCkUa9eE,7899
@@ -103,8 +103,8 @@ resources/users/handlers.py,sha256=BGzqBvPY_OaIF_nONWX4b_B5OyyBrdGuSihIsdlFwjk,2
103
103
  resources/users/models.py,sha256=glk7Emv7QCi6i32xRFDrGc8UwK23_LPg0XUOJoHnwRU,6799
104
104
  settings/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
105
105
  settings/settings.py,sha256=9ueEvyLNurUX-AaIeRPV8GKX1c4YjDLbksUAeqEq6Ck,1854
106
- ai_parrot-0.3.9.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
107
- ai_parrot-0.3.9.dist-info/METADATA,sha256=Pa54n7ejv6mZ5Tu8VuUK03TPDA9tF8mPPjealuWrvWE,9771
108
- ai_parrot-0.3.9.dist-info/WHEEL,sha256=UQ-0qXN3LQUffjrV43_e_ZXj2pgORBqTmXipnkj0E8I,113
109
- ai_parrot-0.3.9.dist-info/top_level.txt,sha256=qHoO4BhYDfeTkyKnciZSQtn5FSLN3Q-P5xCTkyvbuxg,26
110
- ai_parrot-0.3.9.dist-info/RECORD,,
106
+ ai_parrot-0.3.10.dist-info/LICENSE,sha256=vRKOoa7onTsLNvSzJtGtMaNhWWh8B3YAT733Tlu6M4o,1070
107
+ ai_parrot-0.3.10.dist-info/METADATA,sha256=Kq5FpMgf-M5vRQ9gNDNyqWCOL_3SrMB6hTsnxWW9Gbg,9728
108
+ ai_parrot-0.3.10.dist-info/WHEEL,sha256=UQ-0qXN3LQUffjrV43_e_ZXj2pgORBqTmXipnkj0E8I,113
109
+ ai_parrot-0.3.10.dist-info/top_level.txt,sha256=qHoO4BhYDfeTkyKnciZSQtn5FSLN3Q-P5xCTkyvbuxg,26
110
+ ai_parrot-0.3.10.dist-info/RECORD,,
parrot/loaders/pdf.py CHANGED
@@ -299,7 +299,7 @@ class PDFLoader(BasePDF):
299
299
  "answer": '',
300
300
  "source_type": self._source_type,
301
301
  "data": {},
302
- "summary": '',
302
+ "summary": '-',
303
303
  "document_meta": {
304
304
  "title": pdf.metadata.get("title", ""), # pylint: disable=E1101
305
305
  "creationDate": pdf.metadata.get("creationDate", ""), # pylint: disable=E1101
@@ -331,9 +331,9 @@ class PDFLoader(BasePDF):
331
331
  try:
332
332
  summary = self.get_summary_from_text(text)
333
333
  except Exception:
334
- summary = ''
334
+ summary = '-'
335
335
  metadata = {
336
- "url": '',
336
+ "url": f"{path}:#{page_num}",
337
337
  "source": f"{path.name} Page.#{page_num}",
338
338
  "filename": path.name,
339
339
  "index": f"{page_num}",
@@ -427,7 +427,7 @@ class PDFLoader(BasePDF):
427
427
  df = df.dropna(axis=1, how='all')
428
428
  df = df.dropna(how='all', axis=0) # Drop empty rows
429
429
  table_meta = {
430
- "url": '',
430
+ "url": f"{path.name} Page.#{page_num} Table.#{tab_idx}",
431
431
  "source": f"{path.name} Page.#{page_num} Table.#{tab_idx}",
432
432
  "filename": path.name,
433
433
  "index": f"{path.name}:{page_num}",
@@ -435,7 +435,7 @@ class PDFLoader(BasePDF):
435
435
  "answer": '',
436
436
  "type": 'table',
437
437
  "data": {},
438
- "summary": '',
438
+ "summary": '-',
439
439
  "document_meta": {
440
440
  "table_index": tab_idx,
441
441
  "table_shape": df.shape,
@@ -481,7 +481,7 @@ class PDFLoader(BasePDF):
481
481
  "answer": '',
482
482
  "type": 'page',
483
483
  "data": {},
484
- "summary": '',
484
+ "summary": '-',
485
485
  "document_meta": {
486
486
  "image_name": img_name,
487
487
  "page_number": f"{page_number}"
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 aiohttp applications."
6
- __version__ = "0.3.9"
6
+ __version__ = "0.3.10"
7
7
  __author__ = "Jesus Lara"
8
8
  __author_email__ = "jesuslarag@gmail.com"
9
9
  __license__ = "MIT"