cat-llm 0.0.76__tar.gz → 0.0.77__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.
- {cat_llm-0.0.76 → cat_llm-0.0.77}/PKG-INFO +1 -1
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/__about__.py +1 -1
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/text_functions.py +4 -9
- {cat_llm-0.0.76 → cat_llm-0.0.77}/.gitignore +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/LICENSE +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/README.md +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/pyproject.toml +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/CERAD_functions.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/__init__.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/build_web_research.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/calls/CoVe.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/calls/__init__.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/calls/all_calls.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/image_functions.py +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/images/circle.png +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/images/cube.png +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/images/diamond.png +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/images/overlapping_pentagons.png +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/images/rectangles.png +0 -0
- {cat_llm-0.0.76 → cat_llm-0.0.77}/src/catllm/model_reference_list.py +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.77
|
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
|
@@ -313,14 +313,7 @@ Number your categories from 1 through {cat_num} and be concise with the category
|
|
313
313
|
return top_categories_final
|
314
314
|
|
315
315
|
#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
|
316
|
+
# GOAL: enable self-consistency
|
324
317
|
def multi_class(
|
325
318
|
survey_input,
|
326
319
|
categories,
|
@@ -408,12 +401,14 @@ def multi_class(
|
|
408
401
|
if categories == "auto":
|
409
402
|
if survey_question == "": # step back requires the survey question to function well
|
410
403
|
raise TypeError("survey_question is required when using step_back_prompt. Please provide the survey question you are analyzing.")
|
411
|
-
|
404
|
+
|
412
405
|
categories = explore_common_categories(
|
413
406
|
survey_question=survey_question,
|
414
407
|
survey_input=survey_input,
|
415
408
|
research_question=research_question,
|
416
409
|
api_key=api_key,
|
410
|
+
model_source=model_source,
|
411
|
+
user_model=user_model,
|
417
412
|
top_n=top_n,
|
418
413
|
cat_num=cat_num,
|
419
414
|
divisions=divisions
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|