Cattykit
Cattykit (in development) is a framework for implementing artificial intelligence models based on components from the cognitive models of the Fluid Analogies Research Group described in Hofstadter et al 1995. Their models are typically built with similar components, including: a shared workspace, slipnet, coderack, and codelets.
Models solve problems represented by graph-like structures in a workspace which is incrementally edited by micro-agents called codelets that propose, build, and destroy new structures. The slipnet keeps track of concepts relevant to the structures present in the workspace and encourages codelets that continue their construction. The coderack is a stochastic scheduler of codelets, which are selected according to urgency. All processes in each model occur with a degree of randomness mediated by its temperature which (unlike the related concept used in language model decoding and simulated annealing) is a measure of workspace quality constantly adjusted by the model itself.
This repository was initially motivated by the lack of a common software framework for FARG models, which were typically developed as isolated projects, often using different programming languages (some of which are now obsolete). This hinders further research into the models and, despite the promise they show as an approach to symbolic AI, acts as a barrier to their adoption in AI more widely.
Installation
Install with pip:
pip install cattykit
Quick start
Start by installing a model in your environment (this requires pip in the local environment).
import cattykit
# providing a name will install the model from the Cattykit repository
cattykit.install_model("copycat")
print(cattykit.available_models())
# ('cattykit',)
# providing a uri will install a model from your computer or elsewhere
cattykit.install_model("path/to/model")
Once you have installed a model, you can ask it to solve a problem.
import cattykit
copycat = cattykit.load_model("copycat", config={"seed": 1234})
result = copycat.solve("abc -> abd ==> ijk -> ?")
print(result)
# 'ijl'
References
- Hofstadter, D. R., et al. (1995). Fluid Concepts and Creative Analogies: Computer Models of the Fundamental Mechanisms of Thought. Basic Books. doi:10.5555/218753
- Mitchell, M (1993). Analogy-Making as Perception: A Computer Model. The MIT Press. doi:10.5555/152203
License
Cattykit is licensed under the GNU Affero General Public License v3.0 or later. See LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cattykit-0.1.1.tar.gz.
File metadata
- Download URL: cattykit-0.1.1.tar.gz
- Upload date:
- Size: 50.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf85c1926c8a6958e4a41a14cce666001584795e3d208e5f72c475aac010526c
|
|
| MD5 |
2bf580d5bac8ac48655eb4d84cc4f198
|
|
| BLAKE2b-256 |
ed3108d9c8fbb2b574945393b48a5df23f08cb94a8f4fa441ef2451180d7b57b
|
Provenance
The following attestation bundles were made for cattykit-0.1.1.tar.gz:
Publisher:
release.yml on georgeawright/cattykit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cattykit-0.1.1.tar.gz -
Subject digest:
cf85c1926c8a6958e4a41a14cce666001584795e3d208e5f72c475aac010526c - Sigstore transparency entry: 2780949384
- Sigstore integration time:
-
Permalink:
georgeawright/cattykit@4314caf4138b7b3fd3293b798d079423ceb8bb27 -
Branch / Tag:
refs/tags/cattykit-v0.1.1 - Owner: https://github.com/georgeawright
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4314caf4138b7b3fd3293b798d079423ceb8bb27 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cattykit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cattykit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 40.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98907e5bd66a4bd1f28b1ea513f5a00812250a61335e3eb7de47dbf0acc4798a
|
|
| MD5 |
b54e0c08879982ad6f3366d213438180
|
|
| BLAKE2b-256 |
1a783cb188ce2ac240a307b331e530775669df22a8437a3b47e5d553e2fa7759
|
Provenance
The following attestation bundles were made for cattykit-0.1.1-py3-none-any.whl:
Publisher:
release.yml on georgeawright/cattykit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cattykit-0.1.1-py3-none-any.whl -
Subject digest:
98907e5bd66a4bd1f28b1ea513f5a00812250a61335e3eb7de47dbf0acc4798a - Sigstore transparency entry: 2780949437
- Sigstore integration time:
-
Permalink:
georgeawright/cattykit@4314caf4138b7b3fd3293b798d079423ceb8bb27 -
Branch / Tag:
refs/tags/cattykit-v0.1.1 - Owner: https://github.com/georgeawright
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4314caf4138b7b3fd3293b798d079423ceb8bb27 -
Trigger Event:
push
-
Statement type: