Skip to content

Instantly share code, notes, and snippets.

View lightshifted's full-sized avatar
🔭
Exploring

Jason Wheeler lightshifted

🔭
Exploring
  • AI Engineer
  • Grand Rapids, MI
View GitHub Profile
@kylemcdonald
kylemcdonald / function-calling.ipynb
Created June 14, 2023 01:10
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@python273
python273 / app.py
Last active November 16, 2024 20:35
Flask Streaming Langchain Example
import os
os.environ["OPENAI_API_KEY"] = ""
from flask import Flask, Response, request
import threading
import queue
from langchain.chat_models import ChatOpenAI
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.schema import AIMessage, HumanMessage, SystemMessage
@ASRagab
ASRagab / environment-tf16.yml
Last active November 16, 2020 02:01
Fourth Brain Conda Environments
name: fourth-brain-tf16
channels:
- defaults
- conda-forge
dependencies:
- pip
- tensorflow=1.6
- keras=2.2.4
- seaborn
- pillow
\documentclass[8pt]{article}
\usepackage[usenames]{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
%\usepackage[utf8]{inputenc} %useful to type directly diacritic characters
\begin{document}
\begin{align*}
\text{Vanilla SGD} \\
w_{t+1} &= w_t - \alpha \frac{\partial L}{\partial w_t} \\
\text{Momentum} \\