chatterer 0.1.25__py3-none-any.whl → 0.1.27__py3-none-any.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.
- chatterer/__init__.py +87 -97
- chatterer/common_types/__init__.py +21 -21
- chatterer/common_types/io.py +19 -19
- chatterer/constants.py +5 -0
- chatterer/examples/__main__.py +75 -75
- chatterer/examples/any2md.py +83 -85
- chatterer/examples/pdf2md.py +231 -338
- chatterer/examples/pdf2txt.py +52 -54
- chatterer/examples/ppt.py +487 -486
- chatterer/examples/pw.py +141 -143
- chatterer/examples/snippet.py +54 -56
- chatterer/examples/transcribe.py +192 -192
- chatterer/examples/upstage.py +87 -89
- chatterer/examples/web2md.py +80 -80
- chatterer/interactive.py +422 -354
- chatterer/language_model.py +530 -536
- chatterer/messages.py +21 -21
- chatterer/tools/__init__.py +46 -46
- chatterer/tools/caption_markdown_images.py +388 -384
- chatterer/tools/citation_chunking/__init__.py +3 -3
- chatterer/tools/citation_chunking/chunks.py +51 -53
- chatterer/tools/citation_chunking/citation_chunker.py +117 -118
- chatterer/tools/citation_chunking/citations.py +284 -285
- chatterer/tools/citation_chunking/prompt.py +157 -157
- chatterer/tools/citation_chunking/reference.py +26 -26
- chatterer/tools/citation_chunking/utils.py +138 -138
- chatterer/tools/convert_pdf_to_markdown.py +636 -645
- chatterer/tools/convert_to_text.py +446 -446
- chatterer/tools/upstage_document_parser.py +704 -705
- chatterer/tools/webpage_to_markdown.py +739 -739
- chatterer/tools/youtube.py +146 -147
- chatterer/utils/__init__.py +15 -15
- chatterer/utils/base64_image.py +349 -293
- chatterer/utils/bytesio.py +59 -59
- chatterer/utils/code_agent.py +237 -237
- chatterer/utils/imghdr.py +145 -148
- {chatterer-0.1.25.dist-info → chatterer-0.1.27.dist-info}/METADATA +377 -390
- chatterer-0.1.27.dist-info/RECORD +43 -0
- chatterer/strategies/__init__.py +0 -13
- chatterer/strategies/atom_of_thoughts.py +0 -975
- chatterer/strategies/base.py +0 -14
- chatterer-0.1.25.dist-info/RECORD +0 -45
- {chatterer-0.1.25.dist-info → chatterer-0.1.27.dist-info}/WHEEL +0 -0
- {chatterer-0.1.25.dist-info → chatterer-0.1.27.dist-info}/entry_points.txt +0 -0
- {chatterer-0.1.25.dist-info → chatterer-0.1.27.dist-info}/top_level.txt +0 -0
chatterer/strategies/base.py
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
from abc import ABC, abstractmethod
|
2
|
-
|
3
|
-
from ..language_model import LanguageModelInput
|
4
|
-
|
5
|
-
|
6
|
-
class BaseStrategy(ABC):
|
7
|
-
@abstractmethod
|
8
|
-
def invoke(self, messages: LanguageModelInput) -> str:
|
9
|
-
"""
|
10
|
-
Invoke the strategy with the given messages.
|
11
|
-
|
12
|
-
messages: List of messages to be passed to the strategy.
|
13
|
-
e.g. [{"role": "user", "content": "What is the meaning of life?"}]
|
14
|
-
"""
|
@@ -1,45 +0,0 @@
|
|
1
|
-
chatterer/__init__.py,sha256=hpbs8EXfz0OyOA1h9o2ZBR_556pyqcJfzJlQEf7Tl7E,2221
|
2
|
-
chatterer/interactive.py,sha256=bw4iZSPv57x0WPmasnObLM6f_tIgAJD-KbiXjN7NvYw,16702
|
3
|
-
chatterer/language_model.py,sha256=I7oAsD_qhQVxTdVWxEX9_Yt6py6sj8wddVueHED2E0U,20179
|
4
|
-
chatterer/messages.py,sha256=SIvG9hMHaPG4AFadeRbj5yPnMq2J06fHA4D8jrkz4kQ,458
|
5
|
-
chatterer/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
chatterer/common_types/__init__.py,sha256=Ais0kqzQJj4sED24xdv5azIxHkkj0vXWb4LC41dFkBQ,355
|
7
|
-
chatterer/common_types/io.py,sha256=GBZVhcRRCNZTAC1OPKAwW4s3EiyYRmNZ0ZWD1DxgMzs,798
|
8
|
-
chatterer/examples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
chatterer/examples/__main__.py,sha256=N9QO9UvjDxiXLxhGRK6E5zw7Kl4CMVbfx58SQr_6eCc,1491
|
10
|
-
chatterer/examples/any2md.py,sha256=LSG1QqNoSFDM4G8SL8dcC7_oGMHcLkvV9mP2q6f6Lkk,2654
|
11
|
-
chatterer/examples/pdf2md.py,sha256=S9hX32KaohU7eEJiJuctkbKei1Xd9VmXHz00zWesQtk,13287
|
12
|
-
chatterer/examples/pdf2txt.py,sha256=lriV234AdNbCAaUFKgc8XW50yKva91ApfMRruuaWGHQ,1548
|
13
|
-
chatterer/examples/ppt.py,sha256=bFJPIsvJYAHxg85lxpOi9Q_MzcZU03cHm9Ip-AEviCU,22767
|
14
|
-
chatterer/examples/pw.py,sha256=a9yCPwVIXDctxSbBnW17Kp_QRgR3iXMJe2FoTwsPJ-w,5144
|
15
|
-
chatterer/examples/snippet.py,sha256=1RrqSr4ZZqTb_jZQjEed0G87oYGdsMSINu5qzrxH8Ps,1973
|
16
|
-
chatterer/examples/transcribe.py,sha256=cZoIn8PymlQJcoGKI3PYDlkrYC0juQ6HW5c1GlPk3KY,6650
|
17
|
-
chatterer/examples/upstage.py,sha256=UYehJC13askeJgZS1-aAJniv3KMGt8tQjFBkhfGSoBQ,3130
|
18
|
-
chatterer/examples/web2md.py,sha256=oOSyjdYn4nuv7uMBuNKmRl3PCA7J0rszR4bF9ZUjJRg,3127
|
19
|
-
chatterer/strategies/__init__.py,sha256=oroDpp5ppWralCER5wnf8fgX77dqLAPF0ogmRtRzQfU,208
|
20
|
-
chatterer/strategies/atom_of_thoughts.py,sha256=coXh8ODw7_ig6qcxhdJ5TAiyk70PJbrhElN0J5JD12w,40203
|
21
|
-
chatterer/strategies/base.py,sha256=rqOzTo6S2eQ3A_F9aBXCmVoLM1eT6F2VzZ2Dof330Tk,413
|
22
|
-
chatterer/tools/__init__.py,sha256=cOFo-Aj2xXK_7IvWYRdg6uNomaT9xuSa_mwk2Y0l_AM,1428
|
23
|
-
chatterer/tools/caption_markdown_images.py,sha256=PfvHvr7x0XRLKlujALvOfEB3pQmjzlYFbcJqw2NHgZs,15008
|
24
|
-
chatterer/tools/convert_pdf_to_markdown.py,sha256=hD4JloVdeQ4ZdAmSK1rQO2q-_rXhj3Zo7Hr3sKcGaoI,28264
|
25
|
-
chatterer/tools/convert_to_text.py,sha256=oeUwKs3on0S26hMD2h06uz4o6nRvMZfb1PMaSoQLglY,14999
|
26
|
-
chatterer/tools/upstage_document_parser.py,sha256=2gs_U4BxlNdRGxsieP5RUGVh5UEyzICpVLMcYP4ecwE,32437
|
27
|
-
chatterer/tools/webpage_to_markdown.py,sha256=E9ZTg7fC6Z0dzGuYEsokRyzb8WVhiWdGFlQdiNSrBQ0,31222
|
28
|
-
chatterer/tools/youtube.py,sha256=vrsf6pK6D6UBQQCiNUkE5Xe0VQ3SadoEnyAzGwhElX4,5935
|
29
|
-
chatterer/tools/citation_chunking/__init__.py,sha256=DyLMGG4dVgSnGIdaSHcBNDz09iXflcKuJCtg4W0JTVo,79
|
30
|
-
chatterer/tools/citation_chunking/chunks.py,sha256=_Sxzfbud8XTOHdHdQmKwm4-byES1cD1V6C28DgtS1BA,2120
|
31
|
-
chatterer/tools/citation_chunking/citation_chunker.py,sha256=Aye1BqUCa4u_CsTZoqCe72pJA8C_y2U5UR7cNoNpeo4,4776
|
32
|
-
chatterer/tools/citation_chunking/citations.py,sha256=BWhSwzZccvu0Db-OxEbsuEGEz-Dh_tXo8HRx1y2XUHg,12308
|
33
|
-
chatterer/tools/citation_chunking/prompt.py,sha256=so-8uFQ5b2Zq2V5Brfxd76bEnKYkHovYsohAnbxWEnY,7557
|
34
|
-
chatterer/tools/citation_chunking/reference.py,sha256=m47XYaB5uFff_x_k7US9hNr-SpZjKnl-GuzsGaQzcZo,893
|
35
|
-
chatterer/tools/citation_chunking/utils.py,sha256=Xytm9lMrS783Po1qWAdEJ8q7Q3l2UMzwHd9EkYTRiwk,6210
|
36
|
-
chatterer/utils/__init__.py,sha256=of2NeLOjsAI79TgA4bL7UggCnAc7xT9eu3eeUBt9K8k,326
|
37
|
-
chatterer/utils/base64_image.py,sha256=bS25MvOrD5i_ofamxyAy7L2dHjsqEgAhwwIRkT36Qq0,11088
|
38
|
-
chatterer/utils/bytesio.py,sha256=QabdJCZsabPaiYVfJcdXzdiHjuhqDlz1vJuLJ60P7TY,2559
|
39
|
-
chatterer/utils/code_agent.py,sha256=z3GYWZbiKByeMQKXKpUo5JVbkt2hkKwWULyzdkgak1c,10258
|
40
|
-
chatterer/utils/imghdr.py,sha256=aZ1_AsRzyTsbV7uoeAZMVaC-hj73kvnFHMdHtFKskdE,3694
|
41
|
-
chatterer-0.1.25.dist-info/METADATA,sha256=ADRPMFWQAwtfXt4tZEChB_yOXq1qJFPhUr2vdyqm3Lk,11273
|
42
|
-
chatterer-0.1.25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
43
|
-
chatterer-0.1.25.dist-info/entry_points.txt,sha256=IzGKhTnZ7G5V23SRmulmSsyt9HcaFH4lU4r3wR1zMsc,63
|
44
|
-
chatterer-0.1.25.dist-info/top_level.txt,sha256=7nSQKP0bHxPRc7HyzdbKsJdkvPgYD0214o6slRizv9s,10
|
45
|
-
chatterer-0.1.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|