Skip to main content

AI-Hybrid Rules Engine for Logical Reasoning.

Project description

Vulcan Logo

AI-Hybrid Rules Engine for Logical Reasoning

Version

Vulcan is an AI-hybrid rules engine designed for advanced automated reasoning. It combines the power of rule-based decision systems with LLMs (Large Language Models) for improved consistency and explainability in AI-powered systems.

Learn more about Vulcan at https://latchfield.com/vulcan, or jump in with:

uv add vulcan-core
# or
poetry add vulcan-core
# or
pip install vulcan-core

To gain your bearings, read the documentation for guides and API reference: https://latchfield.com/vulcan/docs.

Why use Vulcan?

Vulcan strives to improve AI reliability and explainability by explicitly separating computational logic from LLM prediction through declarative rules and microprompting. Vulcan provides developers with a toolkit to create, manage, and execute rules with seamless integration with LLMs and vector databases.

Features:

  • AI-Hybrid Rules - Combine deterministic logic with LLMs and vector databases
  • Transparent Decision-Making - Full explainability of how decisions are made
  • Developer-Friendly API - Intuitive interfaces for rule creation and management
  • Platform Flexibility - Works across various environments and integrates with existing tools

Simple Example:

Turn your lengthy unpredictable prompts:

As a bakery, I want to buy 10 apples if I have less than 10 in inventory, but only if my supplier has apples used for baking in stock. Given I have 9 apples, and my supplier has "Honeycrisp", how many apples should I order?

Into repeatable, consistent, and explainable rules:

# Use natural language for prediction and data retrieval:
engine.rule(
    when=condition(f"Are {Apple.kind} considered good for baking?"),
    then=action(Apple(baking=True)),
)

# Use computed logic for operations that must be correct:
engine.rule(
    when=condition(lambda: Apple.baking and Inventory.apples < 10),
    then=action(Order(apples=10)),
)

# Intelligent on-demand rule evaluation:
engine.fact(Inventory(apples=9))
engine.fact(Apple(kind="Honeycrisp"))

Get Involved!

We welcome contributions from the community to help make Vulcan even better:

Additional Resources

Learn more about Vulcan:

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

vulcan_core-1.2.2.tar.gz (250.9 kB view details)

Uploaded Source

Built Distribution

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

vulcan_core-1.2.2-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file vulcan_core-1.2.2.tar.gz.

File metadata

  • Download URL: vulcan_core-1.2.2.tar.gz
  • Upload date:
  • Size: 250.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vulcan_core-1.2.2.tar.gz
Algorithm Hash digest
SHA256 3d6176d5512c796ea6f81a02313869016c9cd588b1345849443addb1cc338eb0
MD5 3d711bedd533c58e043cad18f1ebda96
BLAKE2b-256 1da9353b7d890214da4caa6f4c943e3ef7cf715b81b02263c48457d692886388

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulcan_core-1.2.2.tar.gz:

Publisher: ci-publish.yml on latchfield/vulcan-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulcan_core-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: vulcan_core-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vulcan_core-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa71f03988c5a34cd665c6f6b5b99dc16493b53e14603bfc12d27c91edbfe5e
MD5 890c0e30f84eef9d4222c87656debcd4
BLAKE2b-256 95fa5aabc20e6a1a56ab5144414e4c6f9ebe78725949571eed1ed81cedb33c46

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulcan_core-1.2.2-py3-none-any.whl:

Publisher: ci-publish.yml on latchfield/vulcan-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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