A library for efficient similarity search and clustering of dense vectors.
825 matches across 15 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_local_search_quantizer.py | 183 | def test_update_codebooks_with_double(self): |
| LOW | tests/test_local_search_quantizer.py | 206 | def test_compute_binary_terms(self): |
| LOW | tests/test_local_search_quantizer.py | 485 | def test_index_accuracy_reconstruct(self): |
| LOW | tests/test_local_search_quantizer.py | 491 | def test_index_accuracy_cqint(self): |
| LOW | tests/test_fast_scan_ivf.py | 203 | def test_by_residual_no_precomputed(self): |
| LOW | tests/test_fast_scan_ivf.py | 255 | def test_qloss_no_residual_ip(self): |
| LOW | tests/test_fast_scan_ivf.py | 258 | def test_qloss_by_residual_ip(self): |
| LOW | tests/test_fast_scan_ivf.py | 316 | def test_equiv_pq_encode_decode(self): |
| LOW | tests/test_fast_scan_ivf.py | 401 | def test_no_residual_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 404 | def test_by_residual_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 407 | def test_no_residual_ip_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 410 | def test_by_residual_ip_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 413 | def test_no_residual_odd_dim_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 416 | def test_by_residual_odd_dim_single_query(self): |
| LOW | tests/test_fast_scan_ivf.py | 1037 | def test_fastscan_defaults_roundtrip(self): |
| LOW | tests/test_fast_scan_ivf.py | 1050 | def test_fastscan_max_lists_num_caps_probes(self): |
| LOW | tests/test_fast_scan_ivf.py | 1069 | def test_fastscan_ensure_topk_full_fills_heap(self): |
| LOW | tests/test_fast_scan_ivf.py | 1087 | def test_fastscan_ensure_topk_full_with_restrictive_selector(self): |
| LOW | tests/test_fast_scan_ivf.py | 1108 | def test_fastscan_ensure_topk_full_multi_query_works(self): |
| LOW | tests/test_fast_scan_ivf.py | 1133 | def test_fastscan_range_honors_max_empty_result_buckets(self): |
| LOW | tests/test_fast_scan_ivf.py | 1169 | def test_fastscan_fields_exposed(self): |
| LOW | tests/test_contrib.py | 318 | def test_index_pretransformed(self): |
| LOW | tests/test_contrib.py | 467 | def test_range_search_preassigned_coarse_dis_none_matches_zeros(self): |
| LOW | tests/test_contrib.py | 834 | def test_ondisk_merge_with_shift_ids(self): |
| LOW | tests/test_graph_based.py | 63 | def test_hnsw_unbounded_queue(self): |
| LOW | tests/test_graph_based.py | 232 | def test_add_nan_vector_to_ivf_hnsw(self): |
| LOW | tests/test_graph_based.py | 452 | def test_nsg_supports_pre_built_knn_graph(self): |
| LOW | tests/test_graph_based.py | 461 | def test_nsg_with_pre_built_knn_graph_throws_when_rebuilding_via_add(self): |
| LOW | tests/test_graph_based.py | 481 | def test_nsg_rebuild_throws_with_pre_built_knn_graph(self): |
| LOW | tests/test_clustering_initialization.py | 23 | def verify_centroids_from_dataset(test_case, centroids, dataset): |
| LOW | tests/test_clustering_initialization.py | 63 | def test_initialization_methods(self): |
| LOW | tests/test_clustering_initialization.py | 123 | def test_with_existing_centroids(self): |
| LOW | tests/test_super_kmeans.py | 14 | def test_train_rejects_too_few_points(self): |
| LOW | tests/test_super_kmeans.py | 20 | def test_objective_decreases_monotonically(self): |
| LOW | tests/test_super_kmeans.py | 35 | def test_pruned_iter_assignments_close_to_vanilla(self): |
| LOW | tests/test_super_kmeans.py | 56 | def test_pruning_rate_in_expected_range(self): |
| LOW | tests/test_super_kmeans.py | 77 | def test_pdx_offset_correct_for_unaligned_y_batch(self): |
| LOW | tests/test_super_kmeans.py | 132 | def test_cluster_splitting_with_many_duplicates(self): |
| LOW | tests/test_super_kmeans.py | 159 | def test_train_populates_kmeans_surface(self): |
| LOW | tests/test_super_kmeans.py | 177 | def test_final_obj_matches_vanilla_kmeans(self): |
| LOW | tests/test_svs_py.py | 446 | def test_svs_range_search_selected(self): |
| LOW | tests/test_svs_py.py | 450 | def test_svs_add_search_remove_interface(self): |
| LOW | tests/test_svs_py.py | 454 | def test_svs_batch_operations(self): |
| LOW | tests/test_svs_py.py | 629 | def test_svs_leanvec_ood_training(self): |
| LOW | tests/test_svs_py.py | 634 | def test_svs_leanvec_ood_training_smaller(self): |
| LOW | tests/test_svs_py.py | 637 | def test_svs_leanvec_ood_training_wrong_dim(self): |
| LOW | tests/test_svs_py.py | 642 | def test_svs_leanvec_ood_training_wrong_type(self): |
| LOW | tests/test_svs_py.py | 980 | def test_ivf_leanvec_ood_training(self): |
| LOW | tests/test_svs_py.py | 987 | def test_ivf_leanvec_ood_training_smaller_queries(self): |
| LOW | tests/test_svs_py.py | 993 | def test_ivf_leanvec_ood_training_wrong_dim(self): |
| LOW | tests/test_svs_py.py | 1000 | def test_ivf_leanvec_ood_training_wrong_type(self): |
| LOW | tests/test_svs_py.py | 1008 | def test_ivf_leanvec_ood_search(self): |
| LOW | tests/test_svs_py.py | 1155 | def test_static_ivf_add_throws(self): |
| LOW | tests/test_svs_py.py | 1163 | def test_static_ivf_remove_throws(self): |
| LOW | tests/test_svs_py.py | 1172 | def test_static_ivf_serialization(self): |
| LOW | tests/test_svs_py.py | 1232 | def test_static_ivf_lvq_train_search(self): |
| LOW | tests/test_svs_py.py | 1242 | def test_static_ivf_lvq_add_throws(self): |
| LOW | tests/test_svs_py.py | 1249 | def test_static_ivf_lvq_serialization(self): |
| LOW | tests/test_svs_py.py | 1284 | def test_static_ivf_leanvec_train_search(self): |
| LOW | tests/test_svs_py.py | 1294 | def test_static_ivf_leanvec_add_throws(self): |
| 262 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # @lint-ignore-every LICENSELINT |
| LOW | tutorial/python/11-SVS.py | 1 | # Portions Copyright (c) Meta Platforms, Inc. and affiliates. |
| LOW | tests/test_fastscan_filter.cpp | 1 | /* |
| LOW | tests/test_svs.cpp | 21 | * limitations under the License. |
| LOW | tests/test_extra_distances.py | 141 | ) |
| LOW | tests/test_hnsw.cpp | 1 | /* |
| LOW | tests/test_transfer_invlists.cpp | 1 | /* |
| LOW | tests/test_svs_py.py | 1 | # Portions Copyright (c) Meta Platforms, Inc. and affiliates. |
| LOW | tests/test_ivf_index.cpp | 1 | /* |
| LOW | tests/test_distances_dispatch.cpp | 1 | /* |
| LOW | tests/test_distances_dispatch.cpp | 21 | // * Functions returning an integer (fvec_L2sqr_ny_nearest's chosen |
| LOW | tests/test_ivf_early_termination.cpp | 1 | /* |
| LOW | tests/test_omp_exception_safety.cpp | 1 | /* |
| LOW | tests/test_omp_exception_safety.cpp | 381 | std::vector<idx_t> labels(1); |
| LOW | tests/test_mmap.cpp | 1 | /* |
| LOW | tests/test_scalar_quantizer.cpp | 1 | /* |
| LOW | tests/test_custom_result_handler.cpp | 1 | /* |
| LOW | tests/test_read_index_deserialize.cpp | 1 | /* |
| LOW | tests/test_read_index_deserialize.cpp | 21 | #include <faiss/IndexBinaryHNSW.h> |
| LOW | tests/test_read_index_deserialize.cpp | 161 | // whose AdditiveQuantizer has M=10 but nbits vector has only 1 element. |
| LOW | tests/test_read_index_deserialize.cpp | 181 | // codebooks (empty vector is fine) |
| LOW | tests/test_read_index_deserialize.cpp | 221 | push_fourcc(buf, "Imiq"); |
| LOW | tests/test_read_index_deserialize.cpp | 421 | // IndexLattice payloads whose r2 exceeds the limit, separately from |
| LOW | tests/test_read_index_deserialize.cpp | 801 | // Test: read_binary_multi_hash_map with crafted ilsz values that sum to |
| LOW | tests/test_read_index_deserialize.cpp | 1221 | // Test: IndexProductResidualQuantizer codes vector size mismatch. |
| LOW | tests/test_read_index_deserialize.cpp | 3641 | } |
| LOW | tests/test_read_index_deserialize.cpp | 4281 | expect_read_throws_with(buf, "fourcc"); |
| LOW | faiss/index_factory.cpp | 21 | #include <faiss/Index2Layer.h> |
| LOW | faiss/index_factory.cpp | 41 | #include <faiss/IndexPQFastScan.h> |
| LOW | faiss/IndexFastScan.cpp | 1 | /* |
| LOW | faiss/IndexHNSW.h | 41 | // When set to false, level 0 in the knn graph is not initialized. |
| LOW | faiss/IndexHNSW.cpp | 1 | /* |
| LOW | faiss/IndexHNSW.cpp | 21 | |
| LOW | faiss/IndexFlat.cpp | 1 | /* |
| LOW | faiss/IndexFlat.cpp | 841 | |
| LOW | faiss/AutoTune.cpp | 21 | |
| LOW | faiss/IndexIVFPQ.cpp | 21 | |
| LOW | faiss/index_io.h | 121 | // When nonzero, deserialization rejects loop-driving fields (nlist, |
| LOW | faiss/index_io.h | 141 | // When nonzero, deserialization rejects IndexLattice payloads whose |
| LOW | faiss/IndexBinaryIVF.cpp | 21 | #include <faiss/IndexLSH.h> |
| LOW | faiss/SuperKMeans.h | 1 | /* |
| LOW | faiss/IndexIVFFlatPanorama.h | 21 | /// IDEA: |
| LOW | faiss/IndexIVFRaBitQFastScan.cpp | 1 | /* |
| LOW | faiss/SuperKMeans.cpp | 1 | /* |
| LOW | faiss/SuperKMeans.cpp | 21 | #include <faiss/impl/AdSampling.h> |
| LOW | faiss/IVFlib.cpp | 1 | /* |
| LOW | faiss/IndexIVFRaBitQFastScan.h | 1 | /* |
| LOW | faiss/IndexBinaryHNSW.cpp | 21 | #include <faiss/impl/AuxIndexStructures.h> |
| LOW | faiss/Clustering.h | 41 | /// If fewer than this number of training vectors per centroid are provided, |
| LOW | faiss/Clustering.h | 61 | |
| LOW | faiss/IndexRowwiseMinMax.h | 21 | /// Basically, this index performs a rowwise scaling to [0,1] of every row |
| LOW | faiss/clone_index.cpp | 21 | #include <faiss/IndexFlat.h> |
| LOW | faiss/impl/RaBitQuantizer.h | 21 | // with a Theoretical Error Bound for Approximate Nearest Neighbor Search". |
| LOW | faiss/impl/RaBitQuantizer.h | 101 | // abstraction layer due to its unique split encoding strategy |
| LOW | faiss/impl/Panorama.h | 21 | #include <cstring> |
| LOW | faiss/impl/Panorama.h | 281 | /// 1. Apply ID selection filter and initialize distances |
| LOW | faiss/impl/RaBitQuantizer.cpp | 1 | /* |
| LOW | faiss/impl/RaBitQuantizerMultiBit.h | 1 | /* |
| LOW | faiss/impl/RaBitQUtils.h | 1 | /* |
| LOW | faiss/impl/ClusteringInitialization.cpp | 1 | /* |
| 172 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_local_search_quantizer.py | 0 | check that the error is in the same ballpark as pq. |
| HIGH | tests/test_local_search_quantizer.py | 0 | check that the error is in the same ballpark as pq. |
| HIGH | tests/test_residual_quantizer.py | 0 | check that the error is in the same ballpark as pq. |
| HIGH | tests/test_rabitq_fastscan.py | 0 | test serialize/deserialize preserves search results. |
| HIGH | tests/test_rabitq_fastscan.py | 0 | test serialize/deserialize preserves search results. |
| HIGH | tests/test_rabitq.py | 0 | test serialize/deserialize preserves search results. |
| HIGH | tests/test_ivf_flat_panorama.py | 0 | test correctness with various n_levels parameter values |
| HIGH | tests/test_flat_panorama.py | 0 | test correctness with various n_levels parameter values |
| HIGH | tests/test_refine_panorama.py | 0 | test correctness with various n_levels parameter values |
| HIGH | tests/test_ivf_flat_panorama.py | 0 | test edge case: more levels than dimension naturally supports |
| HIGH | tests/test_flat_panorama.py | 0 | test edge case: more levels than dimension naturally supports |
| HIGH | tests/test_refine_panorama.py | 0 | test edge case: more levels than dimension naturally supports |
| HIGH | tests/test_ivf_flat_panorama.py | 0 | test id selectors with dataset smaller than batch size |
| HIGH | tests/test_flat_panorama.py | 0 | test id selectors with dataset smaller than batch size |
| HIGH | tests/test_refine_panorama.py | 0 | test id selectors with dataset smaller than batch size |
| HIGH | tests/test_ivf_flat_panorama.py | 0 | test adding vectors incrementally in multiple batches |
| HIGH | tests/test_flat_panorama.py | 0 | test adding vectors incrementally in multiple batches |
| HIGH | tests/test_refine_panorama.py | 0 | test adding vectors incrementally in multiple batches |
| HIGH | tests/test_ivf_flat_panorama.py | 0 | test the correctness of the ratio of dimensions scanned |
| HIGH | tests/test_flat_panorama.py | 0 | test the correctness of the ratio of dimensions scanned |
| HIGH | tests/test_refine_panorama.py | 0 | test the correctness of the ratio of dimensions scanned |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| HIGH | contrib/torch_utils.py | 0 | gets a faiss swig pointer from a pytorch tensor (on cpu or gpu) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_referenced_objects.py | 7 | |
| LOW | tests/test_referenced_objects.py | 7 | |
| LOW | tests/test_referenced_objects.py | 7 | |
| LOW | tests/test_referenced_objects.py | 7 | |
| LOW | tests/test_contrib.py | 15 | |
| LOW | tests/test_product_quantizer.py | 6 | |
| LOW | tests/test_product_quantizer.py | 6 | |
| LOW | tests/test_product_quantizer.py | 6 | |
| LOW | tests/test_index_binary_from_float.py | 6 | |
| LOW | tests/test_index_binary_from_float.py | 6 | |
| LOW | tests/test_index_binary_from_float.py | 6 | |
| LOW | tests/test_binary_io.py | 8 | |
| LOW | tests/test_binary_io.py | 8 | |
| LOW | tests/test_binary_io.py | 8 | |
| LOW | tests/test_binary_io.py | 8 | |
| LOW | tests/test_scalar_quantizer_correctness.py | 6 | |
| LOW | tests/test_scalar_quantizer_correctness.py | 6 | |
| LOW | tests/test_scalar_quantizer_correctness.py | 6 | |
| LOW | tests/test_wheel_smoke.py | 174 | |
| LOW | tests/test_build_blocks.py | 6 | |
| LOW | tests/test_build_blocks.py | 6 | |
| LOW | tests/test_build_blocks.py | 6 | |
| LOW | tests/test_binary_factory.py | 6 | |
| LOW | tests/test_binary_factory.py | 6 | |
| LOW | tests/test_binary_factory.py | 6 | |
| LOW | tests/test_index.py | 7 | |
| LOW | tests/test_index.py | 7 | |
| LOW | tests/test_index.py | 7 | |
| LOW | tests/test_omp_threads_py.py | 6 | |
| LOW | tests/test_omp_threads_py.py | 6 | |
| LOW | tests/test_omp_threads_py.py | 6 | |
| LOW | tests/test_omp_threads_py.py | 6 | |
| LOW | tests/test_index_accuracy.py | 6 | |
| LOW | tests/test_index_accuracy.py | 6 | |
| LOW | tests/test_index_accuracy.py | 6 | |
| LOW | tests/test_ivflib.py | 6 | |
| LOW | tests/test_ivflib.py | 6 | |
| LOW | tests/test_ivflib.py | 6 | |
| LOW | tests/common_faiss_tests.py | 8 | |
| LOW | tests/common_faiss_tests.py | 8 | |
| LOW | tests/common_faiss_tests.py | 8 | |
| LOW | tests/common_faiss_tests.py | 8 | |
| LOW | tests/test_standalone_codec.py | 8 | |
| LOW | tests/test_clustering.py | 6 | |
| LOW | tests/test_clustering.py | 6 | |
| LOW | tests/test_clustering.py | 6 | |
| LOW | contrib/torch/clustering.py | 14 | |
| LOW | faiss/gpu/test/test_gpu_basics.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_basics.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_basics.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_basics.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index_refs.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index_ivfsq.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index.py | 6 | |
| LOW | faiss/gpu/test/test_gpu_index.py | 6 | |
| LOW | faiss/python/extra_wrappers.py | 13 | |
| LOW | faiss/python/__init__.py | 95 | |
| LOW | faiss/python/__init__.py | 99 | |
| 42 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_local_search_quantizer.py | 70 | |
| LOW | tests/test_graph_based.py | 642 | |
| LOW | tests/test_rabitq_fastscan.py | 169 | |
| LOW | tests/test_rabitq_fastscan.py | 517 | |
| LOW | tests/test_rabitq_fastscan.py | 664 | |
| LOW | tests/test_rabitq_fastscan.py | 711 | |
| LOW | tests/test_rabitq_fastscan.py | 765 | |
| LOW | tests/test_rabitq_fastscan.py | 847 | |
| LOW | tests/test_rabitq_fastscan.py | 939 | |
| LOW | tests/test_ivf_flat_panorama.py | 716 | |
| LOW | tests/test_flat_panorama.py | 452 | |
| LOW | tests/test_flat_panorama.py | 682 | |
| LOW | tests/test_fastscan_filter.py | 31 | |
| LOW | tests/test_merge_index.py | 23 | |
| LOW | tests/test_merge_index.py | 89 | |
| LOW | tests/test_refine_panorama.py | 426 | |
| LOW | tests/test_index_composite.py | 714 | |
| LOW | tests/test_hnsw_panorama.py | 349 | |
| LOW | tests/test_rabitq.py | 688 | |
| LOW | tests/test_rabitq.py | 714 | |
| LOW | tests/test_rabitq.py | 737 | |
| LOW | tests/test_rabitq.py | 769 | |
| LOW | tests/test_rabitq.py | 812 | |
| LOW | tests/test_rabitq.py | 833 | |
| LOW | tests/test_rabitq.py | 866 | |
| LOW | tests/test_rabitq.py | 909 | |
| LOW | tests/test_rabitq.py | 990 | |
| LOW | tests/test_index_accuracy.py | 407 | |
| LOW | tests/test_search_params.py | 26 | |
| LOW | contrib/exhaustive_search.py | 59 | |
| LOW | contrib/datasets.py | 426 | |
| LOW | contrib/factory_tools.py | 10 | |
| LOW | contrib/factory_tools.py | 81 | |
| LOW | contrib/big_batch_search.py | 234 | |
| LOW | contrib/big_batch_search.py | 216 | |
| LOW | faiss/gpu/test/torch_test_contrib_gpu.py | 263 | |
| LOW | faiss/gpu/test/torch_test_contrib_gpu.py | 393 | |
| LOW | faiss/gpu/test/test_gpu_index_ivfsq.py | 107 | |
| LOW | benchs/bench_hybrid_cpu_gpu.py | 215 | |
| LOW | benchs/bench_hybrid_cpu_gpu.py | 277 | |
| LOW | benchs/bench_quantizer.py | 35 | |
| LOW | benchs/bench_pq_tables.py | 19 | |
| LOW | benchs/bench_hnsw_prune_headroom.py | 53 | |
| LOW | benchs/bench_gpu_1bn.py | 690 | |
| LOW | benchs/bench_rabitq.py | 156 | |
| LOW | benchs/bench_fw/optimize.py | 128 | |
| LOW | benchs/bench_fw/benchmark.py | 128 | |
| LOW | benchs/bench_fw/benchmark.py | 1137 | |
| LOW | benchs/bench_fw/index.py | 73 | |
| LOW | benchs/bench_fw/index.py | 270 | |
| LOW | benchs/bench_fw/index.py | 587 | |
| LOW | benchs/bench_fw/index.py | 737 | |
| LOW | benchs/bench_fw/index.py | 1045 | |
| LOW | benchs/bench_fw/benchmark_io.py | 91 | |
| LOW | benchs/bench_fw/benchmark_io.py | 107 | |
| LOW | benchs/bench_fw/benchmark_io.py | 127 | |
| LOW | benchs/bench_fw/utils.py | 174 | |
| LOW | benchs/distributed_ondisk/distributed_kmeans.py | 139 | |
| LOW | benchs/bench_all_ivf/bench_all_ivf.py | 401 | |
| LOW | benchs/bench_all_ivf/parse_bench_all_ivf.py | 39 | |
| 8 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | CMakeLists.txt | 8 | # ============================================================================= |
| MEDIUM | CMakeLists.txt | 20 | # ============================================================================= |
| MEDIUM | tests/test_rabitq.py | 559 | # ============================================================================== |
| MEDIUM | tests/test_rabitq.py | 561 | # ============================================================================== |
| MEDIUM | faiss/CMakeLists.txt | 6 | # ============================================================================= |
| MEDIUM | faiss/CMakeLists.txt | 10 | # ============================================================================= |
| MEDIUM | faiss/CMakeLists.txt | 80 | # ============================================================================= |
| MEDIUM | faiss/CMakeLists.txt | 508 | # ============================================================================= |
| MEDIUM | faiss/CMakeLists.txt | 513 | # ============================================================================= |
| MEDIUM | faiss/gpu/CMakeLists.txt | 7 | # ============================================================================= |
| MEDIUM | faiss/gpu/CMakeLists.txt | 19 | # ============================================================================= |
| MEDIUM | faiss/gpu/test/CMakeLists.txt | 7 | # ============================================================================= |
| MEDIUM | faiss/gpu/test/CMakeLists.txt | 19 | # ============================================================================= |
| MEDIUM | faiss/utils/simd_impl/partitioning_simdlib256.h | 47 | // ── Per-TU SIMD type aliases ────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/workflows/index-io-backward-compatibility.yml | 23 | # Step 1: Build with CMake and write files |
| LOW | .github/workflows/index-io-backward-compatibility.yml | 48 | # Step 2: Install conda faiss-cpu in a clean environment and read files |
| LOW | .github/workflows/index-io-backward-compatibility.yml | 85 | # Step 1: Install conda faiss-cpu in a clean environment and write files |
| LOW | .github/workflows/index-io-backward-compatibility.yml | 114 | # Step 2: Build with CMake and read files |
| LOW | faiss/impl/RaBitQuantizer.cpp | 115 | // Step 1: Compute 1-bit quantization and base factors |
| LOW | faiss/impl/RaBitQuantizer.cpp | 155 | // Step 2: Compute ex-bits quantization (if nb_bits > 1) |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 263 | // Step 1: Compute L2 norm of residual |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 278 | // Step 2: Normalize residual |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 284 | // Step 3: Take absolute value |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 290 | // Step 4: Find optimal scaling factor |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 293 | // Step 5: Quantize to ex_bits |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 304 | // Step 6: Handle negative dimensions (flip bits) |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 312 | // Step 7: Pack codes into byte array |
| LOW | faiss/impl/RaBitQuantizerMultiBit.cpp | 315 | // Step 8: Compute factors for distance computation |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_index_accuracy.py | 246 | index.nprobe = 4 # hopefully more robust than 1 |
| MEDIUM | tests/test_index_accuracy.py | 304 | index.nprobe = 4 # hopefully more robust than 1 |
| MEDIUM | faiss/IndexPQ.h | 118 | /// statistics are robust to internal threading, but not if |
| MEDIUM | faiss/IndexIVFPQ.h | 175 | /// statistics are robust to internal threading, but not if |
| MEDIUM | faiss/impl/PanoramaStats.h | 17 | /// Statistics are not robust to internal threading nor to |
| MEDIUM | faiss/gpu/test/test_gpu_index.py | 247 | # precomputed codes also utilize the coarse quantizer |
| LOW | faiss/python/array_conversions.py | 88 | # TODO: once deprecated classes are removed, remove the dict and just use .lower() below |
| MEDIUM | faiss/utils/hamming_distance/hamming_computer-avx512.h | 16 | // leverage SSE/AVX2 intrinsics. |
| MEDIUM | faiss/utils/hamming_distance/hamming_computer-avx2.h | 14 | // GenHammingComputer classes leverage SSE/AVX2 intrinsics. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_io.py | 577 | except Exception: |
| LOW | tests/test_io.py | 609 | except Exception: |
| LOW | tests/test_build_blocks.py | 221 | except Exception: |
| LOW | …ndex_io_backward_compatibility/cmake_conda_io_utils.py | 259 | except Exception as e: |
| LOW | …ndex_io_backward_compatibility/cmake_conda_io_utils.py | 292 | except Exception as e: |
| LOW | …ndex_io_backward_compatibility/cmake_conda_io_utils.py | 322 | except Exception as e: |
| LOW | …ndex_io_backward_compatibility/cmake_conda_io_utils.py | 352 | except Exception as e: |
| LOW | contrib/rpc.py | 144 | except Exception as e: |
| LOW | faiss/gpu/test/test_index_cpu_to_gpu.py | 43 | except Exception as e: |
| LOW | faiss/gpu/test/test_index_cpu_to_gpu.py | 56 | except Exception as e: |
| LOW | faiss/gpu/test/test_index_cpu_to_gpu.py | 92 | except Exception as e: |
| MEDIUM | faiss/gpu/test/test_index_cpu_to_gpu.py | 40 | def verify_throws_not_implemented_exception(self, factory_string): |
| MEDIUM | faiss/gpu/test/test_index_cpu_to_gpu.py | 48 | def verify_clones_successfully(self, factory_string, |
| MEDIUM | faiss/gpu/test/test_index_cpu_to_gpu.py | 88 | def test_with_flag_set_to_false(self): |
| LOW | benchs/bench_all_ivf/parse_bench_all_ivf.py | 138 | except Exception as e: |
| LOW | demos/offline_ivf/offline_ivf.py | 611 | except Exception: |
| MEDIUM | demos/offline_ivf/offline_ivf.py | 599 | def _knn_function(self, xq, xb, k, metric, thread_id=None): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_graph_based.py | 243 | # Create a vector with NaN in the first component |
| MEDIUM | tests/test_flat_panorama.py | 649 | # Create a random permutation |
| MEDIUM | tests/test_wheel_smoke_gpu.py | 26 | # This file is the faiss-gpu wheel smoke test. It also gets collected by |
| MEDIUM | tests/test_hnsw_panorama.py | 427 | # Create a permutation (reverse order for simplicity) |
| MEDIUM | tests/test_index.py | 818 | # Create the dataset |
| MEDIUM | tests/test_search_params.py | 163 | # Create a mask of valid IDs (those in subset) |
| MEDIUM | faiss/gpu/hipify.sh | 42 | # Create a backup of the original gpu directory |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_svs_py.py | 28 | # Check if LVQ/LeanVec support is available |
| LOW | tests/test_hnsw_panorama.py | 400 | # Check if this neighbor is still in the result set |
| LOW | faiss/python/class_wrappers.py | 255 | # Check if the attribute already exists (valid attribute) |
| LOW | faiss/python/class_wrappers.py | 257 | # Check if it exists on the instance or class |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | contrib/vecs_io.py | 83 | Memory-mapped iterator over chunked .bvecs files. Iterates through all chunk files in order (chunk_0000.bvecs, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | faiss/impl/ClusteringInitialization.h | 46 | /// Example usage: |
| LOW | faiss/utils/extra_distances.h | 64 | /// Example usage: |
| LOW | demos/index_pq_flat_separate_codes_from_codebook.py | 256 | # # Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_build_blocks.py | 335 | # make sure to test extreme cases |
| LOW | tests/test_index_accuracy.py | 574 | # make sure to test below and above |
| MEDIUM | contrib/rpc.py | 10 | This code is for demonstration purposes only, and does not include certain |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | benchs/bench_fw/index.py | 150 | |
| MEDIUM | benchs/bench_fw/index.py | 151 |