Skip to content

Commit

Permalink
add check for .enc extension to support encryption (#467)
Browse files Browse the repository at this point in the history
* add check for .enc extension to support encryption

* check rotation_matrix file in file blobs
  • Loading branch information
hliu18 committed Oct 4, 2023
1 parent fbcdb4b commit aa6e33a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,13 @@ void FixedChunkPQTable::load_pq_centroid_bin(const char *pq_table_file, size_t n
diskann::cout << "Loaded PQ Pivots: #ctrs: " << NUM_PQ_CENTROIDS << ", #dims: " << this->ndims
<< ", #chunks: " << this->n_chunks << std::endl;

if (file_exists(rotmat_file))
{
#ifdef EXEC_ENV_OLS
if (files.fileExists(rotmat_file))
{
diskann::load_bin<float>(files, rotmat_file, (float *&)rotmat_tr, nr, nc);
#else
if (file_exists(rotmat_file))
{
diskann::load_bin<float>(rotmat_file, rotmat_tr, nr, nc);
#endif
if (nr != this->ndims || nc != this->ndims)
Expand Down

0 comments on commit aa6e33a

Please sign in to comment.