Skip to content

Instantly share code, notes, and snippets.

View phillonc's full-sized avatar

Phillon Morris phillonc

View GitHub Profile
@phillonc
phillonc / README_MINIMAL_PROMPT_CHAINABLE.md
Created July 24, 2024 15:17 — forked from disler/README_MINIMAL_PROMPT_CHAINABLE.md
Minimal Prompt Chainables - Zero LLM Library Sequential Prompt Chaining & Prompt Fusion

Minimal Prompt Chainables

Sequential prompt chaining in one method with context and output back-referencing.

Files

  • main.py - start here - full example using MinimalChainable from chain.py to build a sequential prompt chain
  • chain.py - contains zero library minimal prompt chain class
  • chain_test.py - tests for chain.py, you can ignore this
  • requirements.py - python requirements

Setup