inverse-cai

View on PyPIReverse Dependencies (1)

0.3.1 inverse_cai-0.3.1-py3-none-any.whl

Wheel Details

Project: inverse-cai
Version: 0.3.1
Filename: inverse_cai-0.3.1-py3-none-any.whl
Download: [link]
Size: 107357
MD5: 8bbeb377c075e2c735c89f64e88a5a45
SHA256: 21371d189c25a59ecd5d06dc7e5bb52c4ab04aeb25d7da70c2d2e9c237e8c283
Uploaded: 2025-04-09 14:35:52 +0000

dist-info

METADATA

Metadata-Version: 2.4
Name: inverse-cai
Version: 0.3.1
Summary: Inverse Constitutional AI (ICAI) pipeline for interpreting pairwise preferences
Author: timokau
Author-Email: rdnfn <hi[at]arduin.io>
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: alpaca-eval (<=0.6.5)
Requires-Dist: anthropic
Requires-Dist: datasets
Requires-Dist: hydra-core
Requires-Dist: langchain
Requires-Dist: langchain-anthropic
Requires-Dist: langchain-community
Requires-Dist: langchain-openai
Requires-Dist: loguru
Requires-Dist: matplotlib
Requires-Dist: pandas
Requires-Dist: python-dotenv
Requires-Dist: scikit-learn
Requires-Dist: setuptools
Requires-Dist: gradio; extra == "app"
Requires-Dist: ipywidgets; extra == "app"
Requires-Dist: jupyter; extra == "app"
Requires-Dist: nbconvert; extra == "app"
Requires-Dist: plotly; extra == "app"
Requires-Dist: black (==24.10.0); extra == "dev"
Requires-Dist: bump-my-version; extra == "dev"
Requires-Dist: pytest (>=6.0); extra == "dev"
Provides-Extra: app
Provides-Extra: dev
Description-Content-Type: text/markdown
License-File: LICENSE
[Description omitted; length: 466 characters]

WHEEL

Wheel-Version: 1.0
Generator: hatchling 1.27.0
Root-Is-Purelib: true
Tag: py3-none-any

RECORD

