Module hnsw_rs::datamap

source ·
Expand description

This module provides a bidirectional link between a file in the format used for the dump of Data vectors filling the Hnsw structure. We mmap the file and provide - a Hashmap from DataId to address - an interface for retrieving just data vectors loaded in the hnsw structure. - an interface for creating a Hnsw structure from the vectors stored in file

Structs

  • This structure uses the data part of the dump of a Hnsw structure to retrieve the data. The data is access via a mmap of the data file, so memory is spared at the expense of page loading.