Skip to content

DEV: docs for HNSW compression in 8.12 - #4106

Merged
dwdougherty merged 2 commits into
feature-oss-8.12from
DOC-6978
Sep 24, 2026
Merged

dwdougherty merged 2 commits into
feature-oss-8.12from
DOC-6978

Conversation

@dwdougherty

@dwdougherty dwdougherty commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

This is a Redis 8.12 feature.


Note

Low Risk
Documentation-only changes with no product code or runtime behavior modified in this PR.

Overview
Documents Redis 8.12 HNSW vector compression on the vector search concepts page.

The HNSW optional attributes table now includes COMPRESSION (currently SQ8) and TRAINING_THRESHOLD, with constraints called out for FLOAT32/FLOAT16, in-memory indexes only, and disk-based indexes ignoring these settings.

A new HNSW vector compression section explains how SQ8 training and migration work, what FT.INFO exposes for compressed fields, reload/replication behavior (retrain from source vectors; rankings may differ), and adds an FT.CREATE example using COMPRESSION SQ8.

The memory consumption section notes that SQ8 stores one byte per dimension on HNSW fields regardless of vector TYPE.

Reviewed by Cursor Bugbot for commit 90023e6. Bugbot is set up for automated code reviews on this repo. Configure here.

@dwdougherty
dwdougherty requested a review from a team September 24, 2026 14:50
@dwdougherty dwdougherty self-assigned this Sep 24, 2026
@dwdougherty dwdougherty added dev oss Redis Open Source labels Sep 24, 2026
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

DOC-6978

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Redis Memory

Found 9 related items from repository history (4 new this commit):

Memory updated at 90023e6

@andy-stark-redis andy-stark-redis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One tiny (ignorable) question, otherwise LGTM.

Clarified that disk-based vector indexes ignore both COMPRESSION and TRAINING_THRESHOLD.
@dwdougherty

Copy link
Copy Markdown
Collaborator Author

Thanks for the review and suggestion, @andy-stark-redis.

@dwdougherty
dwdougherty merged commit 4b62682 into feature-oss-8.12 Sep 24, 2026
98 checks passed
@dwdougherty
dwdougherty deleted the DOC-6978 branch September 24, 2026 15:47
dwdougherty added a commit that referenced this pull request Nov 23, 2026
* DEV: (feat/cmds) docs for CMS enhancements in 8.12 (#3953)

* DEV: (feat/cmds) docs for blessed keys in 8.12 (#4012)

* Document aof_cmd_duration in INFO persistence (#4006)

Co-authored-by: Cursor <[email protected]>

* DEV: docs for HNSW compression in 8.12 (#4106)

* DEV: docs for HNSW compression in 8.12

* Apply review suggestion

Clarified that disk-based vector indexes ignore both COMPRESSION and TRAINING_THRESHOLD.

* DEV: (feat) docs for streams observability metrics MVP in 8.12 (#4140)

* DEV: (feat) docs for streams observability metrics MVP in 8.12

* Update content/develop/data-types/streams/_index.md

Co-authored-by: mich-elle-luna <[email protected]>

---------

Co-authored-by: mich-elle-luna <[email protected]>

* DEV: (cmds) JSON: auto-create deep paths in 8.12 (#4257)

* DEV: (cmds) JSON: auto-create deep paths in 8.12

* Apply review comments.

Co-authored-by: andy-stark-redis <[email protected]>

---------

Co-authored-by: andy-stark-redis <[email protected]>

* DEV: (cmds) docs for new INFO command streams section (#4274)

* DEV: (cmds) docs for new INFO command streams section

* Apply review comments.

Co-authored-by: andy-stark-redis <[email protected]>

---------

Co-authored-by: andy-stark-redis <[email protected]>

* OP: add docs for named TLS in 8.12 (#4289)

* Document native Roaring bitmaps for Redis 8.12 (#3715)

* Document native Roaring bitmaps

* Keep Roaring details in bitmap guide

* Target Roaring bitmap docs to Redis 8.12

* Clarify native bitmap replication docs

Signed-off-by: Antonio Viggiano <[email protected]>

* Document native bitmap integer arrays and benchmark methodology

* Clarify bitmap rank argument validation order

* Regenerate bitmap command references and clarify internal replay

* Document internal bitmap replay commands

* Document consolidated bitmap integer-array command

* Clarify the consolidated bitmap integer-array command

* Document bitmap range validation before key lookup

* Change warning format in bitmaps documentation

Updated warning syntax for Roaring bitmap creation instructions.

---------

Signed-off-by: Antonio Viggiano <[email protected]>
Co-authored-by: David Dougherty <[email protected]>

* DEV: update modules API page for 8.12 release (#4306)

* DEV: update modules API page for 8.12 release

* Apply batched suggestions from code review

Co-authored-by: mich-elle-luna <[email protected]>

---------

Co-authored-by: mich-elle-luna <[email protected]>

* Document BITRANGEINTARRAY offset ranges, ZEROS, and pagination (#4304)

* Document negative bitmap ranks and the shared range limit

* Document bitmap range validation after key lookup

* Document uncapped bitmap enumeration and range truncation

* Document conditional string reads for BITRANGEINTARRAY

* Document bitmap value selection, offset ranges, and LIMIT pagination

* Align BITRANGEINTARRAY docs with merged ZEROS syntax

* DEV: (cmds) docs for set member expiration in 8.12 (#4337)

* DEV: (cmds) docs for set member expiration in 8.12

* Apply changes from review.

* Apply changes from upstream merge commit

* DEV: add redis-8-12-commands.md page (#4421)

* DEV: add 8.12 what's new page (#4422)

* OP: update OSS version management page for 8.12 (#4423)

* DEV: update data/commands_core.json from 8.12 GA build (#4436)

* Remove 8.12 release notes; point to redis/redis repo

* Document atomic sorted-set moves and BYSCORE batch claims (#4522)

* Document sorted-set move batches and destination conditions

* Document positive COUNT validation for sorted-set moves

* Document the ZMOVEMEMBER MEMBERS block

* Clarify final BZMOVE behavior after core merge

* Add new sorted set cmds to summary page

* Update module API page

* Update what's new for features added in 8.12-rc3

* Add compat. info to new sorted set commands

* Modify ACL categories for two bless commands

* Update config page to point to 8.12 config

---------

Signed-off-by: Antonio Viggiano <[email protected]>
Co-authored-by: yinon-bit <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: mich-elle-luna <[email protected]>
Co-authored-by: andy-stark-redis <[email protected]>
Co-authored-by: Antonio Viggiano <[email protected]>
Co-authored-by: fcenedes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev oss Redis Open Source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants