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 thefuzzystrmatch
extension is also available) transformer.js
+Supabase/gte-small
model for extracting embeddings from user query as well as datasetCodeMirror
editor for writing SQL (used to query the dataset)EB Garamond
for font fanciness
pnpm i && pnpm dev