cat-llm 0.0.25__py3-none-any.whl → 0.0.26__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.25.dist-info → cat_llm-0.0.26.dist-info}/METADATA +1 -1
- cat_llm-0.0.26.dist-info/RECORD +9 -0
- catllm/CERAD_functions.py +15 -9
- catllm/__about__.py +1 -1
- catllm/__init__.py +2 -1
- catllm/cat_llm.py +0 -1008
- catllm/image_functions.py +689 -0
- cat_llm-0.0.25.dist-info/RECORD +0 -8
- {cat_llm-0.0.25.dist-info → cat_llm-0.0.26.dist-info}/WHEEL +0 -0
- {cat_llm-0.0.25.dist-info → cat_llm-0.0.26.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.26
|
|
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
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
catllm/CERAD_functions.py,sha256=mtHxshRWmWXMH9kkkCfbMHXgDe00EVabjFiN8s73LPI,16935
|
|
2
|
+
catllm/__about__.py,sha256=4jqHFlCUy8Xa_lkK5V6tmc1z_Goja59oOIaD7pFXnRs,404
|
|
3
|
+
catllm/__init__.py,sha256=kLk180aJna1s-wU6CLr4_hKkbjoeET-11jGmC1pdhQw,330
|
|
4
|
+
catllm/cat_llm.py,sha256=Rwyz93caNf0h9tfurObY6qDjtG6EKaYXR0GrVW7h2kU,16920
|
|
5
|
+
catllm/image_functions.py,sha256=nTppbeeuYrlDmZtUkEwNwRJQ6YbBxBCYoPRU1X4GZOY,27100
|
|
6
|
+
cat_llm-0.0.26.dist-info/METADATA,sha256=uXjULRmbv-RQu9Q1aU3rXuYo1d4qK-163M2i-j5Sb1o,1679
|
|
7
|
+
cat_llm-0.0.26.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
cat_llm-0.0.26.dist-info/licenses/LICENSE,sha256=wJLsvOr6lrFUDcoPXExa01HOKFWrS3JC9f0RudRw8uw,1075
|
|
9
|
+
cat_llm-0.0.26.dist-info/RECORD,,
|
catllm/CERAD_functions.py
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
# specifically for pictures of drawings of shapes like circles, diamonds, rectangles, and cubes
|
|
3
3
|
|
|
4
4
|
"""
|
|
5
|
+
Ket features:
|
|
6
|
+
1. Shape-specific scoring: The function can handle different shapes (circle, diamond, rectangles, cube) and provides tailored categories for each shape.
|
|
7
|
+
2. Image input handling: It accepts image inputs either as file paths or a list of images.
|
|
8
|
+
3. Model flexibility: The function allows users to specify different models (OpenAI, Anthropic, Perplexity, Mistral) for image analysis.
|
|
9
|
+
4. Safety and progress saving: It can save progress to a CSV file, which is useful for long-running tasks or when processing many images.
|
|
10
|
+
|
|
5
11
|
Areas for improvement:
|
|
6
12
|
1. Prompt refinement: adjusting the prompt so that it produces a more accurate score.
|
|
7
13
|
2. Image preprocessing: adjusting the images so that they are easier to be analyzed by the models.
|
|
@@ -19,7 +25,7 @@ def cerad_drawn_score(
|
|
|
19
25
|
shape,
|
|
20
26
|
image_input,
|
|
21
27
|
api_key,
|
|
22
|
-
user_model="gpt-4o
|
|
28
|
+
user_model="gpt-4o",
|
|
23
29
|
creativity=0,
|
|
24
30
|
reference_in_image=False,
|
|
25
31
|
provide_reference=False,
|
|
@@ -40,8 +46,8 @@ def cerad_drawn_score(
|
|
|
40
46
|
|
|
41
47
|
if shape == "circle":
|
|
42
48
|
categories = ["The image contains a drawing that clearly represents a circle",
|
|
43
|
-
"The
|
|
44
|
-
"The drawing resembles a circle",
|
|
49
|
+
"The image does NOT contain any drawing that resembles a circle",
|
|
50
|
+
"The image contains a drawing that resembles a circle",
|
|
45
51
|
"The circle is closed",
|
|
46
52
|
"The circle is almost closed",
|
|
47
53
|
"The circle is circular",
|
|
@@ -58,12 +64,12 @@ def cerad_drawn_score(
|
|
|
58
64
|
"None of the above descriptions apply"]
|
|
59
65
|
elif shape == "rectangles" or shape == "overlapping rectangles":
|
|
60
66
|
categories = ["The image contains a drawing that clearly represents overlapping rectangles",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"The rectangles are overlapping",
|
|
66
|
-
"The rectangles overlap
|
|
67
|
+
"The image does NOT contain any drawing that resembles overlapping rectangles",
|
|
68
|
+
"The image contains a drawing that resembles overlapping rectangles",
|
|
69
|
+
"If rectangle 1 is present it has 4 sides",
|
|
70
|
+
"If rectablge 2 is present it has 4 sides",
|
|
71
|
+
"The drawn rectangles are overlapping",
|
|
72
|
+
"The drawn rectangles overlap to form a longer vertical rectangle with top and bottom sticking out",
|
|
67
73
|
"None of the above descriptions apply"]
|
|
68
74
|
elif shape == "cube":
|
|
69
75
|
categories = ["The image contains a drawing that clearly represents a cube (3D box shape)",
|
catllm/__about__.py
CHANGED
catllm/__init__.py
CHANGED