kiln-ai 0.5.4__tar.gz → 0.5.5__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.

Potentially problematic release.


This version of kiln-ai might be problematic. Click here for more details.

Files changed (70) hide show
  1. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/PKG-INFO +41 -6
  2. kiln_ai-0.5.5/README.md +58 -0
  3. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/ml_model_list.py +13 -0
  4. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_prompt_adaptors.py +2 -0
  5. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/pyproject.toml +1 -1
  6. kiln_ai-0.5.4/README.md +0 -23
  7. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/.gitignore +0 -0
  8. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/.python-version +0 -0
  9. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/LICENSE.txt +0 -0
  10. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/index.html +0 -0
  11. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/base_adapter.html +0 -0
  12. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/langchain_adapters.html +0 -0
  13. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/ml_model_list.html +0 -0
  14. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/prompt_builders.html +0 -0
  15. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/repair/repair_task.html +0 -0
  16. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters/repair.html +0 -0
  17. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/adapters.html +0 -0
  18. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/datamodel/basemodel.html +0 -0
  19. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/datamodel/json_schema.html +0 -0
  20. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/datamodel.html +0 -0
  21. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/utils/config.html +0 -0
  22. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/utils/formatting.html +0 -0
  23. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai/utils.html +0 -0
  24. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/kiln_ai.html +0 -0
  25. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/core_library_docs/search.js +0 -0
  26. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/index.html +0 -0
  27. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/base_adapter.html +0 -0
  28. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/langchain_adapters.html +0 -0
  29. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/ml_model_list.html +0 -0
  30. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/prompt_builders.html +0 -0
  31. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/repair/repair_task.html +0 -0
  32. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters/repair.html +0 -0
  33. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/adapters.html +0 -0
  34. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/datamodel/basemodel.html +0 -0
  35. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/datamodel/json_schema.html +0 -0
  36. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/datamodel.html +0 -0
  37. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/utils/config.html +0 -0
  38. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/utils/formatting.html +0 -0
  39. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai/utils.html +0 -0
  40. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/kiln_ai.html +0 -0
  41. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/docs/kiln_core_docs/search.js +0 -0
  42. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/__init__.py +0 -0
  43. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/__init__.py +0 -0
  44. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/base_adapter.py +0 -0
  45. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/langchain_adapters.py +0 -0
  46. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/prompt_builders.py +0 -0
  47. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/repair/__init__.py +0 -0
  48. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/repair/repair_task.py +0 -0
  49. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/repair/test_repair_task.py +0 -0
  50. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_langchain_adapter.py +0 -0
  51. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_ml_model_list.py +0 -0
  52. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_prompt_builders.py +0 -0
  53. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_saving_adapter_results.py +0 -0
  54. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/adapters/test_structured_output.py +0 -0
  55. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/__init__.py +0 -0
  56. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/basemodel.py +0 -0
  57. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/json_schema.py +0 -0
  58. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_basemodel.py +0 -0
  59. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_datasource.py +0 -0
  60. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_example_models.py +0 -0
  61. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_json_schema.py +0 -0
  62. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_models.py +0 -0
  63. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_nested_save.py +0 -0
  64. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/datamodel/test_output_rating.py +0 -0
  65. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/utils/__init__.py +0 -0
  66. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/utils/config.py +0 -0
  67. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/utils/formatting.py +0 -0
  68. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/kiln_ai/utils/test_config.py +0 -0
  69. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/setup.cfg +0 -0
  70. {kiln_ai-0.5.4 → kiln_ai-0.5.5}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: kiln-ai
3
- Version: 0.5.4
3
+ Version: 0.5.5
4
4
  Summary: Kiln AI
5
5
  Project-URL: Homepage, https://getkiln.ai
6
6
  Project-URL: Repository, https://github.com/Kiln-AI/kiln
@@ -31,6 +31,12 @@ Description-Content-Type: text/markdown
31
31
 
32
32
  # kiln_ai
