Skip to content

typesense/showcase-hn-comments-semantic-search

Repository files navigation

🗞 Semantic + Keyword + Hybrid Search with HN Comments

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

Tech Stack

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.

Repo structure

Development

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.

Deployment

The app is hosted on Cloudflare Pages.

Pushing to master will deploy the app to production.