@soulcraft/brainy 0.9.9 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,6 +90,7 @@ export declare class BrainyData<T = any> implements BrainyDataInterface<T> {
90
90
  private index;
91
91
  private storage;
92
92
  private isInitialized;
93
+ private isInitializing;
93
94
  private embeddingFunction;
94
95
  private distanceFunction;
95
96
  private requestPersistentStorage;
@@ -165,6 +166,7 @@ export declare class BrainyData<T = any> implements BrainyDataInterface<T> {
165
166
  forceEmbed?: boolean;
166
167
  addToRemote?: boolean;
167
168
  concurrency?: number;
169
+ batchSize?: number;
168
170
  }): Promise<string[]>;
169
171
  /**
170
172
  * Add multiple vectors or data items to both local and remote databases
@@ -25,6 +25,8 @@ export declare class HNSWIndex {
25
25
  /**
26
26
  * Calculate distances between a query vector and multiple vectors in parallel
27
27
  * This is used to optimize performance for search operations
28
+ * Uses GPU acceleration when available for optimal performance
29
+ *
28
30
  * @param queryVector The query vector
29
31
  * @param vectors Array of vectors to compare against
30
32
  * @returns Array of distances