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

Uploaded Python 3

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.4.tar.gz
  • Upload date:
  • Size: 13.3 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.4.tar.gz
Algorithm Hash digest
SHA256 b9298eedffed931bc86f9d2549c04e0d79b1c8503a01ce2c9e368ef1a169ad76
MD5 6ea58211c1e59ca6f300ee5b76cd99f6
BLAKE2b-256 66fd7897a648dd6767f5cfaf73e1721420fe8e3d44e086a97930e693f2d82968

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prompt_collapse-0.1.3.4-py3-none-any.whl
  • Upload date:
  • Size: 32.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3ef03ef675464c78129264a7373fca70f669f2b4ead47c7e91eebfab1451331c
MD5 fce002217ebd20f6ddf2df8be6549e2b
BLAKE2b-256 3633e6b043d8a4c6f4c35c97d46eeb605b8d912e521274059677e7182e94ff0b

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