Skip to content

Instantly share code, notes, and snippets.

@justinrfenn
justinrfenn / autoarchiver.js
Last active July 1, 2018 05:20
Gmail script to archive any email thread older than a specified number of days
// Note: Due to the execution timeout google has on scripts, this will only archive 1000-3000 emails.
// If set as a project trigger with a reasonable frequency, you would only have to bulk archive emails once then the script will archive your emails without timing out.
function RunArchive() {
ArchiveMail(30);
}
function ArchiveMail(threadAgeThresholdDays) {
Logger.log('Archiving threads older than %s days ago', threadAgeThresholdDays);
@justinrfenn
justinrfenn / git_directory_loader.py
Created March 31, 2023 19:16
LangChain Directory Loader that respects .gitignore files
"""Loading logic for loading documents from a git directory respecting .gitignore files."""
import logging
import fnmatch
from pathlib import Path
from typing import List, Type, Union
from langchain.docstore.document import Document
from langchain.document_loaders.base import BaseLoader
from langchain.document_loaders.html_bs import BSHTMLLoader
from langchain.document_loaders.text import TextLoader
Is hyperchat a replacement for ChatGPT?
No, hyperchat is a chat interface specifically for developers that can use ChatGPT or any other LLM for responses.
What is an LLM?
An LLM, or large language model, is a deep learning algorithm that can recognize, summarize, translate, predict and generate text or code. GPT-4 is one example.
Where can I use hyperchat?
You can interact with hyperchat from the web UI, from integrations like Slack, or from anywhere on your machine using the global keyboard.
Who started hyperchat?