@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.
- package/README.md +55 -17
- package/dist/brainy.js +36522 -66624
- package/dist/brainy.min.js +1112 -4724
- package/dist/brainyData.d.ts +2 -0
- package/dist/hnsw/hnswIndex.d.ts +2 -0
- package/dist/unified.js +36522 -66624
- package/dist/unified.min.js +1112 -4724
- package/dist/utils/distance.d.ts +12 -1
- package/dist/utils/embedding.d.ts +19 -14
- package/dist/utils/environment.d.ts +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/version.d.ts +1 -1
- package/dist/utils/workerUtils.d.ts +7 -17
- package/package.json +2 -2
package/dist/brainyData.d.ts
CHANGED
|
@@ -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
|
package/dist/hnsw/hnswIndex.d.ts
CHANGED
|
@@ -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
|