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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 26f84b5069d72f69816c1e29bd3c9fa3e11be2b70e0835dac5393d276416a1ee
MD5 10389933e3082e708cf657c77cda8b99
BLAKE2b-256 f519688a72b928f1077e0d995f917141d7215c397693af95f8afea1458ad5b2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be197e0c588bf35c44a830fea978fba979427909edcba746cfbb8bab17bb4be6
MD5 40c362bf720e310753fa451e57fc3b32
BLAKE2b-256 b924c441296b5d404065c79b83994f8948ab3d22f65f436d413c4bc7500aad29

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