hamtaa-texttools 1.0.4__py3-none-any.whl → 1.0.6__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.
Potentially problematic release.
This version of hamtaa-texttools might be problematic. Click here for more details.
- {hamtaa_texttools-1.0.4.dist-info → hamtaa_texttools-1.0.6.dist-info}/METADATA +192 -141
- hamtaa_texttools-1.0.6.dist-info/RECORD +30 -0
- {hamtaa_texttools-1.0.4.dist-info → hamtaa_texttools-1.0.6.dist-info}/licenses/LICENSE +20 -20
- {hamtaa_texttools-1.0.4.dist-info → hamtaa_texttools-1.0.6.dist-info}/top_level.txt +0 -0
- texttools/__init__.py +9 -9
- texttools/batch/__init__.py +4 -4
- texttools/batch/batch_manager.py +229 -240
- texttools/batch/batch_runner.py +263 -212
- texttools/formatters/base_formatter.py +33 -33
- texttools/formatters/{user_merge_formatter/user_merge_formatter.py → user_merge_formatter.py} +30 -30
- texttools/prompts/README.md +35 -31
- texttools/prompts/categorizer.yaml +28 -31
- texttools/prompts/{question_detector.yaml → is_question.yaml} +13 -14
- texttools/prompts/keyword_extractor.yaml +18 -14
- texttools/prompts/ner_extractor.yaml +20 -21
- texttools/prompts/question_merger.yaml +45 -48
- texttools/prompts/rewriter.yaml +111 -0
- texttools/prompts/run_custom.yaml +7 -0
- texttools/prompts/{subject_question_generator.yaml → subject_to_question.yaml} +22 -26
- texttools/prompts/summarizer.yaml +13 -11
- texttools/prompts/{question_generator.yaml → text_to_question.yaml} +19 -22
- texttools/prompts/translator.yaml +14 -14
- texttools/tools/__init__.py +4 -4
- texttools/tools/async_the_tool.py +277 -263
- texttools/tools/internals/async_operator.py +308 -288
- texttools/tools/internals/operator.py +295 -306
- texttools/tools/internals/output_models.py +52 -62
- texttools/tools/internals/prompt_loader.py +66 -82
- texttools/tools/the_tool.py +501 -400
- hamtaa_texttools-1.0.4.dist-info/RECORD +0 -29
- texttools/prompts/question_rewriter.yaml +0 -46
- {hamtaa_texttools-1.0.4.dist-info → hamtaa_texttools-1.0.6.dist-info}/WHEEL +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
hamtaa_texttools-1.0.4.dist-info/licenses/LICENSE,sha256=TJch8KUnfKaKJFkaRqgtghB7rtprhaHyGirYKr90U4o,1062
|
|
2
|
-
texttools/__init__.py,sha256=QqtaP7xjs0f1WgSFtIw8LqeFO6Lrr6uhGTvI2SAREBM,193
|
|
3
|
-
texttools/batch/__init__.py,sha256=WcnujCd_5XotN6emVCfDaO_lMpyk8EwJYcFgNRks5q0,139
|
|
4
|
-
texttools/batch/batch_manager.py,sha256=N7dg1bE0QpGYjHtM0E9DWtXErZR_z0byls9d8RQdUbs,9104
|
|
5
|
-
texttools/batch/batch_runner.py,sha256=3JF8PWDaBCpBboYKkZ5_f6DOOZY3W5GBw1Nty4ugKAs,7602
|
|
6
|
-
texttools/formatters/base_formatter.py,sha256=sUrISJcczTLDPMiMETG-kyfZ64u0NubFpT3mjEQBskk,1147
|
|
7
|
-
texttools/formatters/user_merge_formatter/user_merge_formatter.py,sha256=TLMZniNRCLoaOP4NzarxctGvFBPy5CHkFkPeOF__W-8,1056
|
|
8
|
-
texttools/prompts/README.md,sha256=aW_WQbRNByms3ok9NBCOqKoyZkXKVytaemvmIWGMAgc,1334
|
|
9
|
-
texttools/prompts/categorizer.yaml,sha256=5aMJPif1nUAhvWbNPELryZ68EXhtAq9bpcif8m3o5OY,1042
|
|
10
|
-
texttools/prompts/keyword_extractor.yaml,sha256=lCAQFn-Ct_dCbr3ehB5eOTDk3J43UVkArMWOMSU3XO8,540
|
|
11
|
-
texttools/prompts/ner_extractor.yaml,sha256=w6ofwcpKgf4LHR4eeGmcbmhvTK5cpNjUPQbiUYR827s,677
|
|
12
|
-
texttools/prompts/question_detector.yaml,sha256=5Q4bj4xZ2yWYPr3jWYE1P5L-90qFznf30wTj_6hAGII,512
|
|
13
|
-
texttools/prompts/question_generator.yaml,sha256=MoRB0CgDrOp6_GXUIDkRdABea7iCeiI8bCQBxRt-Il4,968
|
|
14
|
-
texttools/prompts/question_merger.yaml,sha256=J1C5HF5BRDrq3ot6SF-fZ5nSU8hVkB1LcYHlUPhMa8E,2164
|
|
15
|
-
texttools/prompts/question_rewriter.yaml,sha256=8kMevccMy3JUXE7lGhDECEicBom3inOoTSjhZENhbsw,2001
|
|
16
|
-
texttools/prompts/subject_question_generator.yaml,sha256=1Skrh4cM-F3w601L5C7uVAMZEDK0AAGbc_94U5J8AFQ,1333
|
|
17
|
-
texttools/prompts/summarizer.yaml,sha256=T2feIYGy7cDKcFTAPsjLJFLFB1sdRHv2lKaFSsVKbXU,376
|
|
18
|
-
texttools/prompts/translator.yaml,sha256=fWuOsYd8ALcE7hanfB1BeSuSoemABll1rhpHwBK9228,630
|
|
19
|
-
texttools/tools/__init__.py,sha256=3p0W4-P-v3nFqxj_g0RRMTrQKo53wd2uvAeWZ0gtvUs,110
|
|
20
|
-
texttools/tools/async_the_tool.py,sha256=WZ3Z46ngVejga7PAIKZMGdjom1UUidq9EC3zNZwqNN0,8040
|
|
21
|
-
texttools/tools/the_tool.py,sha256=XQYbktfLgx3-yc9lwi89txijcewrbvYJBzbakXjTsWU,12164
|
|
22
|
-
texttools/tools/internals/async_operator.py,sha256=M0QdnczTNKIWSZzwpkVMNfS8ZHEP-qv9SA_KYBdN2x8,9344
|
|
23
|
-
texttools/tools/internals/operator.py,sha256=8AN8d0AoulVer7a9aYfjIKdzY9RINxT0efdzrIH28cU,10116
|
|
24
|
-
texttools/tools/internals/output_models.py,sha256=cNUWJVA-NFJIrSwBz-gEqPRARHGfPXH4cSXaFfQ0mdY,1210
|
|
25
|
-
texttools/tools/internals/prompt_loader.py,sha256=I8dqbQ3yOtOnb4VbHQ8LCU9gSiRGhYRyF6p2alol7ZY,2652
|
|
26
|
-
hamtaa_texttools-1.0.4.dist-info/METADATA,sha256=GjXW4xdNPwFj75SLb9_exKfuaE8uh0Wp_OYK3rrh75E,5975
|
|
27
|
-
hamtaa_texttools-1.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
-
hamtaa_texttools-1.0.4.dist-info/top_level.txt,sha256=5Mh0jIxxZ5rOXHGJ6Mp-JPKviywwN0MYuH0xk5bEWqE,10
|
|
29
|
-
hamtaa_texttools-1.0.4.dist-info/RECORD,,
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
main_template:
|
|
2
|
-
|
|
3
|
-
same_meaning_different_wording: |
|
|
4
|
-
{user_prompt}
|
|
5
|
-
Rewrite the following question using completely different wording and phrasing,
|
|
6
|
-
ensuring its original meaning is perfectly preserved. The rewritten question
|
|
7
|
-
should be distinct from the original but convey the exact same inquiry.
|
|
8
|
-
Here is the question:
|
|
9
|
-
{input}
|
|
10
|
-
Respond only in JSON format:
|
|
11
|
-
{{"result": "string"}}
|
|
12
|
-
Respond only with the new generated question, without any additional information.
|
|
13
|
-
The generated question must be in the language of the users input.
|
|
14
|
-
|
|
15
|
-
different_meaning_similar_wording: |
|
|
16
|
-
{user_prompt}
|
|
17
|
-
Rewrite the following question using *very similar wording and phrasing*
|
|
18
|
-
to the original, but ensure the rewritten question has a *completely different meaning*.
|
|
19
|
-
Focus on subtle changes that drastically alter the intent or subject of the question.
|
|
20
|
-
Here is the question:
|
|
21
|
-
{input}
|
|
22
|
-
Respond only in JSON format:
|
|
23
|
-
{{"result": "string"}}
|
|
24
|
-
Respond only with the new generated question, without any additional information.
|
|
25
|
-
The generated question must be in the language of the users input.
|
|
26
|
-
|
|
27
|
-
analyze_template:
|
|
28
|
-
|
|
29
|
-
same_meaning_different_wording: |
|
|
30
|
-
Analyze the following question to identify its core intent, key concepts,
|
|
31
|
-
and the specific information it is seeking.
|
|
32
|
-
Provide a brief, summarized understanding of the question's meaning that
|
|
33
|
-
will help in rephrasing it accurately without changing its intent.
|
|
34
|
-
Respond in the language of the question.
|
|
35
|
-
Here is the question:
|
|
36
|
-
{input}
|
|
37
|
-
|
|
38
|
-
different_meaning_similar_wording: |
|
|
39
|
-
Analyze the following question to identify its exact wording, phrasing,
|
|
40
|
-
and the literal meaning it conveys.
|
|
41
|
-
Provide a brief, summarized analysis of its linguistic structure and current meaning,
|
|
42
|
-
which will then be used to create a new question with similar words but a different meaning.
|
|
43
|
-
Respond in the language of the question.
|
|
44
|
-
Here is the question:
|
|
45
|
-
{input}
|
|
46
|
-
|
|
File without changes
|