cat-llm 0.0.77__tar.gz → 0.0.79__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.77 → cat_llm-0.0.79}/PKG-INFO +1 -1
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/__about__.py +1 -1
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/calls/all_calls.py +2 -5
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/text_functions.py +1 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/.gitignore +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/LICENSE +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/README.md +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/pyproject.toml +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/CERAD_functions.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/__init__.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/build_web_research.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/calls/CoVe.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/calls/__init__.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/image_functions.py +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/images/circle.png +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/images/cube.png +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/images/diamond.png +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/images/overlapping_pentagons.png +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/src/catllm/images/rectangles.png +0 -0
- {cat_llm-0.0.77 → cat_llm-0.0.79}/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.79
|
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
|
@@ -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
|
-
#
|
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
|
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
|