This is a demo that shows how you can use Typesense's vector search feature, to build a semantic search experience.
NOTE:
Learn more about Vector Search here: https://typesense.org/docs/0.25.0/api/vector-search.html.
The app was built using the Typesense Adapter for InstantSearch.js.
src/
andindex.html
- contain the frontend UI components.scripts/indexer
- contains the script to index the book data into Typesense.scripts/data
- contains a small sample subset of products.server
- contains the API server that generates embeddings given a query.
Index sample dataset:
npm install
npm run typesenseServer
ln -s .env.development .env
npm run indexer
Start Embedding API server:
cd server
pip install -r requirements.txt
uvicorn main:app --reload
Start FE app:
npm start
Open http://localhost:3001 to see the app.
The dataset used in this showcase is from Algolia's public set of datasets listed here: https://github.com/algolia/datasets