UNPKG

zrald

Version:

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

29 lines 1.32 kB
import { BaseOperator } from './base-operator.js'; import { FromRelOperatorConfig, OccurrenceOperatorConfig, OperatorResult } from '../types/graph.js'; import { GraphDatabase } from '../core/graph-database.js'; import { VectorStore } from '../core/vector-store.js'; /** * FromRel Operator - Text chunk tracing * Traces backward from relationships to find the original text chunks that established those connections */ export declare class FromRelOperator extends BaseOperator { constructor(graphDb: GraphDatabase, vectorStore: VectorStore); execute(config: FromRelOperatorConfig): Promise<OperatorResult>; private findRelationshipById; private findChunksForRelationship; private searchChunksForTerms; private getContextChunks; private calculateChunkRelevanceScore; } /** * Occurrence Operator - Entity co-occurrence analysis * Identifies passages where specified entities appear together, capturing contextual co-occurrence patterns */ export declare class OccurrenceOperator extends BaseOperator { constructor(graphDb: GraphDatabase, vectorStore: VectorStore); execute(config: OccurrenceOperatorConfig): Promise<OperatorResult>; private findCoOccurrenceChunks; private getAllChunks; private analyzeChunkCoOccurrence; } //# sourceMappingURL=chunk-operators.d.ts.map