Vector similarity in the browser using
pglite,codemirror, andreact- by theowith a good amount of credit due to this Supabase blog post which I swear I discovered after I started
An example of ingesting CSV data into pglite to be filtered using pgvector, in your browser
Originally written as a takehome project to create a user interface for an executive to understand the data included in data/trials.csv.
- No server, everything is done in the browser except the things done at build-time
- PostgreSQL instance (
pglite) for search (usingpgvector, though thefuzzystrmatchextension is also available) transformer.js+Supabase/gte-smallmodel for extracting embeddings from user query as well as datasetCodeMirroreditor for writing SQL (used to query the dataset)EB Garamondfor font fanciness
pnpm i && pnpm dev