Skip to content

Instantly share code, notes, and snippets.

@cian0
cian0 / dbtmacroscheatsheet.md
Last active September 30, 2025 13:54
DBT Macros cheatsheel
@cian0
cian0 / LLM Model Utilization with Langchain.md
Last active June 5, 2023 14:06
LLM Model Utilization with Langchain

LLM Model Utilization with Langchain

Langchain

At its core, LangChain is a framework built around LLMs. We can use it for chatbots, Generative Question-Answering (GQA), summarization, and much more.

The core idea of the library is that we can “chain” together different components to create more advanced use cases around LLMs.

Feature list: https://langchain.com/features.html

# original post: https://rentry.org/sd-loopback-wave
# original author: https://rentry.org/AnimAnon
import os
import platform
import numpy as np
from tqdm import trange
import math
import subprocess as sp
import string
import random
@cian0
cian0 / app.py
Created January 17, 2023 01:48 — forked from jflam/app.py
Citations needed
# To run you'll need some secrets:
# 1. SERPAPI_API_KEY secret in env var - get from https://serpapi.com/
# 2. OPENAI_API_KEY secret in env var - get from https://openai.com
import streamlit as st
import json, os
from langchain.prompts import PromptTemplate
from langchain.llms import OpenAI
from serpapi import GoogleSearch