Skip to content

Instantly share code, notes, and snippets.

View labeveryday's full-sized avatar
🎯
Focusing

Du'An Lightfoot labeveryday

🎯
Focusing
View GitHub Profile
@jvelezmagic
jvelezmagic / main.py
Last active March 25, 2024 09:46
QA Chatbot streaming with source documents example using FastAPI, LangChain Expression Language, OpenAI, and Chroma.
"""QA Chatbot streaming using FastAPI, LangChain Expression Language , OpenAI, and Chroma.
Features
--------
- Persistent Chat Memory:
Stores chat history in a local file.
- Persistent Vector Store:
Stores document embeddings in a local vector store.
- Standalone Question Generation:
Rephrases follow-up questions to standalone questions in their original language.
@mjmenger
mjmenger / keylight.http
Last active September 11, 2023 11:56
elgato key light REST endpoints
# simple requests for use with the VSCode Rest Client extension
###
GET http://{{$dotenv lightaddress}}:{{$dotenv lightport}}/elgato/accessory-info
###
# on or off
PUT http://{{$dotenv lightaddress}}:{{$dotenv lightport}}/elgato/lights
@subfuzion
subfuzion / curl.md
Last active May 16, 2024 18:04
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.