Skip to content

Instantly share code, notes, and snippets.

View jonathanlyon's full-sized avatar

Jonathan Lyon jonathanlyon

View GitHub Profile
@jonathanlyon
jonathanlyon / README_MINIMAL_PROMPT_CHAINABLE.md
Created July 16, 2024 11:25 — 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