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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.tar.gz
  • Upload date:
  • Size: 13.2 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.tar.gz
Algorithm Hash digest
SHA256 b246cb82e4cd57d2838fbe3a8a525d9440aa71945c66ca0829973d7484423850
MD5 7e13b088d242a574288553cf74858c76
BLAKE2b-256 c1cf55de457683d12d08e40a877fd16c01896bbc1f9283aaa10c5398fbe9e64f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 32.0 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-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a419360f9ffd1060d1f4cd8550b101fb6ecd80ce98968abd803aa0d4f41bc9
MD5 fa1e0b15e394d20b1550be9db4c2be3b
BLAKE2b-256 5d2d452f267190f29279d6405c6541b875bc3eb0764bb5a126a18fda8fe29c2b

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