useSqlite

Nextjs.ai provides a useSql hook which allows you to mount a sql database as a virtual file. This SQL database comes with a cosineSimilarity function which makes it a great candidate for storing vectors that are able to be queried from a static webpage running on github pages.

Last updated