3 ms·
how do you say, implement full-text search in a local first manner? How about vector search? (don't even know if it's a thing yet, sounds possible these days).
by nsonha 2y ago
how do you say, implement full-text search in a local first manner? How about vector search? (don't even know if it's a thing yet, sounds possible these days). Imagine saving a local copy of a docs site (a sizable set of pages) and have search and stuff working perfectly
- oneeyedpigeon 2y agoBuild the index as a static file and query it using js? This has been my approach so far — admittedly, this isn't with millions of pages, but I'll continue to use it for as long as it works. When hosted on the internet, the search is still blazingly fast, way better than most other sites I come across.
- VenturingVole 2y agoFor a very similar scenario I'm currently looking to use PGlite: https://pglite.dev/ https://pglite.dev/ which is a 3MB WASM build of Postgres which also includes pgvector.
- arccy 2y agostuff like https://lunrjs.com/ https://lunrjs.com/ works
- nsonha 2y agoCan it index images by semantic, that is what vector search can do