Skip to content

feat(c_api): add DiskANN index type support to C API#495

Open
chinaux wants to merge 2 commits into
alibaba:mainfrom
chinaux:feat/c_api_add_diskann
Open

feat(c_api): add DiskANN index type support to C API#495
chinaux wants to merge 2 commits into
alibaba:mainfrom
chinaux:feat/c_api_add_diskann

Conversation

@chinaux

@chinaux chinaux commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Add DiskANN C API interfaces

chinaux and others added 2 commits June 15, 2026 16:22
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>
@chinaux chinaux force-pushed the feat/c_api_add_diskann branch from 21c415d to eb8d056 Compare June 15, 2026 08:22
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.

1 participant