Path Digest Size
inverse_cai/__init__.py sha256=-EfO2acp8oWo4KyjMJEm5Ey2yw0FmH0ab11IPXin1Uc 188
inverse_cai/file_manager.py sha256=6p6XRH-Xngga9k3Gy_0-73O9fGN1Y4MJ7mY6b4oerG4 1394
inverse_cai/local_secrets.py sha256=vEHq9ABRK3gkiCYNoqyrx6XhTnORrf3ltU276_Fzqeo 286
inverse_cai/models.py sha256=2dXGKpqjWEAOshgIYjPRPwI40icNSB7oGLNaDKA1AjE 7872
inverse_cai/paper_plotting.py sha256=EJQuJ-Yy0sYv3wpwGhDsIC7cCsdXYzmomn0OgaAGsx8 24447
inverse_cai/utils.py sha256=9lgkhf0S0_5dSTLZalhqGXlap4A2-j2BLHnkGHl9w0o 1322
inverse_cai/visualisation.py sha256=sQ3Te93tQ0MmPusmzctgDAck2HfLWw1p1wPts2gDoeQ 3650
inverse_cai/algorithm/__init__.py sha256=q-UCWnIb255sJOI5etT9lQJvGtACX2FXRtDzFBJ3wJA 193
inverse_cai/algorithm/cache.py sha256=tNUrTVGPDgjIpn9YcdyBkEz7bVdI0WELQOECesGlKdI 4571
inverse_cai/algorithm/clustering.py sha256=9yQgZbVv4oWiOfly7rT3Fa-mMJgjPplQxt0mNXfSbTo 4079
inverse_cai/algorithm/filter.py sha256=Zgo2m8o0jG9ldAn45VhYBmtZPnX7wuWYWflMzTVmwoo 2641
inverse_cai/algorithm/filter_test.py sha256=5jikfh5J_29xye-ujVZWd4QUG9Cjc2-yHPtdijX5LuQ 4306
inverse_cai/algorithm/main.py sha256=WAq13XpeGpIDH6CqsCkxtEr41Q06orL-tLc8vkn0y68 10389
inverse_cai/algorithm/main_test.py sha256=ZlOuG5I9WJNv8y7Fb8GzrCjELlPyzQ9Q1TgyBbLPkCw 8263
inverse_cai/algorithm/proposal.py sha256=y3UbqzycfjiTZMUqfhimoTDuzNSrHiGOLcvDtwlt9Lk 10119
inverse_cai/algorithm/utils.py sha256=f5yGloCw9AtlfZ-myWybIwOqGGf4iZDNixAWgh9XGcg 1044
inverse_cai/algorithm/voting.py sha256=u0Uj-LP1Tb_30KckmTSrZ1uc_mtnBdo_XJjLyUL877s 8728
inverse_cai/algorithm/voting_test.py sha256=_ITC6UNQOq-QXDfo8gcUp3kffYMqiknl3nUlfLLu6Mk 6506
inverse_cai/annotators/__init__.py sha256=JTlk5rU4uk-jcYuAFBM_WE6Pos6iLO8kCbbHPBeaibY 106
inverse_cai/annotators/alpaca_eval.py sha256=srXNSxyJOUgU7Nkg5ciDOjGoHBuKbUWnXXb7v440eaw 9771
inverse_cai/annotators/core.py sha256=lEOeKCOTDJmUxDd_03UjzY0LnYW6FDYA964A6LAX4Y4 7600
inverse_cai/annotators/dummy.py sha256=GJDflg_noYyypLd69khPqgZQUpxlzWYfwRffv10RC0U 511
inverse_cai/app/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
inverse_cai/app/builtin_datasets.py sha256=nzWRuK-SWF2WT0sqSygGa80guSfpxrOpsX2iA_5ZLPU 5556
inverse_cai/app/callbacks.py sha256=rSBXfHDVdUCamcjRUpg-I3M8Nlxr659eNmYl1BMy2yg 16595
inverse_cai/app/constants.py sha256=xsoSr3n4hP2mmEkkHIJ9L2MKcifgzCi7CVKbOjlfKWs 3285
inverse_cai/app/data_loader.py sha256=Sw9S7bTpO7H7ve3NNN5vbA4wban2z80zdTm85O6h7dg 1492
inverse_cai/app/info_texts.py sha256=3p9bYAkCTdKlreuOs50J-VTiMM5fiyHGlGd7b9cSu1s 4568
inverse_cai/app/interface.py sha256=kZWHrJZQ6eC08sxIKywqCJ5cwOpEZbOq3bBr3RePQcI 9716
inverse_cai/app/loader.py sha256=Ny1fPdDFTPXmg_xhS40uvbcjbYtA6nAZYv0q_qYcZiQ 3452
inverse_cai/app/main.py sha256=jpmfzc4uxrmjbTto-hhyPaWnA4gl0fRz4KAG2I8PsTQ 591
inverse_cai/app/metrics.py sha256=P-fsAsbXI9rI_NuWm7tJv6v9lEIxe-qfTU3-IG1kEu0 7148
inverse_cai/app/metrics_test.py sha256=E6MRc0lope771482zz6AIKemy32TAnypM7tQFr6uZK4 4660
inverse_cai/app/styling.py sha256=ML0BNS1Aq9cwc47wk0T1WPYrL6egiE7O-F4ij8Tz2H8 652
inverse_cai/app/plotting/__init__.py sha256=afltSyv-MuVqSIsmx2Wdu10SQtqBVYgSmBDvwIJ48zg 56
inverse_cai/app/plotting/main.py sha256=OtWxdL_oGNUsMxOIB3sjueaRMBcYmhQ9pVUdiXDYG04 9429
inverse_cai/app/plotting/multiple.py sha256=lBPkBWuK3sRo8XdA2D3jkbFiV4LQcNNokcB_ReKhVb4 3923
inverse_cai/app/plotting/single.py sha256=3q9cKZGowl14gzaVKpAmJV8DuAAknNGZZvVwJhgpDQw 2800
inverse_cai/app/plotting/utils.py sha256=HkZQ9O2c8sOLMiu8NZcMuOUNEQbNvAgnEMaVIACTxzE 1814
inverse_cai/assets/alpacaeval_annotator_configs/alpaca_eval_gpt4o_fn_noinstruction/alpaca_eval_fn.txt sha256=hGw6pRRU3_J4NS6LcxYHuc7EPRIJHyAsqMcc2zeov5k 1150
inverse_cai/assets/alpacaeval_annotator_configs/alpaca_eval_gpt4o_fn_noinstruction/configs.yaml sha256=z5YeQBZ_oWGqMVIzuE3fNv6Elq2kzY8SmhK_zx4KPiU 1357
inverse_cai/assets/alpacaeval_annotator_configs/alpaca_eval_gpt4omini_fn_noinstruction/alpaca_eval_fn.txt sha256=hGw6pRRU3_J4NS6LcxYHuc7EPRIJHyAsqMcc2zeov5k 1150
inverse_cai/assets/alpacaeval_annotator_configs/alpaca_eval_gpt4omini_fn_noinstruction/configs.yaml sha256=Nf7-H0CdSCgKjI4oCrXmMbgiGDmpmU3nqBmgM9w2ZQU 1366
inverse_cai/assets/alpacaeval_annotator_configs/gpt4o_fn_constitutional_base_neutral_v2/configs.yaml sha256=45C2YChPBTRsbJ0wRlvOF1k0FTT_8pZrwkyVKKGZ0uw 797
inverse_cai/assets/alpacaeval_annotator_configs/gpt4o_fn_constitutional_base_neutral_v2/constitutional_prompt.txt sha256=4OqxaQDJzHpR2LIkqz_zYM7_Ikc2jjaNVPplg3MIlb0 725
inverse_cai/assets/alpacaeval_annotator_configs/gpt4omini_fn_constitutional_base_neutral_v2/configs.yaml sha256=Qu7Ote35L2UH-ZCE2TwygghBvWnNZM9yxuyxwXBo3Bs 806
inverse_cai/assets/alpacaeval_annotator_configs/gpt4omini_fn_constitutional_base_neutral_v2/constitutional_prompt.txt sha256=4OqxaQDJzHpR2LIkqz_zYM7_Ikc2jjaNVPplg3MIlb0 725
inverse_cai/data/__init__.py sha256=KllQQCKP8Dxjw1mTbhVMZEhwFb9Y8_dkwNEr5gM2mhc 80
inverse_cai/data/annotated_pairs_format.py sha256=gdKr87GIMGY7VUPgvB-c84nisMudq35oWadkJx46BDk 14931
inverse_cai/data/annotated_pairs_format_test.py sha256=9CvCE75sYxEzWRMy9mZhFgRi5SplWfZyA_PSaSJe6MA 12092
inverse_cai/data/generation.py sha256=RlpeCISwppq9trgwMGEzLZXaFsl3pDRuHHPvg7s1XIw 3990
inverse_cai/data/utils.py sha256=obPKxlGX4w0hDH8q3wOB2eZkXsg5x2aTDWrJCd6-Kho 595
inverse_cai/data/loader/__init__.py sha256=zwll9fNXQeJ_uSptNzIsfCBj8q_I_RXocN-Y65QS44Y 196
inverse_cai/data/loader/anthropic.py sha256=iQNng67pDz1Wh9WHNiSr6cb1-aVhPF6hL4ndsizaWok 2703
inverse_cai/data/loader/icai.py sha256=Oc-A6l5W9GuvvqSTnOZXu6Nfba73LQhYeZpK5etQMm0 4739
inverse_cai/data/loader/icai_test.py sha256=HptVzIY5_YTTDvgzp6EhhguTn-PPRWypkgL4qEd5nFY 6876
inverse_cai/data/loader/lmsys.py sha256=xxeK3eJvN68H4h9eRXvEssEjaX8kWdgGALA36ggH640 2610
inverse_cai/data/loader/standard.py sha256=ovaTHcbBwF0GYhjDBsyjhlNhV2uok9Z9p0YOdnfwdMk 848
inverse_cai/experiment/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
inverse_cai/experiment/core.py sha256=JFGAwXXvRy4j49BJDechFf4JJ4k3RB2QckX2Zpu6-eM 12212
inverse_cai/experiment/core_test.py sha256=rg9uopBmnv7qjJHSOJbdTSv3586AoJ7fVMz8-ErwJg8 1072
inverse_cai/experiment/config/__init__.py sha256=UpVzXExBfWy3ZS3wSWranI2bN0emdtG_PwAV5H7q0UY 185
inverse_cai/experiment/config/default_principles.py sha256=f1VZLY54oVGpY2mxBYdSiq_DYVVi54JZtKZ1ZTMHC88 4834
inverse_cai/experiment/config/main.py sha256=veCmF6M699JPAbZjcPxKpovAgndYIn9F0bGkxRDgPXc 8487
inverse_cai/experiment/config/prompts.py sha256=tptMA14rqHEG1h2yDwLwt2QyQaI_A_hR1agwTaf7xiw 3738
inverse_cai/models/models_test.py sha256=sQUjAuviLS5abvdIFOR1bJFvuqg8d0p6z9bd30CvWkE 2557
inverse_cai/tools/__init__.py sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU 0
inverse_cai/tools/data_cleaner.py sha256=n_umnK6C9Du_2R3-8jdzEE8m0cuLPekE5s6smMvgKuE 4586
inverse_cai-0.3.1.dist-info/METADATA sha256=MtXO7aCKHA6Njn-ucquUzU9mGb4ec_vs1yXh70xZURU 1657
inverse_cai-0.3.1.dist-info/WHEEL sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ 87
inverse_cai-0.3.1.dist-info/entry_points.txt sha256=fqaqd0U1G0hiW8IQ7BO9Iq6GQYb3vD5SwIpmhjZ4ryI 145
inverse_cai-0.3.1.dist-info/licenses/LICENSE sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ 11357
inverse_cai-0.3.1.dist-info/RECORD

entry_points.txt

icai-app = inverse_cai.app.main:run
icai-clean = inverse_cai.tools.data_cleaner:run
icai-exp = inverse_cai.experiment.core:run