Skip to content

Instantly share code, notes, and snippets.

View rjtavares's full-sized avatar

Ricardo Tavares rjtavares

View GitHub Profile
import llm
import sqlite_utils
import numpy as np
from scipy.cluster.hierarchy import linkage, cut_tree
from collections import defaultdict
collection_path = "your path here"
db = sqlite_utils.Database(collection_path)
collection = llm.Collection("pocket", db, create=False)