🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
chore: Update KG agent prompt to reduce bugs in extacting nodes and relationships (#1902)
Tommeychang1fa05dbda87c
diff --git a/camel/agents/knowledge_graph_agent.py b/camel/agents/knowledge_graph_agent.pyindex 714eb3f43..8c8efb658 100644--- a/camel/agents/knowledge_graph_agent.py+++ b/camel/agents/knowledge_graph_agent.py@@ -70,6 +70,9 @@ provided Node and Relationship classes.Ensure that the extracted data adheres to the structure defined by the classes.Output the structured data in a format that can be easily validated againstthe provided code.+Do not wrap the output in lists or dictionaries, provide the Node and Relationship with unique identifiers.+Strictly follow the format provided in the example output, do not add any additional information.+Instructions for you:Read the provided content thoroughly.