Skip to content

Instantly share code, notes, and snippets.

View mongodben's full-sized avatar
👨‍🎤
git up, git out, git something

Ben Perlmutter mongodben

👨‍🎤
git up, git out, git something
View GitHub Profile
@kasperpeulen
kasperpeulen / README.md
Last active March 14, 2025 13:39
How to pretty-print JSON using Dart.
@sindresorhus
sindresorhus / esm-package.md
Last active October 18, 2025 15:59
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@yoavg
yoavg / LLMs.md
Last active October 16, 2025 07:03

Some remarks on Large Language Models

Yoav Goldberg, January 2023

Audience: I assume you heard of chatGPT, maybe played with it a little, and was imressed by it (or tried very hard not to be). And that you also heard that it is "a large language model". And maybe that it "solved natural language understanding". Here is a short personal perspective of my thoughts of this (and similar) models, and where we stand with respect to language understanding.

Intro

Around 2014-2017, right within the rise of neural-network based methods for NLP, I was giving a semi-academic-semi-popsci lecture, revolving around the story that achieving perfect language modeling is equivalent to being as intelligent as a human. Somewhere around the same time I was also asked in an academic panel "what would you do if you were given infinite compute and no need to worry about labour costs" to which I cockily responded "I would train a really huge language model, just to show that it doesn't solve everything!". We

@hweller1
hweller1 / rrf_via_unionWith.py
Last active February 23, 2024 09:40
Perform reciprocal rank fusion using $push to expose rank, and $unionWith and $group to join result sets of vector search and full text search
import pymongo
import time
from sentence_transformers import SentenceTransformer
from companies import names # list of company names in a separate python file
### DESCRIPTION
"""
Search against the Sphere dataset using vector search results fused with full text search results via reciprocal rank fusion.