Skip to content

Instantly share code, notes, and snippets.

View soderalohastrom's full-sized avatar

Scott Soderstrom soderalohastrom

View GitHub Profile
@soderalohastrom
soderalohastrom / README_MINIMAL_PROMPT_CHAINABLE.md
Created April 30, 2025 07:30 — 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

@soderalohastrom
soderalohastrom / llm_factory.py
Created August 17, 2024 14:03 — forked from daveebbelaar/llm_factory.py
LLM Factory with Instructor
from typing import Any, Dict, List, Type
import instructor
from anthropic import Anthropic
from config.settings import get_settings
from openai import OpenAI
from pydantic import BaseModel, Field
class LLMFactory:
@soderalohastrom
soderalohastrom / index.html
Last active August 29, 2015 14:03 — forked from anonymous/Demo-Flexbox-1.markdown
Flexbox for Locations page
<div class="block1">
<ul class="flex-container">
<li class="flex-item">1</li>
<li class="flex-item">2</li>
<li class="flex-item">3</li>
<li class="flex-item">4</li>
<li class="flex-item">5</li>
</ul>
</div>