[diskann-garnet] Update data design doc - #1328
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the diskann-garnet data design documentation to correct term descriptions and to provide more explicit key/value sizing for the data stored in Garnet.
Changes:
- Clarifies key prefixing/scratch-space expectations for Garnet operations.
- Documents key/value sizing for major term types (vectors, neighbor lists, quantized vectors, attributes, metadata, ID mappings).
- Updates internal-term descriptions (start point behavior, FSM representation, quantizer state storage).
Suppressed comments (2)
diskann-garnet/docs/data-design.md:129
- In the External ID Mapping section, "Interal" is misspelled and the note says "this key" when it refers to the value size. Also, describing IDs as a "bitstring" is misleading since these are byte strings.
*Key*: External ID bytes; this key is a variable length bitstring that the user assigned.
*Value*: Interal ID as bytes; this key is always 4 bytes in length.
diskann-garnet/docs/data-design.md:120
- Similar to other sections, this describes the external ID as a "bitstring". Since external IDs are arbitrary byte strings, using "byte string" is clearer and consistent with the rest of the document.
*Value*: External ID; this is variable length bitstring that the user assigned.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1328 +/- ##
==========================================
- Coverage 91.55% 91.55% -0.01%
==========================================
Files 522 522
Lines 99541 99541
==========================================
- Hits 91139 91133 -6
- Misses 8402 8408 +6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Copilot please check if there are any remaining discrepancies between the updated design document and code |
I checked the doc against the code. One genuine discrepancy: the Neighbor Lists section said Everything else matches the code: 4-byte internal-ID keys and the |
b003e1d to
df1ae7c
Compare
This update corrects some errors and gives specific key and value sizes for every term stored in Garnet.