2121/**
2222 * Global Faiss configuration and utilities.
2323 *
24- * <p>This class provides methods for configuring Faiss globally, such as
25- * setting the number of threads for parallel operations.
24+ * <p>This class provides methods for configuring Faiss globally, such as setting the number of
25+ * threads for parallel operations.
2626 *
2727 * <p>Example usage:
28+ *
2829 * <pre>{@code
2930 * // Set the number of threads for Faiss operations
3031 * Faiss.setNumThreads(4);
@@ -59,8 +60,8 @@ public static String getVersion() {
5960 /**
6061 * Set the number of threads for parallel operations.
6162 *
62- * <p>This affects operations like index training, adding vectors,
63- * and searching. Set to 1 to disable parallelism.
63+ * <p>This affects operations like index training, adding vectors, and searching. Set to 1 to
64+ * disable parallelism.
6465 *
6566 * @param numThreads the number of threads (must be positive)
6667 */
@@ -83,9 +84,8 @@ public static int getNumThreads() {
8384 /**
8485 * Ensure the native library is loaded.
8586 *
86- * <p>This method is called automatically when any Faiss class is used.
87- * It can be called explicitly to load the library early and catch
88- * any loading errors.
87+ * <p>This method is called automatically when any Faiss class is used. It can be called
88+ * explicitly to load the library early and catch any loading errors.
8989 *
9090 * @throws FaissException if the native library cannot be loaded
9191 */
@@ -102,4 +102,3 @@ public static boolean isLibraryLoaded() {
102102 return NativeLibraryLoader .isLoaded ();
103103 }
104104}
105-
0 commit comments