Skip to main content

Chirality Framework Semantic Calculator - Fixed canonical algorithm for structured problem-solving

Project description

Chirality Framework: A Semantic Calculator

Version: 15.0.0 | Status: Refactored to Canonical Algorithm

The Chirality Framework is a direct, simple, and observable implementation of a fixed, canonical algorithm for structured problem-solving. It is not a general-purpose framework but a "semantic calculator" designed to execute a specific sequence of semantic transformations.

The value of this project is in the unique, insightful output of the calculation, not in the flexibility of the code.

Core Concept: The Three-Stage Interpretation Pipeline

The heart of the Chirality Framework is a three-stage process that generates deep meaning from fixed inputs:

  1. Stage 1 (Combinatorial): Mechanical combination of terms.
  2. Stage 2 (Semantic Resolution): An LLM resolves the raw terms into meaningful concepts.
  3. Stage 3 (Ontological Lensing): The LLM interprets these concepts through the contextual lens of the framework's ontological axes.

For a complete technical description of this process, see the Canonical Algorithm Documentation.

Quick Start: Using the CLI

The primary way to interact with the calculator is via the command-line interface. The most common command is compute-cell, which allows you to observe the 3-stage pipeline for any cell in a matrix.

Prerequisites

  • Python 3.8+
  • An OpenAI API key set as the OPENAI_API_KEY environment variable.

Examples: Computing cells through the 3-stage pipeline

# Navigate to the project root
cd /path/to/chirality-framework

# Compute cell C[0,0] with verbose output (shows all 3 stages)
python3 -m chirality.cli compute-cell C --i 0 --j 0 --verbose

# Compute with OpenAI resolver (requires API key)
python3 -m chirality.cli compute-cell C --i 0 --j 0 --resolver openai --verbose

# Compute different matrix types
python3 -m chirality.cli compute-cell F --i 1 --j 2 --verbose
python3 -m chirality.cli compute-cell D --i 2 --j 1 --problem "creating value"

# Enable tracing for full observability
python3 -m chirality.cli compute-cell C --i 0 --j 0 --trace --verbose

# Get help and information
python3 -m chirality.cli --help
python3 -m chirality.cli info

This will display the output of all three stages for the specified cell.

Development

To set up the development environment and run tests, please refer to the instructions in CONTRIBUTING.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chirality_framework-15.0.1.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chirality_framework-15.0.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file chirality_framework-15.0.1.tar.gz.

File metadata

  • Download URL: chirality_framework-15.0.1.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for chirality_framework-15.0.1.tar.gz
Algorithm Hash digest
SHA256 73921b5975a8b7477d5d5b09546f6e62b19d6c79b60a4981ed90f517297457e0
MD5 5898b933a6b6d278445a597afbcc5f3f
BLAKE2b-256 dc5910be191c2390125275e8522ad736f8e1f608790edc35228bdb3330863739

See more details on using hashes here.

File details

Details for the file chirality_framework-15.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for chirality_framework-15.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9887c9a3ac220204c4a75f58475155d4c5d759930b592fd56de9dc82c5175881
MD5 dc41b123f581f7db0e0cf076aa437cdf
BLAKE2b-256 17525c6bf5a6ba3ef279744b7378200f2379c70c565a6d1453240830ee37a082

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page