Use this file to discover all available pages before exploring further.
GraphRAG uses prompts to guide LLMs in extracting entities, relationships, and generating summaries. Customizing these prompts for your specific domain can significantly improve the quality and relevance of your knowledge graph.
-Goal-Given a text document, identify all entities and their relationships.-Steps-1. Identify all entities in the text2. For each entity, extract relevant attributes3. Identify relationships between entities4. Format the output as specified-Entity Types-- PERSON: Human individuals- ORGANIZATION: Companies, institutions- LOCATION: Physical or virtual places- EVENT: Significant occurrences-Output Format-Return a JSON object with entities and relationships.
Define domain-specific entities for medical documents:
prompts/medical_entities.txt
-Goal-Extract medical entities and relationships from clinical documents.-Entity Types-- PATIENT: Individual receiving medical care- CONDITION: Medical diagnosis or symptom- MEDICATION: Drugs or treatments- PROCEDURE: Medical interventions- PROVIDER: Healthcare professionals- FACILITY: Healthcare institutions-Relationship Types-- TREATS: Medication treats condition- DIAGNOSED_WITH: Patient has condition- PRESCRIBED_BY: Provider prescribes medication- PERFORMED_AT: Procedure at facility-Examples-[Provide domain-specific examples here]
2
Customize community reports
Tailor community summaries for medical insights:
prompts/medical_community_report.txt
-Goal-Generate a medical community summary highlighting:- Common conditions and treatments- Treatment efficacy patterns- Patient outcome trends- Provider specializations-Report Structure-# Community Medical Summary## Overview[Brief description of the medical community]## Key Conditions[Most prevalent diagnoses and symptoms]## Treatment Patterns[Common medications and procedures]## Outcomes[Success rates and patient progress]
-Entity Types-- CASE: Legal cases and proceedings- STATUTE: Laws and regulations- PARTY: Plaintiffs, defendants, entities- COURT: Judicial bodies- LEGAL_CONCEPT: Legal principles and precedents-Relationship Types-- CITES: Case cites statute or precedent- PARTY_TO: Entity involved in case- RULED_BY: Court ruling on case- APPLIES: Statute applies to case
-Entity Types-- RESEARCHER: Scientists and authors- INSTITUTION: Research organizations- CONCEPT: Scientific theories and methods- EXPERIMENT: Research studies- FINDING: Research results and discoveries- CHEMICAL: Compounds and substances-Relationship Types-- CONDUCTED_BY: Experiment performed by researcher- AFFILIATED_WITH: Researcher at institution- SUPPORTS: Finding supports concept- USES: Experiment uses chemical
-Entity Types-- COMPANY: Business entities- PRODUCT: Goods and services- MARKET: Industry segments- EXECUTIVE: Business leaders- METRIC: Performance indicators- STRATEGY: Business initiatives-Relationship Types-- COMPETES_WITH: Company market competition- OFFERS: Company provides product- LEADS: Executive heads company- TARGETS: Product targets market
-Reasoning Process-1. First, identify all named entities in the text2. Then, determine the type of each entity based on context3. Next, find relationships by analyzing entity interactions4. Finally, extract supporting evidence for each relationship