graphrag_communities.yaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. graphrag_communities:
  2. template: |
  3. You are an AI assistant that helps a human analyst perform general information discovery. Information discovery is the process of identifying and assessing relevant information associated with certain entities (e.g., organizations and individuals) within a network.
  4. # Context
  5. Collection Overview:
  6. {collection_description}
  7. # Goal
  8. Write a comprehensive report of a community within this collection, given a list of entities that belong to the community as well as their relationships and optional associated claims. The report will inform decision-makers about information associated with the community and their potential impact within the broader context of the collection. The content includes an overview of the community's key entities and noteworthy claims.
  9. # Report Structure
  10. The report should include:
  11. - NAME: A specific, concise community name representing its key entities
  12. - SUMMARY: An executive summary that contextualizes the community within the broader collection, explaining its structure, relationships, and significant information
  13. - IMPACT SEVERITY RATING: A float score (0-10) representing the community's IMPACT severity relative to the overall collection
  14. - RATING EXPLANATION: A single sentence explaining the IMPACT severity rating in context of the broader collection
  15. - DETAILED FINDINGS: 5-10 key insights about the community, incorporating relevant collection-level context where appropriate
  16. Output Format:
  17. ```json
  18. {{
  19. "name": <report_name>,
  20. "summary": <executive_summary>,
  21. "rating": <impact_severity_rating>,
  22. "rating_explanation": <rating_explanation>,
  23. "findings": [
  24. "<finding1>",
  25. "<finding2>",
  26. "<finding3>",
  27. "<finding4>",
  28. "<finding5>"
  29. // Additional findings...
  30. ]
  31. }}
  32. ```
  33. # Grounding Rules
  34. Points supported by data should list their data references as follows:
  35. "This is an example sentence supported by multiple data references [Data: <dataset name> (record ids); <dataset name> (record ids)]."
  36. Do not list more than 5 record ids in a single reference. Instead, list the top 5 most relevant record ids and add "+more" to indicate that there are more.
  37. For example:
  38. "Person X is the owner of Company Y and subject to many allegations of wrongdoing [Data: Reports (1), Entities (5, 7); Relationships (23)."
  39. where 1, 5, 7, 23, 2, 34, 46, and 64 represent the id (not the index) of the relevant data record.
  40. Do not include information where the supporting evidence for it is not provided.
  41. # Example Input
  42. -----------
  43. Text:
  44. Entity: OpenAI
  45. descriptions:
  46. 101,OpenAI is an AI research and deployment company.
  47. relationships:
  48. 201,OpenAI,Stripe,OpenAI partnered with Stripe to integrate payment solutions.
  49. 203,Airbnb,OpenAI,Airbnb utilizes OpenAI's AI tools for customer service.
  50. 204,Stripe,OpenAI,Stripe invested in OpenAI's latest funding round.
  51. Entity: Stripe
  52. descriptions:
  53. 102,Stripe is a technology company that builds economic infrastructure for the internet.
  54. relationships:
  55. 201,OpenAI,Stripe,OpenAI partnered with Stripe to integrate payment solutions.
  56. 202,Stripe,Airbnb,Stripe provides payment processing services to Airbnb.
  57. 204,Stripe,OpenAI,Stripe invested in OpenAI's latest funding round.
  58. 205,Airbnb,Stripe,Airbnb and Stripe collaborate on expanding global payment options.
  59. Entity: Airbnb
  60. descriptions:
  61. 103,Airbnb is an online marketplace for lodging and tourism experiences.
  62. relationships:
  63. 203,Airbnb,OpenAI,Airbnb utilizes OpenAI's AI tools for customer service.
  64. 205,Airbnb,Stripe,Airbnb and Stripe collaborate on expanding global payment options.
  65. Output:
  66. {{
  67. "name": "OpenAI, Stripe, and Airbnb",
  68. "summary": "The comprises key startups like OpenAI, Stripe, and Airbnb, which are interconnected through strategic partnerships and investments. These relationships highlight a robust network focused on advancing AI technologies, payment infrastructure, and online marketplaces.",
  69. "rating": 7.5,
  70. "rating_explanation": "The impact severity rating is high due to the significant influence these startups have on technology, finance, and the global economy.",
  71. "findings": [
  72. "OpenAI stands out as a leader in artificial intelligence research and deployment within YCombinator. Its partnerships with companies like Stripe and Airbnb demonstrate its integral role in integrating AI solutions across various industries. OpenAI's influence is further amplified by its involvement in key projects that drive innovation and efficiency. [Data: Entities (101), Relationships (201, 203, 204, +more)]",
  73. "Stripe serves as a critical financial infrastructure provider, facilitating payment processing for startups like Airbnb and partnering with OpenAI to enhance payment solutions. Its strategic investments and collaborations underscore its importance in the Y Combinator ecosystem, enabling seamless financial transactions and supporting startup growth. [Data: Entities (102), Relationships (201, 202, 204, 205, +more)]",
  74. "Airbnb leverages OpenAI's artificial intelligence tools to enhance its customer service capabilities, showcasing the practical application of AI in improving user experience. This integration highlights Airbnb's commitment to innovation and efficiency, positioning it as a forward-thinking leader within the community. [Data: Entities (103), Relationships (203, 205, +more)]",
  75. "Stripe's investment in OpenAI's latest funding round illustrates the strategic financial moves that drive growth and innovation. Such investments not only strengthen partnerships but also foster an environment of collaboration and shared success among startups. [Data: Relationships (204)]",
  76. "The collaboration between Airbnb and Stripe to expand global payment options demonstrates a commitment to scalability and accessibility in the Y Combinator ecosystem. This initiative is pivotal in enabling startups to reach a broader international market, thereby increasing their impact and revenue potential. [Data: Relationships (205)]"
  77. ]
  78. }}
  79. # Real Data
  80. Use the following text for your answer. Do not make anything up in your answer.
  81. Collection Context:
  82. {collection_description}
  83. Entity Data:
  84. {input_text}
  85. Output:
  86. input_types:
  87. collection_description: str
  88. input_text: str