Skip to content Navigation Menu Toggle navigation Sign in Appearance settings PlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryNewIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityAcceleratorGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricing Search or jump to... Search code, repositories, users, issues, pull requests... Search Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Saved searches Use saved searches to filter your results more quickly Name Query To see all available qualifiers, see our documentation. Sign in Sign up Appearance settings Resetting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} facebookresearch / faiss Public Notifications You must be signed in to change notification settings Fork 4.4k Star 40.3k Code Issues 222 Pull requests 57 Discussions Actions Projects Wiki Security and quality 0 Insights Additional navigation options Code Issues Pull requests Discussions Actions Projects Wiki Security and quality Insights FilesExpand file tree mainBreadcrumbsfaiss/tests/Copy pathDirectory actionsMore optionsMore optionsDirectory actionsMore optionsMore optionsLatest commit HistoryHistoryHistory mainBreadcrumbsfaiss/tests/Copy pathTopFolders and filesNameNameLast commit messageLast commit dateparent directory..index_io_backward_compatibilityindex_io_backward_compatibility CMakeLists.txtCMakeLists.txt common_faiss_tests.pycommon_faiss_tests.py external_module_test.pyexternal_module_test.py test_NSG_compressed_graph.cpptest_NSG_compressed_graph.cpp test_RCQ_cropping.cpptest_RCQ_cropping.cpp test_approx_topk.cpptest_approx_topk.cpp test_autotune.pytest_autotune.py test_binary_autotune.pytest_binary_autotune.py test_binary_factory.pytest_binary_factory.py test_binary_flat.cpptest_binary_flat.cpp test_binary_hash.cpptest_binary_hash.cpp test_binary_hashindex.pytest_binary_hashindex.py test_binary_io.pytest_binary_io.py test_binary_search_params.pytest_binary_search_params.py test_build_blocks.pytest_build_blocks.py test_callback.cpptest_callback.cpp test_callback_py.pytest_callback_py.py test_clone.pytest_clone.py test_clustering.pytest_clustering.py test_clustering_initialization.pytest_clustering_initialization.py test_common_ivf_empty_index.cpptest_common_ivf_empty_index.cpp test_contrib.pytest_contrib.py test_contrib_with_scipy.pytest_contrib_with_scipy.py test_cppcontrib_sa_decode.cpptest_cppcontrib_sa_decode.cpp test_cppcontrib_uintreader.cpptest_cppcontrib_uintreader.cpp test_custom_result_handler.cpptest_custom_result_handler.cpp test_dealloc_invlists.cpptest_dealloc_invlists.cpp test_disable_pq_sdc_tables.cpptest_disable_pq_sdc_tables.cpp test_distances_dispatch.cpptest_distances_dispatch.cpp test_distances_simd.cpptest_distances_simd.cpp test_documentation.pytest_documentation.py test_extra_distances.pytest_extra_distances.py test_factory.pytest_factory.py test_factory_tools.cpptest_factory_tools.cpp test_fast_scan.pytest_fast_scan.py test_fast_scan_distance_to_code.cpptest_fast_scan_distance_to_code.cpp test_fast_scan_ivf.pytest_fast_scan_ivf.py test_fastscan_filter.cpptest_fastscan_filter.cpp test_fastscan_filter.pytest_fastscan_filter.py test_fastscan_perf.cpptest_fastscan_perf.cpp test_flat_panorama.pytest_flat_panorama.py test_graph_based.pytest_graph_based.py test_hamming.cpptest_hamming.cpp test_hamming_utils.pytest_hamming_utils.py test_heap.cpptest_heap.cpp test_hnsw.cpptest_hnsw.cpp test_hnsw_panorama.pytest_hnsw_panorama.py test_index.pytest_index.py test_index_accuracy.pytest_index_accuracy.py test_index_binary.pytest_index_binary.py test_index_binary_from_float.pytest_index_binary_from_float.py test_index_composite.pytest_index_composite.py test_io.pytest_io.py test_io_corrupted.cpptest_io_corrupted.cpp test_ivf_early_termination.cpptest_ivf_early_termination.cpp test_ivf_flat_panorama.pytest_ivf_flat_panorama.py test_ivf_index.cpptest_ivf_index.cpp test_ivflib.pytest_ivflib.py test_ivfpq_codec.cpptest_ivfpq_codec.cpp test_ivfpq_indexing.cpptest_ivfpq_indexing.cpp test_local_search_quantizer.pytest_local_search_quantizer.py test_lowlevel_ivf.cpptest_lowlevel_ivf.cpp test_merge.cpptest_merge.cpp test_merge_index.pytest_merge_index.py test_meta_index.pytest_meta_index.py test_mmap.cpptest_mmap.cpp test_nndescent.cpptest_nndescent.cpp test_omp_exception_safety.cpptest_omp_exception_safety.cpp test_omp_threads.cpptest_omp_threads.cpp test_omp_threads_py.pytest_omp_threads_py.py test_ondisk_ivf.cpptest_ondisk_ivf.cpp test_pairs_decoding.cpptest_pairs_decoding.cpp test_params_override.cpptest_params_override.cpp test_partition.pytest_partition.py test_partitioning.cpptest_partitioning.cpp test_pq_code_distance.cpptest_pq_code_distance.cpp test_pq_encoding.cpptest_pq_encoding.cpp test_pqfs_unaligned.cpptest_pqfs_unaligned.cpp test_product_quantizer.pytest_product_quantizer.py test_rabitq.pytest_rabitq.py test_rabitq_fastscan.pytest_rabitq_fastscan.py test_read_index_deserialize.cpptest_read_index_deserialize.cpp test_referenced_objects.pytest_referenced_objects.py test_refine.pytest_refine.py test_refine_panorama.pytest_refine_panorama.py test_residual_quantizer.pytest_residual_quantizer.py test_rowwise_minmax.pytest_rowwise_minmax.py test_scalar_quantizer.cpptest_scalar_quantizer.cpp test_scalar_quantizer_correctness.pytest_scalar_quantizer_correctness.py test_search_params.pytest_search_params.py test_simd_dispatch.pytest_simd_dispatch.py test_simd_levels.cpptest_simd_levels.cpp test_simd_levels_x86_avx2.cpptest_simd_levels_x86_avx2.cpp test_simd_levels_x86_avx512.cpptest_simd_levels_x86_avx512.cpp test_simd_perf.cpptest_simd_perf.cpp test_simdlib.cpptest_simdlib.cpp test_single_query_collect_handler.cpptest_single_query_collect_handler.cpp test_sliding_ivf.cpptest_sliding_ivf.cpp test_sorting.cpptest_sorting.cpp View all files You can’t perform that action at this time.