Skip to content

Instantly share code, notes, and snippets.

View gitsaket's full-sized avatar
🏠
Working from home

Saket Bisht gitsaket

🏠
Working from home
View GitHub Profile
@gitsaket
gitsaket / README_MINIMAL_PROMPT_CHAINABLE.md
Created August 6, 2024 11:37 — 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

@gitsaket
gitsaket / countries.sql
Created September 13, 2021 05:37 — forked from ereli/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes. PostgreSQL compatible
CREATE SEQUENCE country_seq;
CREATE TABLE IF NOT EXISTS country (
id int NOT NULL DEFAULT NEXTVAL ('country_seq'),
iso char(2) NOT NULL,
name varchar(80) NOT NULL,
nicename varchar(80) NOT NULL,
iso3 char(3) DEFAULT NULL,
numcode smallint DEFAULT NULL,
phonecode int NOT NULL,