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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 94324d85297098f331478f143c92bfc91a112ab7903e60a48df07c1e8587b233
MD5 26db444a2e8e4af2dfec26a26c00cd9a
BLAKE2b-256 0abbfc52c78bc5fdba60887bb9142aac02decabc8d022fc6406c2141535e3887

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 32.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0972e1f7543ce2134c6c595d900a38c933a4dfb319f47cf946765514fb8e4dd2
MD5 6e5d18b526ab42b54e95f14da680c836
BLAKE2b-256 fc145f09853d77cbd12ea8a552074fb2ad1b5b76d28d8000cd0d65520c608833

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