cat-llm 0.0.76__tar.gz → 0.0.78__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.76
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,7 +1,7 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Christopher Soria <chrissoria@berkeley.edu>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "0.0.76"
4
+ __version__ = "0.0.78"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
@@ -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
- # what this function does:
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
File without changes
File without changes