From b49d78b3f960f9cbdbd25fb9f20c5f85c4e1722a Mon Sep 17 00:00:00 2001 From: facebook-github-bot Date: Fri, 1 Sep 2023 09:41:30 +0000 Subject: [PATCH] Update API docs (82352dd4). --- xml/IndexHNSW_8h.xml | 8 ++++---- xml/IndexNSG_8h.xml | 20 ++++++++++---------- xml/index.xml | 4 ++-- xml/structfaiss_1_1IndexHNSW.xml | 3 +++ xml/structfaiss_1_1IndexHNSW2Level.xml | 3 +++ xml/structfaiss_1_1IndexHNSWFlat.xml | 3 +++ xml/structfaiss_1_1IndexHNSWPQ.xml | 14 +++++++++++--- xml/structfaiss_1_1IndexHNSWSQ.xml | 3 +++ xml/structfaiss_1_1IndexNSG.xml | 8 ++++++++ xml/structfaiss_1_1IndexNSGFlat.xml | 8 ++++++++ xml/structfaiss_1_1IndexNSGPQ.xml | 19 ++++++++++++++++--- xml/structfaiss_1_1IndexNSGSQ.xml | 8 ++++++++ 12 files changed, 79 insertions(+), 22 deletions(-) diff --git a/xml/IndexHNSW_8h.xml b/xml/IndexHNSW_8h.xml index 9b2ecd08c6..853ed7f7d7 100644 --- a/xml/IndexHNSW_8h.xml +++ b/xml/IndexHNSW_8h.xml @@ -489,10 +489,10 @@ HNSWhnsw; //thesequentialstorage -boolown_fields; -Index*storage; +boolown_fields=false; +Index*storage=nullptr; -ReconstructFromNeighbors*reconstruct_from_neighbors; +ReconstructFromNeighbors*reconstruct_from_neighbors=nullptr; explicitIndexHNSW(intd=0,intM=32,MetricTypemetric=METRIC_L2); explicitIndexHNSW(Index*storage,intM=32); @@ -567,7 +567,7 @@ */ structIndexHNSWPQ:IndexHNSW{ IndexHNSWPQ(); -IndexHNSWPQ(intd,intpq_m,intM); +IndexHNSWPQ(intd,intpq_m,intM,intpq_nbits=8); voidtrain(idx_tn,constfloat*x)override; }; diff --git a/xml/IndexNSG_8h.xml b/xml/IndexNSG_8h.xml index ea9d282234..33f72c06a6 100644 --- a/xml/IndexNSG_8h.xml +++ b/xml/IndexNSG_8h.xml @@ -487,25 +487,25 @@ NSGnsg; ///thesequentialstorage -boolown_fields; -Index*storage; +boolown_fields=false; +Index*storage=nullptr; ///theindexisbuiltornot -boolis_built; +boolis_built=false; ///KofKNNgraphforbuilding -intGK; +intGK=64; ///indicatehowtobuildaknngraph ///-0:buildNSGwithbruteforcesearch ///-1:buildNSGwithNNDescent -charbuild_type; +charbuild_type=0; ///parametersfornndescent -intnndescent_S; -intnndescent_R; -intnndescent_L; -intnndescent_iter; +intnndescent_S=10; +intnndescent_R=100; +intnndescent_L;//settoGK+50 +intnndescent_iter=10; explicitIndexNSG(intd=0,intR=32,MetricTypemetric=METRIC_L2); explicitIndexNSG(Index*storage,intR=32); @@ -549,7 +549,7 @@ */ structIndexNSGPQ:IndexNSG{ IndexNSGPQ(); -IndexNSGPQ(intd,intpq_m,intM); +IndexNSGPQ(intd,intpq_m,intM,intpq_nbits=8); voidtrain(idx_tn,constfloat*x)override; }; diff --git a/xml/index.xml b/xml/index.xml index aaaea46bcc..d62451e1b7 100644 --- a/xml/index.xml +++ b/xml/index.xml @@ -2651,7 +2651,7 @@ faiss::IndexHNSWPQ IndexHNSWPQ - IndexHNSWPQ + IndexHNSWPQ train add search @@ -4794,7 +4794,7 @@ faiss::IndexNSGPQ IndexNSGPQ - IndexNSGPQ + IndexNSGPQ train build add diff --git a/xml/structfaiss_1_1IndexHNSW.xml b/xml/structfaiss_1_1IndexHNSW.xml index 22591c01b3..eac7ab64b7 100644 --- a/xml/structfaiss_1_1IndexHNSW.xml +++ b/xml/structfaiss_1_1IndexHNSW.xml @@ -68,6 +68,7 @@ bool faiss::IndexHNSW::own_fields own_fields + = false @@ -81,6 +82,7 @@ Index* faiss::IndexHNSW::storage storage + = nullptr @@ -94,6 +96,7 @@ ReconstructFromNeighbors* faiss::IndexHNSW::reconstruct_from_neighbors reconstruct_from_neighbors + = nullptr diff --git a/xml/structfaiss_1_1IndexHNSW2Level.xml b/xml/structfaiss_1_1IndexHNSW2Level.xml index e8285f5e12..fd379fbc4b 100644 --- a/xml/structfaiss_1_1IndexHNSW2Level.xml +++ b/xml/structfaiss_1_1IndexHNSW2Level.xml @@ -1128,6 +1128,7 @@ bool faiss::IndexHNSW::own_fields own_fields + = false @@ -1141,6 +1142,7 @@ Index* faiss::IndexHNSW::storage storage + = nullptr @@ -1154,6 +1156,7 @@ ReconstructFromNeighbors* faiss::IndexHNSW::reconstruct_from_neighbors reconstruct_from_neighbors + = nullptr diff --git a/xml/structfaiss_1_1IndexHNSWFlat.xml b/xml/structfaiss_1_1IndexHNSWFlat.xml index 1a6e780b79..e73d17ab0c 100644 --- a/xml/structfaiss_1_1IndexHNSWFlat.xml +++ b/xml/structfaiss_1_1IndexHNSWFlat.xml @@ -1113,6 +1113,7 @@ bool faiss::IndexHNSW::own_fields own_fields + = false @@ -1126,6 +1127,7 @@ Index* faiss::IndexHNSW::storage storage + = nullptr @@ -1139,6 +1141,7 @@ ReconstructFromNeighbors* faiss::IndexHNSW::reconstruct_from_neighbors reconstruct_from_neighbors + = nullptr diff --git a/xml/structfaiss_1_1IndexHNSWPQ.xml b/xml/structfaiss_1_1IndexHNSWPQ.xml index 34dfcc16dc..ab637e6cce 100644 --- a/xml/structfaiss_1_1IndexHNSWPQ.xml +++ b/xml/structfaiss_1_1IndexHNSWPQ.xml @@ -18,10 +18,10 @@ - + faiss::IndexHNSWPQ::IndexHNSWPQ - (int d, int pq_m, int M) + (int d, int pq_m, int M, int pq_nbits=8) IndexHNSWPQ int @@ -35,6 +35,11 @@ int M + + int + pq_nbits + 8 + @@ -1111,6 +1116,7 @@ bool faiss::IndexHNSW::own_fields own_fields + = false @@ -1124,6 +1130,7 @@ Index* faiss::IndexHNSW::storage storage + = nullptr @@ -1137,6 +1144,7 @@ ReconstructFromNeighbors* faiss::IndexHNSW::reconstruct_from_neighbors reconstruct_from_neighbors + = nullptr @@ -1315,7 +1323,7 @@ faiss::IndexHNSWPQIndexHNSW faiss::IndexHNSWPQIndexHNSW faiss::IndexHNSWPQIndexHNSWPQ - faiss::IndexHNSWPQIndexHNSWPQ + faiss::IndexHNSWPQIndexHNSWPQ faiss::IndexHNSWPQinit_level_0_from_entry_points faiss::IndexHNSWPQinit_level_0_from_knngraph faiss::IndexHNSWPQis_trained diff --git a/xml/structfaiss_1_1IndexHNSWSQ.xml b/xml/structfaiss_1_1IndexHNSWSQ.xml index a895a78391..60781d7199 100644 --- a/xml/structfaiss_1_1IndexHNSWSQ.xml +++ b/xml/structfaiss_1_1IndexHNSWSQ.xml @@ -1117,6 +1117,7 @@ bool faiss::IndexHNSW::own_fields own_fields + = false @@ -1130,6 +1131,7 @@ Index* faiss::IndexHNSW::storage storage + = nullptr @@ -1143,6 +1145,7 @@ ReconstructFromNeighbors* faiss::IndexHNSW::reconstruct_from_neighbors reconstruct_from_neighbors + = nullptr diff --git a/xml/structfaiss_1_1IndexNSG.xml b/xml/structfaiss_1_1IndexNSG.xml index 349e0a7eb7..b2407cd054 100644 --- a/xml/structfaiss_1_1IndexNSG.xml +++ b/xml/structfaiss_1_1IndexNSG.xml @@ -27,6 +27,7 @@ bool faiss::IndexNSG::own_fields own_fields + = false the sequential storage @@ -41,6 +42,7 @@ Index* faiss::IndexNSG::storage storage + = nullptr @@ -54,6 +56,7 @@ bool faiss::IndexNSG::is_built is_built + = false the index is built or not @@ -68,6 +71,7 @@ int faiss::IndexNSG::GK GK + = 64 K of KNN graph for building. @@ -82,6 +86,7 @@ char faiss::IndexNSG::build_type build_type + = 0 @@ -100,6 +105,7 @@ int faiss::IndexNSG::nndescent_S nndescent_S + = 10 parameters for nndescent @@ -114,6 +120,7 @@ int faiss::IndexNSG::nndescent_R nndescent_R + = 100 @@ -140,6 +147,7 @@ int faiss::IndexNSG::nndescent_iter nndescent_iter + = 10 diff --git a/xml/structfaiss_1_1IndexNSGFlat.xml b/xml/structfaiss_1_1IndexNSGFlat.xml index 3b33296414..4bf2f69aea 100644 --- a/xml/structfaiss_1_1IndexNSGFlat.xml +++ b/xml/structfaiss_1_1IndexNSGFlat.xml @@ -952,6 +952,7 @@ bool faiss::IndexNSG::own_fields own_fields + = false the sequential storage @@ -966,6 +967,7 @@ Index* faiss::IndexNSG::storage storage + = nullptr @@ -979,6 +981,7 @@ bool faiss::IndexNSG::is_built is_built + = false the index is built or not @@ -993,6 +996,7 @@ int faiss::IndexNSG::GK GK + = 64 K of KNN graph for building. @@ -1007,6 +1011,7 @@ char faiss::IndexNSG::build_type build_type + = 0 @@ -1025,6 +1030,7 @@ int faiss::IndexNSG::nndescent_S nndescent_S + = 10 parameters for nndescent @@ -1039,6 +1045,7 @@ int faiss::IndexNSG::nndescent_R nndescent_R + = 100 @@ -1065,6 +1072,7 @@ int faiss::IndexNSG::nndescent_iter nndescent_iter + = 10 diff --git a/xml/structfaiss_1_1IndexNSGPQ.xml b/xml/structfaiss_1_1IndexNSGPQ.xml index 7fcec91fa8..0155582d75 100644 --- a/xml/structfaiss_1_1IndexNSGPQ.xml +++ b/xml/structfaiss_1_1IndexNSGPQ.xml @@ -18,10 +18,10 @@ - + faiss::IndexNSGPQ::IndexNSGPQ - (int d, int pq_m, int M) + (int d, int pq_m, int M, int pq_nbits=8) IndexNSGPQ int @@ -35,6 +35,11 @@ int M + + int + pq_nbits + 8 + @@ -950,6 +955,7 @@ bool faiss::IndexNSG::own_fields own_fields + = false the sequential storage @@ -964,6 +970,7 @@ Index* faiss::IndexNSG::storage storage + = nullptr @@ -977,6 +984,7 @@ bool faiss::IndexNSG::is_built is_built + = false the index is built or not @@ -991,6 +999,7 @@ int faiss::IndexNSG::GK GK + = 64 K of KNN graph for building. @@ -1005,6 +1014,7 @@ char faiss::IndexNSG::build_type build_type + = 0 @@ -1023,6 +1033,7 @@ int faiss::IndexNSG::nndescent_S nndescent_S + = 10 parameters for nndescent @@ -1037,6 +1048,7 @@ int faiss::IndexNSG::nndescent_R nndescent_R + = 100 @@ -1063,6 +1075,7 @@ int faiss::IndexNSG::nndescent_iter nndescent_iter + = 10 @@ -1262,7 +1275,7 @@ faiss::IndexNSGPQIndexNSG faiss::IndexNSGPQIndexNSG faiss::IndexNSGPQIndexNSGPQ - faiss::IndexNSGPQIndexNSGPQ + faiss::IndexNSGPQIndexNSGPQ faiss::IndexNSGPQis_built faiss::IndexNSGPQis_trained faiss::IndexNSGPQmerge_from diff --git a/xml/structfaiss_1_1IndexNSGSQ.xml b/xml/structfaiss_1_1IndexNSGSQ.xml index 92f7f5f462..c7f48e9cec 100644 --- a/xml/structfaiss_1_1IndexNSGSQ.xml +++ b/xml/structfaiss_1_1IndexNSGSQ.xml @@ -956,6 +956,7 @@ bool faiss::IndexNSG::own_fields own_fields + = false the sequential storage @@ -970,6 +971,7 @@ Index* faiss::IndexNSG::storage storage + = nullptr @@ -983,6 +985,7 @@ bool faiss::IndexNSG::is_built is_built + = false the index is built or not @@ -997,6 +1000,7 @@ int faiss::IndexNSG::GK GK + = 64 K of KNN graph for building. @@ -1011,6 +1015,7 @@ char faiss::IndexNSG::build_type build_type + = 0 @@ -1029,6 +1034,7 @@ int faiss::IndexNSG::nndescent_S nndescent_S + = 10 parameters for nndescent @@ -1043,6 +1049,7 @@ int faiss::IndexNSG::nndescent_R nndescent_R + = 100 @@ -1069,6 +1076,7 @@ int faiss::IndexNSG::nndescent_iter nndescent_iter + = 10