cat-llm 0.0.78__py3-none-any.whl → 0.0.80__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cat-llm
3
- Version: 0.0.78
3
+ Version: 0.0.80
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,19 +1,19 @@
1
1
  catllm/CERAD_functions.py,sha256=q4HbP5e2Yu8NnZZ-2eX4sImyj6u3i8xWcq0pYU81iis,22676
2
- catllm/__about__.py,sha256=lOe7499O5Oy36HGSwHffLVJxyMRC1XJKMBy51_I2V3o,430
2
+ catllm/__about__.py,sha256=DLDtWI4yTqkg27yXX-2ZVIoFdKHuUBoIl4kOnhbuxRQ,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=GilnjNlmnyvLfX1_jzx41q--ZzABuYtrGMTOFmioreY,35750
7
+ catllm/text_functions.py,sha256=OHlWdErhUG6YPJKk-9vAR-jY3gj2zb5MOy3P0cJu_Fc,35714
8
8
  catllm/calls/CoVe.py,sha256=Y9OGJbaeJ3Odwira92cPXUlnm_ADFqvpOSFSNjFzMMU,10847
9
9
  catllm/calls/__init__.py,sha256=fWuMwLeSGa6zXJYd4s8IyNblsD62G-1NMUsOKrNIkoI,725
10
- catllm/calls/all_calls.py,sha256=AeN1QocOvL3Z36lDkq6bO0LB3ruz6pXyedvdci0YCxQ,16627
10
+ catllm/calls/all_calls.py,sha256=15xvGSCwVQGVsrAWgn0alLuZblEYOUgIhpbzUM_875w,16592
11
11
  catllm/images/circle.png,sha256=JWujAWAh08-TajAoEr_TAeFNLlfbryOLw6cgIBREBuQ,86202
12
12
  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.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,,
16
+ cat_llm-0.0.80.dist-info/METADATA,sha256=V_FTTixBGPkURb8YDUwhZSO9qnucmjLrrPJ2Jj3ISlM,23214
17
+ cat_llm-0.0.80.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
18
+ cat_llm-0.0.80.dist-info/licenses/LICENSE,sha256=Vje2sS5WV4TnIwY5uQHrF4qnBAM3YOk1pGpdH0ot-2o,34969
19
+ cat_llm-0.0.80.dist-info/RECORD,,
catllm/__about__.py CHANGED
@@ -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.78"
4
+ __version__ = "0.0.80"
5
5
  __author__ = "Chris Soria"
6
6
  __email__ = "chrissoria@berkeley.edu"
7
7
  __title__ = "cat-llm"
catllm/calls/all_calls.py CHANGED
@@ -468,7 +468,6 @@ def get_openai_top_n(
468
468
 
469
469
  return response_obj.choices[0].message.content
470
470
 
471
- # anthropic explore corpus call
472
471
  def get_anthropic_top_n(
473
472
  prompt,
474
473
  user_model,
@@ -484,7 +483,7 @@ def get_anthropic_top_n(
484
483
  import anthropic
485
484
  client = anthropic.Anthropic(api_key=api_key)
486
485
 
487
- # build system prompt
486
+ # Build system prompt
488
487
  if research_question:
489
488
  system_content = (f"You are a helpful assistant that extracts categories from survey responses. "
490
489
  f"The specific task is to identify {specificity} categories of responses to a survey question. "
@@ -502,6 +501,4 @@ def get_anthropic_top_n(
502
501
  **({"temperature": creativity} if creativity is not None else {})
503
502
  )
504
503
 
505
- return response_obj.content[0].text
506
-
507
-
504
+ return response_obj.content[0].text
catllm/text_functions.py CHANGED
@@ -114,7 +114,6 @@ 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
118
117
  #extract top categories from corpus
119
118
  def explore_common_categories(
120
119
  survey_question,