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.2.tar.gz (12.8 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.2-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.2.tar.gz
  • Upload date:
  • Size: 12.8 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.2.tar.gz
Algorithm Hash digest
SHA256 711311a3c75d010e89666dcc1c8f18cfc10b192a97f661aab3ea08734116164c
MD5 beb7bfacd9173e0a2b63521fc95e1e33
BLAKE2b-256 09adec92653618760ae60323f5a0fb94030b63891f57d3a7e79290ca861fb526

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4f3e9df074e0663e5c777d1b0d9136514f24834f3747444d586a6a7879189f5
MD5 34cb28da30c25420a96d8d702e3c8d2b
BLAKE2b-256 89a8ced78660930be0c79df52703696b070c1ecca7b17232b177d0a46d85fa9b

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