@soulcraft/brainy 3.40.2 → 3.40.3
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/CHANGELOG.md +5 -0
- package/dist/utils/metadataIndex.js +31 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.40.3](https://github.com/soulcraftlabs/brainy/compare/v3.40.2...v3.40.3) (2025-10-13)
|
|
6
|
+
|
|
7
|
+
- fix: prevent metadata index file pollution by excluding high-cardinality fields (0c86c4f)
|
|
8
|
+
|
|
9
|
+
|
|
5
10
|
### [3.40.2](https://github.com/soulcraftlabs/brainy/compare/v3.40.1...v3.40.2) (2025-10-13)
|
|
6
11
|
|
|
7
12
|
|
|
@@ -39,7 +39,37 @@ export class MetadataIndexManager {
|
|
|
39
39
|
rebuildThreshold: config.rebuildThreshold ?? 0.1,
|
|
40
40
|
autoOptimize: config.autoOptimize ?? true,
|
|
41
41
|
indexedFields: config.indexedFields ?? [],
|
|
42
|
-
excludeFields: config.excludeFields ?? [
|
|
42
|
+
excludeFields: config.excludeFields ?? [
|
|
43
|
+
// Timestamps (nearly unique per operation - causes massive file pollution)
|
|
44
|
+
'accessed',
|
|
45
|
+
'modified',
|
|
46
|
+
'createdAt',
|
|
47
|
+
'updatedAt',
|
|
48
|
+
'importedAt',
|
|
49
|
+
'extractedAt',
|
|
50
|
+
// UUIDs (unique per entity/relationship - creates one file per entity)
|
|
51
|
+
'id',
|
|
52
|
+
'parent',
|
|
53
|
+
'sourceId',
|
|
54
|
+
'targetId',
|
|
55
|
+
'source',
|
|
56
|
+
'target',
|
|
57
|
+
'owner',
|
|
58
|
+
// Paths and hashes (unique per file - creates one file per path)
|
|
59
|
+
'path',
|
|
60
|
+
'hash',
|
|
61
|
+
'url',
|
|
62
|
+
// Content fields (too large/unique - unnecessary for indexing)
|
|
63
|
+
'content',
|
|
64
|
+
'data',
|
|
65
|
+
'originalData',
|
|
66
|
+
'_data',
|
|
67
|
+
// Vectors (already excluded - keeping for backward compatibility)
|
|
68
|
+
'embedding',
|
|
69
|
+
'vector',
|
|
70
|
+
'embeddings',
|
|
71
|
+
'vectors'
|
|
72
|
+
]
|
|
43
73
|
};
|
|
44
74
|
// Initialize metadata cache with similar config to search cache
|
|
45
75
|
this.metadataCache = new MetadataIndexCache({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "3.40.
|
|
3
|
+
"version": "3.40.3",
|
|
4
4
|
"description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns × 40 verbs for infinite expressiveness.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|