Skip to main content

A prompt generation system that manages relationships between prompt components to maintain logical consistency

Project description

PromptCollapse

A prompt generation system that manages relationships between prompt components to maintain logical consistency. Integrates with ComfyUI as a custom node.

Overview

PromptCollapse builds prompts by selecting components based on their inferred relationships. Each component has its own set of parameters that are only valid within the component execution context. Component might be purely abstract, meaning that it won't produce any prompt fragments at all, but would coordinate other components instead.

Usage

A minimalistic example can be found in "components/sky.yaml".

ComfyUI Integration

The system provides a custom node with the following inputs:

  • Prompt: Initial component tags (comma-separated)
  • Components Directory Path: Component library directory
  • Reload on Generation: Toggle component reloading
  • Seed: Random seed for component selection

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

prompt_collapse-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

prompt_collapse-0.1.0-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

Details for the file prompt_collapse-0.1.0.tar.gz.

File metadata

  • Download URL: prompt_collapse-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.10-2-MANJARO

File hashes

Hashes for prompt_collapse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d8185d185bd190e01caa934880f180f171a3a92cc79fcab281e5e2a464d1acdc
MD5 1c835ccbad2867cd26eb66779da55836
BLAKE2b-256 86849fb47e9f98b75b0312523d7f7a911ed17153063620034c9faa77a00dd205

See more details on using hashes here.

File details

Details for the file prompt_collapse-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: prompt_collapse-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Linux/6.11.10-2-MANJARO

File hashes

Hashes for prompt_collapse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 556b0b30f2aee99bbf3fe1f0f9a5a8a6011e107385ffc2213245edfec0638907
MD5 ae4984ae7ac0699687e16b9e065b53ff
BLAKE2b-256 50e6418dfbe5440842ff449645d485c6b715978b40a517bc5a5672a80b58bafc

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