llm: api_key: ${GRAPHRAG_API_KEY} type: openai_chat # or azure_openai_chat model: glm-4-flash model_supports_json: true # recommended if this is available for your model. api_base: https://open.bigmodel.cn/api/paas/v4/ max_tokens: 4096 concurrent_requests: 5 # the number of parallel inflight requests that may be made tokens_per_minute: 1500000 # set a leaky bucket throttle requests_per_minute: 300 # set a leaky bucket throttle top_p: 0.99 temperature: 0 max_retries: 3 max_retry_wait: 10 sleep_on_rate_limit_recommendation: true # whether to sleep when azure suggests wait-times
-Goal- Given a text document that is potentially relevant to this activity and a list of entity types, identify all entities of those types from the text and all relationships among the identified entities.
-Steps- 1. Identify all entities. For each identified entity, extract the following information: - entity_name: Name of the entity, capitalized - entity_type: One of the following types: [人物 地点 事件 法宝 妖怪 组织 章节] ....