feat: fix verb storage pipeline and implement relationship-aware neural clustering
- Add atomic verb saving with rollback on metadata creation failures - Implement missing getVerbsForNoun() method required by neural APIs - Fix broken FileSystemStorage filter methods that returned empty arrays - Add scalable clustersWithRelationships() method with batching for millions of nodes - Enhance error handling and logging throughout verb storage pipeline - Add comprehensive relationship analysis with intra/inter-cluster edges - Improve API consistency between noun and verb methods 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
455689f8fd
commit
3f0c587cb1
5 changed files with 339 additions and 17 deletions
|
|
@ -22,6 +22,28 @@ export interface SemanticCluster {
|
|||
level?: number
|
||||
}
|
||||
|
||||
export interface ClusterEdge {
|
||||
id: string
|
||||
source: string
|
||||
target: string
|
||||
type: string
|
||||
weight?: number
|
||||
isInterCluster: boolean
|
||||
sourceCluster?: string
|
||||
targetCluster?: string
|
||||
}
|
||||
|
||||
export interface EnhancedSemanticCluster extends SemanticCluster {
|
||||
intraClusterEdges: ClusterEdge[]
|
||||
interClusterEdges: ClusterEdge[]
|
||||
relationshipSummary: {
|
||||
totalEdges: number
|
||||
intraClusterEdges: number
|
||||
interClusterEdges: number
|
||||
edgeTypes: Record<string, number>
|
||||
}
|
||||
}
|
||||
|
||||
export interface DomainCluster extends SemanticCluster {
|
||||
domain: string
|
||||
domainConfidence: number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue