Document HyperView layout cache version migration env var
Browse files
README.md
CHANGED
|
@@ -27,6 +27,8 @@ Runtime environment variables:
|
|
| 27 |
- `HF_DATASET_SPLIT` (default: `train`)
|
| 28 |
- `EMBEDDING_ASSET_DIR` (default: `./assets`)
|
| 29 |
- `EMBEDDING_ASSET_MANIFEST` (default: `${EMBEDDING_ASSET_DIR}/manifest.json`)
|
|
|
|
|
|
|
| 30 |
- `HYPERVIEW_BIND_HOST` (preferred bind host; optional)
|
| 31 |
- `SPACE_HOST` (compat input only; used for bind only if local: `0.0.0.0`, `127.0.0.1`, `localhost`, `::`, `::1`)
|
| 32 |
- `SPACE_PORT` (primary port source)
|
|
@@ -36,6 +38,8 @@ Port precedence: `SPACE_PORT` > `PORT` > `7860`.
|
|
| 36 |
|
| 37 |
On Hugging Face Spaces, `SPACE_HOST` may be injected as `<space-subdomain>.hf.space`. That domain must not be used as a local bind socket, so the runtime falls back to `0.0.0.0` unless `HYPERVIEW_BIND_HOST` is explicitly set.
|
| 38 |
|
|
|
|
|
|
|
| 39 |
## Important Note
|
| 40 |
|
| 41 |
HyperView similarity search currently uses cosine distance in storage backends. The Lorentz panel in this Space is intended for embedding-space visualization and geometry-aware comparison rather than canonical Lorentz-distance retrieval scoring.
|
|
|
|
| 27 |
- `HF_DATASET_SPLIT` (default: `train`)
|
| 28 |
- `EMBEDDING_ASSET_DIR` (default: `./assets`)
|
| 29 |
- `EMBEDDING_ASSET_MANIFEST` (default: `${EMBEDDING_ASSET_DIR}/manifest.json`)
|
| 30 |
+
- `HYPERVIEW_DEFAULT_PANEL` (default: `spherical3d`; enables Sphere 3D as initial scatter panel)
|
| 31 |
+
- `HYPERVIEW_LAYOUT_CACHE_VERSION` (default: `v6`; bumps dock layout localStorage key to invalidate stale cached panel state)
|
| 32 |
- `HYPERVIEW_BIND_HOST` (preferred bind host; optional)
|
| 33 |
- `SPACE_HOST` (compat input only; used for bind only if local: `0.0.0.0`, `127.0.0.1`, `localhost`, `::`, `::1`)
|
| 34 |
- `SPACE_PORT` (primary port source)
|
|
|
|
| 38 |
|
| 39 |
On Hugging Face Spaces, `SPACE_HOST` may be injected as `<space-subdomain>.hf.space`. That domain must not be used as a local bind socket, so the runtime falls back to `0.0.0.0` unless `HYPERVIEW_BIND_HOST` is explicitly set.
|
| 40 |
|
| 41 |
+
The runtime also patches HyperView's dock-layout cache key from legacy `hyperview:dockview-layout:v5` to `hyperview:dockview-layout:${HYPERVIEW_LAYOUT_CACHE_VERSION}` to force migration away from stale panel layouts after UI/layout changes. For future migrations, increment `HYPERVIEW_LAYOUT_CACHE_VERSION` (for example, `v7`) without changing code.
|
| 42 |
+
|
| 43 |
## Important Note
|
| 44 |
|
| 45 |
HyperView similarity search currently uses cosine distance in storage backends. The Lorentz panel in this Space is intended for embedding-space visualization and geometry-aware comparison rather than canonical Lorentz-distance retrieval scoring.
|