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§
- Entity
Data - Represents an entity extracted from text with its metadata.
- Extraction
Output - Structured extraction output from LLM entity and relationship analysis.
- Prompt
Builder - Prompt builder for entity extraction
- Relationship
Data - 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