brain.get() returns metadata only by default (includeVectors: false) for speed;
the vector is fetched via get(id, { includeVectors: true }). The neural API's
clustering, similarity, and vector-conversion helpers called get() without it,
so every entity came back with vector: [] — _getItemsWithVectors filtered them
all out, leaving k-means++ to dereference an empty array ("Cannot read
properties of undefined (reading 'vector')"). neural.clusters() was effectively
non-functional, and similarity-by-id silently scored 0.
- Pass { includeVectors: true } at the 8 vector-consuming get() call sites
(similarity, _convertToVector, _getItemsWith{Vectors,Metadata}, cluster
membership + quality scoring).
- Guard k-means against an empty item set (return an empty result, never crash).
"cluster entities semantically" passes. (includeVFS clustering + vfs.move have a
separate VFS-vector-dimension issue, tracked in .strategy.)
|
||
|---|---|---|
| .. | ||
| signals | ||
| embeddedPatterns.ts | ||
| embeddedTypeEmbeddings.ts | ||
| entityExtractionCache.ts | ||
| entityExtractor.ts | ||
| improvedNeuralAPI.ts | ||
| naturalLanguageProcessor.ts | ||
| naturalLanguageProcessorStatic.ts | ||
| neuralAPI.ts | ||
| neuralImport.ts | ||
| neuralImportAugmentation.ts | ||
| patternLibrary.ts | ||
| presets.ts | ||
| relationshipConfidence.ts | ||
| SmartExtractor.ts | ||
| SmartRelationshipExtractor.ts | ||
| staticPatternMatcher.ts | ||
| types.ts | ||