Skip to content

Conversation

@Arshdeep54
Copy link
Contributor

HNSW implementation referenced from HNSW (Malkov & Yashunin)

Includes the following public functions :

  • Insert
  • Search
  • Delete (Soft Delete)
  • Rebuild

@Arshdeep54 Arshdeep54 self-assigned this Oct 5, 2025
@Arshdeep54 Arshdeep54 force-pushed the hnsw-index branch 5 times, most recently from e160cf5 to 3a275c3 Compare December 21, 2025 09:12
Arshdeep54 added a commit to Arshdeep54/indexium that referenced this pull request Dec 21, 2025
HNSW implementation code from my PR on sdslabs/VortexDB
sdslabs/VortexDB#43

Signed-off-by: Arshdeep54 <balarsh535@gmail.com>
@Arshdeep54 Arshdeep54 force-pushed the hnsw-index branch 3 times, most recently from f883ad4 to 9f8ca6d Compare December 27, 2025 13:54
pub(super) fn get_vec(&self, id: PointId) -> &Vec<f32> {
self.cache
.get(&id)
.unwrap_or_else(|| panic!("Vector not found in HNSW cache for id={id}"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it necessary to panic here or should it be handled as an error. Just this, else it is good to merge

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added simple error for now, will added detailed one in SNAFU implementations

Signed-off-by: Arshdeep54 <balarsh535@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants