Installation
vmfstream needs Python 3.10 or later. The memory itself depends only on NumPy.
pip install vmfstreamTwo extras add optional parts:
| Extra | Adds | Installs |
|---|---|---|
encode |
vmfstream.encode.SentenceEncoder, sentence embeddings for raw texts |
sentence-transformers (and PyTorch) |
viz |
vmfstream.viz: timelines and the 3-D sphere |
matplotlib, umap-learn |
all |
both |
pip install "vmfstream[all]"If you already have embeddings from any sentence encoder, you do not need the encode extra: the memory reads arrays.
With uv, uv add vmfstream (or uv add "vmfstream[all]") adds it to a project. The releases are on PyPI; the latest sources, from a clone of the repository, with pip install -e ".[all]".
Development
Section titled “Development”The repository uses uv. uv sync --all-extras builds the environment; uv run pytest runs the tests. The documentation lives in docs/ (Starlight): scripts/run_examples.py runs the code cells of docs/examples/ and records their output, scripts/build_demo.py builds the figures of the guides, scripts/build_explorer.py the explorer (on the cluster, scripts/build_explorer.sh), and npm run build in docs/ builds the site.