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.3.5.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.3.5-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.5.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.3.5.tar.gz
Algorithm Hash digest
SHA256 c2c5e109a1ee803fbf4ac4c3c7be7beaa0fe76ad7cadbc0c1b93e80a6a8645a3
MD5 c09af6c02ea6ebbbbb5d16caeebf160e
BLAKE2b-256 3015a31fc4f2ba0e9ca2843dac9682470d85dd8c90adbeeaf4c157f2cd962a8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 32.9 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.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3822f2c21a2425e266d953c637f6d4c3da69b3dc6fedc6ef1abba494eb968b81
MD5 6267b08fb86f3e1c795f0fa3cd4b8a4e
BLAKE2b-256 4c1c89ec820098e93b33d1ffa875aae829872a5910624378018cc1f08cc79a05

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