@soulcraft/brainy 1.4.0 → 1.5.0
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/dist/brainyData.js +5 -2
- package/package.json +1 -1
package/dist/brainyData.js
CHANGED
|
@@ -2828,6 +2828,7 @@ export class BrainyData {
|
|
|
2828
2828
|
}
|
|
2829
2829
|
}
|
|
2830
2830
|
// Create complete verb metadata separately
|
|
2831
|
+
// Merge original metadata with system metadata to preserve neural enhancements
|
|
2831
2832
|
const verbMetadata = {
|
|
2832
2833
|
sourceId: sourceId,
|
|
2833
2834
|
targetId: targetId,
|
|
@@ -2844,7 +2845,9 @@ export class BrainyData {
|
|
|
2844
2845
|
createdAt: timestamp,
|
|
2845
2846
|
updatedAt: timestamp,
|
|
2846
2847
|
createdBy: getAugmentationVersion(service),
|
|
2847
|
-
|
|
2848
|
+
// Merge original metadata to preserve neural enhancements from relate()
|
|
2849
|
+
...(options.metadata || {}),
|
|
2850
|
+
data: options.metadata // Also store in data field for backwards compatibility
|
|
2848
2851
|
};
|
|
2849
2852
|
// Add to index
|
|
2850
2853
|
await this.index.addItem({ id, vector: verbVector });
|
|
@@ -2870,7 +2873,7 @@ export class BrainyData {
|
|
|
2870
2873
|
createdAt: verbMetadata.createdAt,
|
|
2871
2874
|
updatedAt: verbMetadata.updatedAt,
|
|
2872
2875
|
createdBy: verbMetadata.createdBy,
|
|
2873
|
-
metadata: verbMetadata
|
|
2876
|
+
metadata: verbMetadata, // Use full metadata with neural enhancements
|
|
2874
2877
|
data: verbMetadata.data,
|
|
2875
2878
|
embedding: hnswVerb.vector
|
|
2876
2879
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Multi-Dimensional AI Database - Vector similarity, graph relationships, metadata facets with HNSW indexing and OPFS storage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|