portable-hnsw

(β˜… 122)

What if an HNSW index was just a file, and you could serve it from a CDN, and search it directly in the browser?

  • build_index.py
  • index.html
  • jason.css
  • LICENSE
  • poetry.lock
  • pyproject.toml
  • README.md

# Installation Guide

1. Get the code
git clone https://github.com/jasonjmcghee/portable-hnsw

Downloads the entire project code from GitHub to your computer.

cd portable-hnsw

Moves into the project folder you just downloaded.

2. Python

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
poetry install

Installs the libraries listed in pyproject.toml.

poetry run python build_index.py <path to text file> [output folder]

Runs the Python script (or module).

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation