Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

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.py
index 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 against
the 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.