33
33
 
34
+ <p align="center">
35
+ <picture>
36
+ <img width="205" alt="Kiln AI Logo" src="https://github.com/user-attachments/assets/5fbcbdf7-1feb-45c9-bd73-99a46dd0a47f">
37
+ </picture>
38
+ </p>
39
+
34
40
  [![PyPI - Version](https://img.shields.io/pypi/v/kiln-ai.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/kiln-ai)
35
41
  [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/kiln-ai.svg)](https://pypi.org/project/kiln-ai)
36
42
  [![Docs](https://img.shields.io/badge/docs-pdoc-blue)](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
@@ -43,12 +49,41 @@ Description-Content-Type: text/markdown
43
49
  pip install kiln_ai
44
50
  ```
45
51
 
46
- ## About Kiln AI
52
+ ## About
53
+
54
+ This package is the Kiln AI core library. There is also a separate desktop application and server package. Learn more about Kiln AI at [getkiln.ai](https://getkiln.ai)
55
+
56
+ - Github: [github.com/Kiln-AI/kiln](https://github.com/Kiln-AI/kiln)
57
+ - Core Library Docs: [https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
58
+
59
+ ## Quick Start
47
60
 
48
- Learn more about Kiln AI at [getkiln.ai](https://getkiln.ai)
61
+ ```python
62
+ from kiln_ai.datamodel import Project
49
63
 
50
- This package is the Kiln AI core library. There is also a separate desktop application and server package.
64
+ print("Reading Kiln project")
65
+ project = Project.load_from_file("path/to/project.kiln")
66
+ print("Project: ", project.name, " - ", project.description)
51
67
 
52
- Github: [github.com/Kiln-AI/kiln](https://github.com/Kiln-AI/kiln)
68
+ task = project.tasks()[0]
69
+ print("Task: ", task.name, " - ", task.description)
70
+ print("Total dataset size:", len(task.runs()))
53
71
 
54
- Docs: [https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
72
+ # ... app specific code using the typed kiln datamodel
73
+
74
+ # Alternatively, load data into pandas or a similar tool:
75
+ import glob
76
+ import json
77
+ import pandas as pd
78
+ from pathlib import Path
79
+
80
+ dataitem_glob = str(task.path.parent) + "/runs/*/task_run.kiln"
81
+
82
+ dfs = []
83
+ for file in glob.glob(dataitem_glob):
84
+ js = json.loads(Path(file).read_text())
85
+ df = pd.json_normalize(js)
86
+ dfs.append(df)
87
+ final_df = pd.concat(dfs, ignore_index=True)
88
+ print(final_df)
89
+ ```
@@ -0,0 +1,58 @@
1
+ # kiln_ai
2
+
3
+ <p align="center">
4
+ <picture>
5
+ <img width="205" alt="Kiln AI Logo" src="https://github.com/user-attachments/assets/5fbcbdf7-1feb-45c9-bd73-99a46dd0a47f">
6
+ </picture>
7
+ </p>
8
+
9
+ [![PyPI - Version](https://img.shields.io/pypi/v/kiln-ai.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/kiln-ai)
10
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/kiln-ai.svg)](https://pypi.org/project/kiln-ai)
11
+ [![Docs](https://img.shields.io/badge/docs-pdoc-blue)](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
12
+
13
+ ---
14
+
15
+ ## Installation
16
+
17
+ ```console
18
+ pip install kiln_ai
19
+ ```
20
+
21
+ ## About
22
+
23
+ This package is the Kiln AI core library. There is also a separate desktop application and server package. Learn more about Kiln AI at [getkiln.ai](https://getkiln.ai)
24
+
25
+ - Github: [github.com/Kiln-AI/kiln](https://github.com/Kiln-AI/kiln)
26
+ - Core Library Docs: [https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
27
+
28
+ ## Quick Start
29
+
30
+ ```python
31
+ from kiln_ai.datamodel import Project
32
+
33
+ print("Reading Kiln project")
34
+ project = Project.load_from_file("path/to/project.kiln")
35
+ print("Project: ", project.name, " - ", project.description)
36
+
37
+ task = project.tasks()[0]
38
+ print("Task: ", task.name, " - ", task.description)
39
+ print("Total dataset size:", len(task.runs()))
40
+
41
+ # ... app specific code using the typed kiln datamodel
42
+
43
+ # Alternatively, load data into pandas or a similar tool:
44
+ import glob
45
+ import json
46
+ import pandas as pd
47
+ from pathlib import Path
48
+
49
+ dataitem_glob = str(task.path.parent) + "/runs/*/task_run.kiln"
50
+
51
+ dfs = []
52
+ for file in glob.glob(dataitem_glob):
53
+ js = json.loads(Path(file).read_text())
54
+ df = pd.json_normalize(js)
55
+ dfs.append(df)
56
+ final_df = pd.concat(dfs, ignore_index=True)
57
+ print(final_df)
58
+ ```
@@ -69,6 +69,7 @@ class ModelName(str, Enum):
69
69
  gemma_2_2b = "gemma_2_2b"
70
70
  gemma_2_9b = "gemma_2_9b"
71
71
  gemma_2_27b = "gemma_2_27b"
72
+ claude_3_5_haiku = "claude_3_5_haiku"
72
73
  claude_3_5_sonnet = "claude_3_5_sonnet"
73
74
  gemini_1_5_flash = "gemini_1_5_flash"
74
75
  gemini_1_5_flash_8b = "gemini_1_5_flash_8b"
@@ -143,6 +144,18 @@ built_in_models: List[KilnModel] = [
143
144
  ),
144
145
  ],
145
146
  ),
147
+ # Claude 3.5 Haiku
148
+ KilnModel(
149
+ family=ModelFamily.claude,
150
+ name=ModelName.claude_3_5_haiku,
151
+ friendly_name="Claude 3.5 Haiku",
152
+ providers=[
153
+ KilnModelProvider(
154
+ name=ModelProviderName.openrouter,
155
+ provider_options={"model": "anthropic/claude-3-5-haiku"},
156
+ ),
157
+ ],
158
+ ),
146
159
  # Claude 3.5 Sonnet
147
160
  KilnModel(
148
161
  family=ModelFamily.claude,
@@ -28,6 +28,8 @@ async def test_groq(tmp_path):
28
28
  "llama_3_2_3b",
29
29
  "llama_3_2_11b",
30
30
  "llama_3_2_90b",
31
+ "claude_3_5_haiku",
32
+ "claude_3_5_sonnet",
31
33
  ],
32
34
  )
33
35
  @pytest.mark.paid
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "kiln-ai"
3
- version = "0.5.4"
3
+ version = "0.5.5"
4
4
  requires-python = ">=3.10"
5
5
  readme = "README.md"
6
6
  description = 'Kiln AI'
kiln_ai-0.5.4/README.md DELETED
@@ -1,23 +0,0 @@
1
- # kiln_ai
2
-
3
- [![PyPI - Version](https://img.shields.io/pypi/v/kiln-ai.svg?logo=pypi&label=PyPI&logoColor=gold)](https://pypi.org/project/kiln-ai)
4
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/kiln-ai.svg)](https://pypi.org/project/kiln-ai)
5
- [![Docs](https://img.shields.io/badge/docs-pdoc-blue)](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
6
-
7
- ---
8
-
9
- ## Installation
10
-
11
- ```console
12
- pip install kiln_ai
13
- ```
14
-
15
- ## About Kiln AI
16
-
17
- Learn more about Kiln AI at [getkiln.ai](https://getkiln.ai)
18
-
19
- This package is the Kiln AI core library. There is also a separate desktop application and server package.
20
-
21
- Github: [github.com/Kiln-AI/kiln](https://github.com/Kiln-AI/kiln)
22
-
23
- Docs: [https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes