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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 597a5abceba8905bf78de5a99a55627ada61b60085b61536af81ecf802c28a19
MD5 665e56ce71d793667ccbc82be7242ed0
BLAKE2b-256 1cfab8e793034be11f8aea1a9d825a6a2aef2711bc7c3187f3b69556077de209

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91613bfebf53252f3f9d3008eed10d53245f3686c715f47a61b588f03e39cdaf
MD5 523dda0cd560106fc090deb0787e54d0
BLAKE2b-256 b56eb225e932ec040ec10ce6d37af9311b9aacc2dee975f353102ba422f88864

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