Skip to main content

Module llm_relationship_extractor

Module llm_relationship_extractor 

Source
Expand description

LLM-based relationship extraction module LLM-based relationship extraction following Microsoft GraphRAG methodology

This module implements proper entity-relationship extraction using LLM prompts instead of simple pattern matching. It extracts entities and relationships together in a single LLM call, following the best practices from Microsoft GraphRAG and LightRAG.

Structsยง

ExtractedEntity
Extracted entity with metadata
ExtractedRelationship
Extracted relationship with metadata
ExtractionResult
Combined extraction result from LLM
LLMRelationshipExtractor
LLM-based relationship extractor