String Constructor (Text-Formatting)

by lex-drl0 starssuccess

Composing prompt variants from the same text pieces with ease: • Build your "library" (dictionary) of named text chunks (sub-strings) to use it across the entire workflow. • Compile these snippets into different prompts in-place - with just one string formatting node. • Freely update the dictionary down the line - get different prompts. • Reference text chunks within each other to build dependent hierarchies of less/more detailed descriptions. • A real life-saver for regional prompting (aka area composition).

View on GitHub

Nodes (7)

Add ANY to DictStringConstructorDictAddAnyString Constructor/Format-Dict
Add String to DictStringConstructorDictAddStringString Constructor/Format-Dict
Extract String from DictStringConstructorDictExtractStringString Constructor/Format-Dict
Dict from TextStringConstructorDictFromTextString Constructor
Preview DictStringConstructorDictPreviewString Constructor/Format-Dict
String FormatterStringConstructorFormatterString Constructor
Validate DictStringConstructorValidateKeysString Constructor/Format-Dict