Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/typesense/showcase-hn-comments-semantic-search

Semantic Search + Keyword Search + Hybrid Search + Filtering + Faceting on 300K HN Comments
https://github.com/typesense/showcase-hn-comments-semantic-search

hybrid-search semantic-search vector-search

Last synced: 4 days ago
JSON representation

Semantic Search + Keyword Search + Hybrid Search + Filtering + Faceting on 300K HN Comments

Awesome Lists containing this project

README

        

# 🗞 Semantic + Keyword + Hybrid Search with HN Comments

This is a demo that showcases [Typesense's](https://github.com/typesense/typesense) 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](https://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

- `src/` and `index.html` - contain the frontend UI components, built with Typesense Adapter for InstantSearch.js
- `scripts/` - 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](https://console.cloud.google.com/marketplace/product/y-combinator/hacker-news).

## Development

To run this project locally, install the dependencies and run the local server:

```sh
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](https://pages.cloudflare.com).

Pushing to master will deploy the app to production.