Skip to main content

Module prompts

Module prompts 

Source
Expand description

Prompt templates for LLM-based extraction Prompt templates for LLM-based entity and relationship extraction

Based on Microsoft GraphRAG prompts with structured JSON output

Structs§

EntityData
Represents an entity extracted from text with its metadata.
ExtractionOutput
Structured extraction output from LLM entity and relationship analysis.
PromptBuilder
Prompt builder for entity extraction
RelationshipData
Represents a relationship between two extracted entities.

Constants§

COMPLETION_CHECK_PROMPT
Completion check prompt to determine if extraction is complete
ENTITY_EXTRACTION_JSON_SCHEMA
JSON schema for entity extraction output
ENTITY_EXTRACTION_PROMPT
Entity extraction prompt template (Microsoft GraphRAG style)
GLEANING_CONTINUATION_PROMPT
Gleaning continuation prompt for additional rounds