@@ -65,9 +65,9 @@ const configure = {
6565      name : 'hnsw' , 
6666      config : rest 
6767        ? { 
68-           ...rest , 
69-           distance : distanceMetric , 
70-         } 
68+              ...rest , 
69+              distance : distanceMetric , 
70+            } 
7171        : undefined , 
7272    } ; 
7373  } , 
@@ -86,11 +86,11 @@ const configure = {
8686      name : 'dynamic' , 
8787      config : opts 
8888        ? { 
89-           distance : opts . distanceMetric , 
90-           threshold : opts . threshold , 
91-           hnsw : isModuleConfig ( opts . hnsw )  ? opts . hnsw . config  : configure . hnsw ( opts . hnsw ) . config , 
92-           flat : isModuleConfig ( opts . flat )  ? opts . flat . config  : configure . flat ( opts . flat ) . config , 
93-         } 
89+              distance : opts . distanceMetric , 
90+              threshold : opts . threshold , 
91+              hnsw : isModuleConfig ( opts . hnsw )  ? opts . hnsw . config  : configure . hnsw ( opts . hnsw ) . config , 
92+              flat : isModuleConfig ( opts . flat )  ? opts . flat . config  : configure . flat ( opts . flat ) . config , 
93+            } 
9494        : undefined , 
9595    } ; 
9696  } , 
@@ -115,7 +115,7 @@ const configure = {
115115    /** 
116116     * Create an object of type `RQConfigCreate` to be used when defining the quantizer configuration of a vector index. 
117117     * 
118-      * @param  {number } [options.bits] TODO: WRITE DOCS  
118+      * @param  {number } [options.bits] Number of bits to user per vector element.  
119119     * @param  {number } [options.rescoreLimit] The rescore limit. Default is 1000. 
120120     * @returns  {RQConfigCreate } The object of type `RQConfigCreate`. 
121121     */ 
@@ -152,9 +152,9 @@ const configure = {
152152        centroids : options ?. centroids , 
153153        encoder : options ?. encoder 
154154          ? { 
155-             distribution : options . encoder . distribution , 
156-             type : options . encoder . type , 
157-           } 
155+                distribution : options . encoder . distribution , 
156+                type : options . encoder . type , 
157+              } 
158158          : undefined , 
159159        segments : options ?. segments , 
160160        trainingLimit : options ?. trainingLimit , 
@@ -254,7 +254,6 @@ const reconfigure = {
254254     * NOTE: If the vector index already has a quantizer configured, you cannot change its quantizer type; only its values. 
255255     * So if you want to change the quantizer type, you must recreate the collection. 
256256     * 
257-      * @param  {number } [options.bits] TODO: WRITE DOCS 
258257     * @param  {number } [options.rescoreLimit] The new rescore limit. 
259258     * @returns  {BQConfigUpdate } The configuration object. 
260259     */ 
@@ -290,9 +289,9 @@ const reconfigure = {
290289        encoder :
291290          pqEncoderDistribution  ||  pqEncoderType 
292291            ? { 
293-               distribution : pqEncoderDistribution , 
294-               type : pqEncoderType , 
295-             } 
292+                  distribution : pqEncoderDistribution , 
293+                  type : pqEncoderType , 
294+                } 
296295            : undefined , 
297296        type : 'pq' , 
298297      } ; 
0 commit comments