Skip to content

Commit 62bd393

Browse files
committed
Add HNSWDiskParams
1 parent 511baf1 commit 62bd393

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/VecSim/vec_sim_common.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,22 @@ struct VecSimParams {
239239
void *logCtx; // External context that stores the index log.
240240
};
241241

242+
// Parameters for creating a disk-based vector index. Currently only HNSW Disk is supported.
243+
typedef struct VecSimHNSWDiskParams {
244+
size_t dim;
245+
VecSimType type;
246+
VecSimMetric metric;
247+
size_t M;
248+
size_t efConstruction;
249+
size_t efRuntime;
250+
size_t blockSize;
251+
bool multi;
252+
void *storage; // Opaque pointer to disk storage
253+
const char *indexName;
254+
size_t indexNameLen;
255+
void *logCtx;
256+
} VecSimHNSWDiskParams;
257+
242258
/**
243259
* The specific job types in use (to be extended in the future by demand)
244260
*/

0 commit comments

Comments
 (0)