This is a demo that showcases Typesense's built-in embedding generation (available as of 0.25.0.rc60
) + vector search features using a collection of 300K HN Comments.
View it live here: hn-comments-search.typesense.org
This search experience is powered by Typesense which is a blazing-fast, open source typo-tolerant search-engine. It is an open source alternative to Algolia and an easier-to-use alternative to ElasticSearch.
This demo uses a geo-distributed 3-node Typesense cluster running on Typesense Cloud, with nodes in Oregon, Frankfurt and Mumbai.
src/
andindex.html
- contain the frontend UI components, built with Typesense Adapter for InstantSearch.jsscripts/
- contains the script to index the data into Typesense.data/
- contains a 1K sample subset of the HN comments dataset. But you can download the full dataset from the Google BigQuery marketplace.
To run this project locally, install the dependencies and run the local server:
yarn
yarn run typesenseServer
ln -s .env.sample .env
yarn run indexer
yarn start
Open http://localhost:3001 to see the app.
The app is hosted on Cloudflare Pages.
Pushing to master will deploy the app to production.