kiln-ai 0.6.1__py3-none-any.whl → 0.7.1__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.
Potentially problematic release.
This version of kiln-ai might be problematic. Click here for more details.
- kiln_ai/adapters/__init__.py +2 -0
- kiln_ai/adapters/adapter_registry.py +19 -0
- kiln_ai/adapters/data_gen/test_data_gen_task.py +29 -21
- kiln_ai/adapters/fine_tune/__init__.py +14 -0
- kiln_ai/adapters/fine_tune/base_finetune.py +186 -0
- kiln_ai/adapters/fine_tune/dataset_formatter.py +187 -0
- kiln_ai/adapters/fine_tune/finetune_registry.py +11 -0
- kiln_ai/adapters/fine_tune/fireworks_finetune.py +308 -0
- kiln_ai/adapters/fine_tune/openai_finetune.py +205 -0
- kiln_ai/adapters/fine_tune/test_base_finetune.py +290 -0
- kiln_ai/adapters/fine_tune/test_dataset_formatter.py +342 -0
- kiln_ai/adapters/fine_tune/test_fireworks_tinetune.py +455 -0
- kiln_ai/adapters/fine_tune/test_openai_finetune.py +503 -0
- kiln_ai/adapters/langchain_adapters.py +103 -13
- kiln_ai/adapters/ml_model_list.py +239 -303
- kiln_ai/adapters/ollama_tools.py +115 -0
- kiln_ai/adapters/provider_tools.py +308 -0
- kiln_ai/adapters/repair/repair_task.py +4 -2
- kiln_ai/adapters/repair/test_repair_task.py +6 -11
- kiln_ai/adapters/test_langchain_adapter.py +229 -18
- kiln_ai/adapters/test_ollama_tools.py +42 -0
- kiln_ai/adapters/test_prompt_adaptors.py +7 -5
- kiln_ai/adapters/test_provider_tools.py +531 -0
- kiln_ai/adapters/test_structured_output.py +22 -43
- kiln_ai/datamodel/__init__.py +287 -24
- kiln_ai/datamodel/basemodel.py +122 -38
- kiln_ai/datamodel/model_cache.py +116 -0
- kiln_ai/datamodel/registry.py +31 -0
- kiln_ai/datamodel/test_basemodel.py +167 -4
- kiln_ai/datamodel/test_dataset_split.py +234 -0
- kiln_ai/datamodel/test_example_models.py +12 -0
- kiln_ai/datamodel/test_model_cache.py +244 -0
- kiln_ai/datamodel/test_models.py +215 -1
- kiln_ai/datamodel/test_registry.py +96 -0
- kiln_ai/utils/config.py +14 -1
- kiln_ai/utils/name_generator.py +125 -0
- kiln_ai/utils/test_name_geneator.py +47 -0
- kiln_ai-0.7.1.dist-info/METADATA +237 -0
- kiln_ai-0.7.1.dist-info/RECORD +58 -0
- {kiln_ai-0.6.1.dist-info → kiln_ai-0.7.1.dist-info}/WHEEL +1 -1
- kiln_ai/adapters/test_ml_model_list.py +0 -181
- kiln_ai-0.6.1.dist-info/METADATA +0 -88
- kiln_ai-0.6.1.dist-info/RECORD +0 -37
- {kiln_ai-0.6.1.dist-info → kiln_ai-0.7.1.dist-info}/licenses/LICENSE.txt +0 -0
kiln_ai-0.6.1.dist-info/METADATA
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: kiln-ai
|
|
3
|
-
Version: 0.6.1
|
|
4
|
-
Summary: Kiln AI
|
|
5
|
-
Project-URL: Homepage, https://getkiln.ai
|
|
6
|
-
Project-URL: Repository, https://github.com/Kiln-AI/kiln
|
|
7
|
-
Project-URL: Documentation, https://kiln-ai.github.io/Kiln/kiln_core_docs/kiln_ai.html
|
|
8
|
-
Project-URL: Issues, https://github.com/Kiln-AI/kiln/issues
|
|
9
|
-
Author-email: "Steve Cosman, Chesterfield Laboratories Inc" <scosman@users.noreply.github.com>
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Python: >=3.10
|
|
17
|
-
Requires-Dist: coverage>=7.6.4
|
|
18
|
-
Requires-Dist: jsonschema>=4.23.0
|
|
19
|
-
Requires-Dist: langchain-aws>=0.2.4
|
|
20
|
-
Requires-Dist: langchain-groq>=0.2.0
|
|
21
|
-
Requires-Dist: langchain-ollama>=0.2.0
|
|
22
|
-
Requires-Dist: langchain-openai>=0.2.4
|
|
23
|
-
Requires-Dist: langchain>=0.3.5
|
|
24
|
-
Requires-Dist: pdoc>=15.0.0
|
|
25
|
-
Requires-Dist: pydantic>=2.9.2
|
|
26
|
-
Requires-Dist: pytest-cov>=6.0.0
|
|
27
|
-
Requires-Dist: pyyaml>=6.0.2
|
|
28
|
-
Requires-Dist: typing-extensions>=4.12.2
|
|
29
|
-
Description-Content-Type: text/markdown
|
|
30
|
-
|
|
31
|
-
# kiln_ai
|
|
32
|
-
|
|
33
|
-
<p align="center">
|
|
34
|
-
<picture>
|
|
35
|
-
<img width="205" alt="Kiln AI Logo" src="https://github.com/user-attachments/assets/5fbcbdf7-1feb-45c9-bd73-99a46dd0a47f">
|
|
36
|
-
</picture>
|
|
37
|
-
</p>
|
|
38
|
-
|
|
39
|
-
[](https://pypi.org/project/kiln-ai)
|
|
40
|
-
[](https://pypi.org/project/kiln-ai)
|
|
41
|
-
[](https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html)
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Installation
|
|
46
|
-
|
|
47
|
-
```console
|
|
48
|
-
pip install kiln_ai
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## About
|
|
52
|
-
|
|
53
|
-
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)
|
|
54
|
-
|
|
55
|
-
- Github: [github.com/Kiln-AI/kiln](https://github.com/Kiln-AI/kiln)
|
|
56
|
-
- 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)
|
|
57
|
-
|
|
58
|
-
## Quick Start
|
|
59
|
-
|
|
60
|
-
```python
|
|
61
|
-
from kiln_ai.datamodel import Project
|
|
62
|
-
|
|
63
|
-
print("Reading Kiln project")
|
|
64
|
-
project = Project.load_from_file("path/to/project.kiln")
|
|
65
|
-
print("Project: ", project.name, " - ", project.description)
|
|
66
|
-
|
|
67
|
-
task = project.tasks()[0]
|
|
68
|
-
print("Task: ", task.name, " - ", task.description)
|
|
69
|
-
print("Total dataset size:", len(task.runs()))
|
|
70
|
-
|
|
71
|
-
# ... app specific code using the typed kiln datamodel
|
|
72
|
-
|
|
73
|
-
# Alternatively, load data into pandas or a similar tool:
|
|
74
|
-
import glob
|
|
75
|
-
import json
|
|
76
|
-
import pandas as pd
|
|
77
|
-
from pathlib import Path
|
|
78
|
-
|
|
79
|
-
dataitem_glob = str(task.path.parent) + "/runs/*/task_run.kiln"
|
|
80
|
-
|
|
81
|
-
dfs = []
|
|
82
|
-
for file in glob.glob(dataitem_glob):
|
|
83
|
-
js = json.loads(Path(file).read_text())
|
|
84
|
-
df = pd.json_normalize(js)
|
|
85
|
-
dfs.append(df)
|
|
86
|
-
final_df = pd.concat(dfs, ignore_index=True)
|
|
87
|
-
print(final_df)
|
|
88
|
-
```
|
kiln_ai-0.6.1.dist-info/RECORD
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
kiln_ai/__init__.py,sha256=Sc4z8LRVFMwJUoc_DPVUriSXTZ6PO9MaJ80PhRbKyB8,34
|
|
2
|
-
kiln_ai/adapters/__init__.py,sha256=o4zubg6oHEVS15rhRHiWPmrxdgr_IXwQZ4Cr_XYT7zo,938
|
|
3
|
-
kiln_ai/adapters/base_adapter.py,sha256=E_RfXxzEhW-i066xOhZdPuTM7OPKQv70hDpfMsxfYEs,6145
|
|
4
|
-
kiln_ai/adapters/langchain_adapters.py,sha256=iN26w-BTM14AtnaTU_maq57j7Lm2uKfrOlVronyHsno,6712
|
|
5
|
-
kiln_ai/adapters/ml_model_list.py,sha256=maEawe9BQ3T-2qSssbQ6tkB7mUzi0YhHP5R7uwmF6iA,26084
|
|
6
|
-
kiln_ai/adapters/prompt_builders.py,sha256=Mdu-f1mC9hWIDwoF7Qwd9F99GDx6oNGvtEZN-SrOsNM,10325
|
|
7
|
-
kiln_ai/adapters/test_langchain_adapter.py,sha256=sQU_ZDF2p022wU9eYg4QFKQva8yQvw8QRb6DoCvfywk,4703
|
|
8
|
-
kiln_ai/adapters/test_ml_model_list.py,sha256=3O0T86yLOXDF1XTc9BxdK-pYPRN0eRV_rgB_AfFCwbM,6375
|
|
9
|
-
kiln_ai/adapters/test_prompt_adaptors.py,sha256=T8ecAzQ9HMcEkxJIAKvF-Om6d0eIHT_FTIgZAJ_r9x0,7414
|
|
10
|
-
kiln_ai/adapters/test_prompt_builders.py,sha256=sU0bSBZa9Y4Q-mmkDf3HbQ0MNSWk5o9bC9sNgtnBokk,14598
|
|
11
|
-
kiln_ai/adapters/test_saving_adapter_results.py,sha256=SYYh2xY1zmeKhFHfWAuEY4pEiLd8SitSV5ewGOTmaOI,6447
|
|
12
|
-
kiln_ai/adapters/test_structured_output.py,sha256=o3w7r7pSjFxVUh4AIRflkbLRByLAG7A20M6nvdTwHkI,10035
|
|
13
|
-
kiln_ai/adapters/data_gen/__init__.py,sha256=QTZWaf7kq5BorhPvexJfwDEKmjRmIbhwW9ei8LW2SIs,276
|
|
14
|
-
kiln_ai/adapters/data_gen/data_gen_prompts.py,sha256=kudjHnAz7L3q0k_NLyTlaIV7M0uRFrxXNcfcnjOE2uc,5810
|
|
15
|
-
kiln_ai/adapters/data_gen/data_gen_task.py,sha256=vwjC47YDrsl4GtBJpK6FWh07TGd8CalhZOX4p4YBX8w,5904
|
|
16
|
-
kiln_ai/adapters/data_gen/test_data_gen_task.py,sha256=vym6qOTLeFrG54wh3qLFPH0qZtop2ZaGX8AbzlUtlp8,9429
|
|
17
|
-
kiln_ai/adapters/repair/__init__.py,sha256=dOO9MEpEhjiwzDVFg3MNfA2bKMPlax9iekDatpTkX8E,217
|
|
18
|
-
kiln_ai/adapters/repair/repair_task.py,sha256=VXvX1l9AYDE_GV0i3S_vPThltJoQlCFVCCHV9m-QA7k,3297
|
|
19
|
-
kiln_ai/adapters/repair/test_repair_task.py,sha256=kYCEIgRj_-b0AUqXokzheg7RzloWsRHWbUU_J6EQWDM,7938
|
|
20
|
-
kiln_ai/datamodel/__init__.py,sha256=bWuJnJl6whe-kTJEp9yQorzCbweEOjkHnIQHYBEARpY,15406
|
|
21
|
-
kiln_ai/datamodel/basemodel.py,sha256=lNSxZQO2isNP1JhDpc-bK6VqKWz1oY_Cc9RUT3T-Pz8,17535
|
|
22
|
-
kiln_ai/datamodel/json_schema.py,sha256=l4BIq1ItLHgcSHqsqDOchegLLHY48U4yR0SP2aMb4i0,2449
|
|
23
|
-
kiln_ai/datamodel/test_basemodel.py,sha256=679aT4UplglHtTVYmHGgT4v5uyJd7J2w8dBicZlLomk,9439
|
|
24
|
-
kiln_ai/datamodel/test_datasource.py,sha256=GAiZz31qezVVPwFqnt8wHMu15WvtlV89jw8C1Ue6YNI,3165
|
|
25
|
-
kiln_ai/datamodel/test_example_models.py,sha256=PxDtC8H3EfZem4kAQ-waFlRMlqnV4YlLEFKzz0Pq4tM,20013
|
|
26
|
-
kiln_ai/datamodel/test_json_schema.py,sha256=vdLnTQxxrcmuSrf6iOmkrmpfh7JnxqIw4B4dbDAAcZ4,3199
|
|
27
|
-
kiln_ai/datamodel/test_models.py,sha256=4VwggmkHEpTi8yHN48guVwtRUuBmDo7D_OQpA6DDXMo,6731
|
|
28
|
-
kiln_ai/datamodel/test_nested_save.py,sha256=xciCddqvPyKyoyjC5Lx_3Kh1t4LJv1xYRAPazR3SRcs,5588
|
|
29
|
-
kiln_ai/datamodel/test_output_rating.py,sha256=iw7fVUAPORA-0-VFiikZV3NDycGFaFMHSX1a38t_aQA,2647
|
|
30
|
-
kiln_ai/utils/__init__.py,sha256=PTD0MwBCKAMIOGsTAwsFaJOusTJJoRFTfOGqRvCaU-E,142
|
|
31
|
-
kiln_ai/utils/config.py,sha256=hjfshIWKLNMvNfpmgLJfermC3G6bgEgCXOSFogHG9FQ,5505
|
|
32
|
-
kiln_ai/utils/formatting.py,sha256=VtB9oag0lOGv17dwT7OPX_3HzBfaU9GsLH-iLete0yM,97
|
|
33
|
-
kiln_ai/utils/test_config.py,sha256=pTYItz5WD15rTRdxKE7vszXF_mb-dik2qrFWzkVemEY,7671
|
|
34
|
-
kiln_ai-0.6.1.dist-info/METADATA,sha256=kBG2FmTo2mz0myHGIBimYMuzv5jOYUD8qXCgT2J-zkI,2979
|
|
35
|
-
kiln_ai-0.6.1.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
36
|
-
kiln_ai-0.6.1.dist-info/licenses/LICENSE.txt,sha256=_NA5pnTYgRRr4qH6lE3X-TuZJ8iRcMUi5ASoGr-lEx8,1209
|
|
37
|
-
kiln_ai-0.6.1.dist-info/RECORD,,
|
|
File without changes
|