This explores the midpoint of embeddings using centroid, reciprocal rank fusion, and more.
The game is live at labs.convex.dev/mid-embeddings.
npm i
npm run setup
npx @convex-dev/auth
npx convex env set LLM_API_KEY # OpenAI API Key
npm run dev
Make a GitHub OAuth app:
https://github.com/organizations/your-org-here/settings/applications
Set the callback to https://your-project-123.convex.site/api/auth/callback/github
where you find your-project-123 in .env.local.
npx convex env set AUTH_GITHUB_ID # GitHub OAuth ID
npx convex env set AUTH_GITHUB_SECRET # GitHub OAuth Secret
To configure different authentication methods, see Configuration in the Convex Auth docs.
Here are some links you can use to seed words:
750 feelings (like "amazed"):
Top 250 movies according to imdb, with the text of "The movie X":
US States:
US Presidents:
10k common words:
Omitting swear words and words shorter than 3 characters:
The same, with at least 4 characters:
Words from Google's 10k most common words, de-duping on stemmed words, without swears, at least 3 characters:
Another great resource: