feat(c_api): add DiskANN index type support to C API#495
Open
chinaux wants to merge 2 commits into
Open
Conversation
5f285dc to
ac82e4c
Compare
Add complete DiskANN C API interfaces following existing HNSW/FTS patterns: - c_api.h: ZVEC_INDEX_TYPE_DISKANN constant, index params setter/getters, query params opaque type with CRUD (list_size/radius/is_linear/ is_using_refiner), query wiring for vector_query/group_by_vector_query/ sub_query, ZVEC_DISKANN_PARAMS convenience macro - c_api.cc: factory switch case, all function implementations with dynamic_cast type safety, to_string support - c_api_test.c: 3 standalone test functions + augmentations to 4 existing tests covering create/set/get/destroy, type-mismatch errors, NULL handling - examples/c/diskann_example.c: end-to-end example demonstrating DiskANN collection creation, batch insert, flush/index build, and search with list_size tuning Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
21c415d to
eb8d056
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add DiskANN C API interfaces