UNPKG

zrald

Version:

Advanced Graph RAG MCP Server with sophisticated graph structures, operators, and agentic capabilities for AI agents

37 lines 1.17 kB
import { PassageGraph, TreesGraph, KnowledgeGraph, DAG } from '../types/graph.js'; import { EmbeddingGenerator } from './embedding-generator.js'; export declare class GraphBuilder { private embeddingGenerator; constructor(embeddingGenerator: EmbeddingGenerator); buildPassageGraph(documents: Array<{ id: string; content: string; metadata?: any; }>): Promise<PassageGraph>; buildTreesGraph(hierarchicalData: Array<{ id: string; content: string; parent_id?: string; level: number; metadata?: any; }>): Promise<TreesGraph>; buildKnowledgeGraph(triples: Array<{ subject: string; predicate: string; object: string; metadata?: any; }>): Promise<KnowledgeGraph>; buildDAG(tasks: Array<{ id: string; name: string; description: string; dependencies: string[]; metadata?: any; }>): Promise<DAG>; private addSimilarityRelationships; private extractSimpleEntities; private determineNodeType; private formatLabel; private normalizeRelationType; } //# sourceMappingURL=graph-builders.d.ts.map