cat-llm 0.0.76__py3-none-any.whl → 0.0.78__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.
- {cat_llm-0.0.76.dist-info → cat_llm-0.0.78.dist-info}/METADATA +1 -1
- {cat_llm-0.0.76.dist-info → cat_llm-0.0.78.dist-info}/RECORD +6 -6
- catllm/__about__.py +1 -1
- catllm/text_functions.py +5 -9
- {cat_llm-0.0.76.dist-info → cat_llm-0.0.78.dist-info}/WHEEL +0 -0
- {cat_llm-0.0.76.dist-info → cat_llm-0.0.78.dist-info}/licenses/LICENSE +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: cat-llm
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.78
|
4
4
|
Summary: A tool for categorizing text data and images using LLMs and vision models
|
5
5
|
Project-URL: Documentation, https://github.com/chrissoria/cat-llm#readme
|
6
6
|
Project-URL: Issues, https://github.com/chrissoria/cat-llm/issues
|
@@ -1,10 +1,10 @@
|
|
1
1
|
catllm/CERAD_functions.py,sha256=q4HbP5e2Yu8NnZZ-2eX4sImyj6u3i8xWcq0pYU81iis,22676
|
2
|
-
catllm/__about__.py,sha256=
|
2
|
+
catllm/__about__.py,sha256=lOe7499O5Oy36HGSwHffLVJxyMRC1XJKMBy51_I2V3o,430
|
3
3
|
catllm/__init__.py,sha256=sf02zp7N0NW0mAQi7eQ4gliWR1EwoqvXkHN2HwwjcTE,372
|
4
4
|
catllm/build_web_research.py,sha256=880dfE2bEQb-FrXP-42JoLLtyc9ox_sBULDr38xiTiQ,22655
|
5
5
|
catllm/image_functions.py,sha256=8_FftRU285x1HT-AgNkaobefQVD-5q7ZY_t7JFdL3Sg,36177
|
6
6
|
catllm/model_reference_list.py,sha256=37pWwMcgnf4biE3BVRluH5oz2P6ccdJJiCVNHodBH8k,2307
|
7
|
-
catllm/text_functions.py,sha256=
|
7
|
+
catllm/text_functions.py,sha256=GilnjNlmnyvLfX1_jzx41q--ZzABuYtrGMTOFmioreY,35750
|
8
8
|
catllm/calls/CoVe.py,sha256=Y9OGJbaeJ3Odwira92cPXUlnm_ADFqvpOSFSNjFzMMU,10847
|
9
9
|
catllm/calls/__init__.py,sha256=fWuMwLeSGa6zXJYd4s8IyNblsD62G-1NMUsOKrNIkoI,725
|
10
10
|
catllm/calls/all_calls.py,sha256=AeN1QocOvL3Z36lDkq6bO0LB3ruz6pXyedvdci0YCxQ,16627
|
@@ -13,7 +13,7 @@ catllm/images/cube.png,sha256=nFec3e5bmRe4zrBCJ8QK-HcJLrG7u7dYdKhmdMfacfE,77275
|
|
13
13
|
catllm/images/diamond.png,sha256=rJDZKtsnBGRO8FPA0iHuA8FvHFGi9PkI_DWSFdw6iv0,99568
|
14
14
|
catllm/images/overlapping_pentagons.png,sha256=VO5plI6eoVRnjfqinn1nNzsCP2WQhuQy71V0EASouW4,71208
|
15
15
|
catllm/images/rectangles.png,sha256=2XM16HO9EYWj2yHgN4bPXaCwPfl7iYQy0tQUGaJX9xg,40692
|
16
|
-
cat_llm-0.0.
|
17
|
-
cat_llm-0.0.
|
18
|
-
cat_llm-0.0.
|
19
|
-
cat_llm-0.0.
|
16
|
+
cat_llm-0.0.78.dist-info/METADATA,sha256=yXiZ4pFba0gfp4m2yU6TRfFO0kzWoHoYcxTzchjz2Xc,23214
|
17
|
+
cat_llm-0.0.78.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
18
|
+
cat_llm-0.0.78.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
|
19
|
+
cat_llm-0.0.78.dist-info/RECORD,,
|
catllm/__about__.py
CHANGED
catllm/text_functions.py
CHANGED
@@ -114,6 +114,7 @@ Number your categories from 1 through {cat_num} and be concise with the category
|
|
114
114
|
|
115
115
|
return df
|
116
116
|
|
117
|
+
#extract top categories from corpus
|
117
118
|
#extract top categories from corpus
|
118
119
|
def explore_common_categories(
|
119
120
|
survey_question,
|
@@ -313,14 +314,7 @@ Number your categories from 1 through {cat_num} and be concise with the category
|
|
313
314
|
return top_categories_final
|
314
315
|
|
315
316
|
#multi-class text classification
|
316
|
-
#
|
317
|
-
# does context prompting, giving the model a background on the task at hand and the user's survey question
|
318
|
-
# system prompting, overall context and purpose for the language model
|
319
|
-
# role prompting, assings a spacific identity to the model
|
320
|
-
# also enables few shot prompting, allowing the user to input a few examples
|
321
|
-
# provides POSITIVE INSTRUCTIONS reather than limitations/restrictions
|
322
|
-
# GOAL: enable step-back prompting
|
323
|
-
# GOAL 2: enable self-consistency
|
317
|
+
# GOAL: enable self-consistency
|
324
318
|
def multi_class(
|
325
319
|
survey_input,
|
326
320
|
categories,
|
@@ -408,12 +402,14 @@ def multi_class(
|
|
408
402
|
if categories == "auto":
|
409
403
|
if survey_question == "": # step back requires the survey question to function well
|
410
404
|
raise TypeError("survey_question is required when using step_back_prompt. Please provide the survey question you are analyzing.")
|
411
|
-
|
405
|
+
|
412
406
|
categories = explore_common_categories(
|
413
407
|
survey_question=survey_question,
|
414
408
|
survey_input=survey_input,
|
415
409
|
research_question=research_question,
|
416
410
|
api_key=api_key,
|
411
|
+
model_source=model_source,
|
412
|
+
user_model=user_model,
|
417
413
|
top_n=top_n,
|
418
414
|
cat_num=cat_num,
|
419
415
|
divisions=divisions
|
File without changes
|
File without changes
|