mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 19:21:03 +02:00
config for testing
This commit is contained in:
parent
bc64f2dba2
commit
573e44036b
2 changed files with 5 additions and 5 deletions
|
|
@ -96,7 +96,8 @@ setuptools.setup(
|
|||
"scripts/graph-rag",
|
||||
"scripts/kg-extract-definitions",
|
||||
"scripts/kg-extract-relationships",
|
||||
"scripts/kg-extract-topics",
|
||||
"scripts/kg-extract-agent",
|
||||
# "scripts/kg-extract-topics",
|
||||
"scripts/kg-store",
|
||||
"scripts/kg-manager",
|
||||
"scripts/librarian",
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"prompt": {
|
||||
"template.agent-kg-extract": {
|
||||
"id": "agent-kg-extract",
|
||||
"prompt": "Analyze the following text and extract both entity definitions and relationships. Return the results as JSON with 'definitions' and 'relationships' arrays.\n\nFor definitions, extract entities and their explanations or descriptions.\nFor relationships, extract subject-predicate-object triples where subjects and objects are entities, and predicates are relationship types.\n\nText: {{text}}\n\nReturn JSON only, no other text. Use this exact format:\n{\n \"definitions\": [\n {\n \"entity\": \"entity_name\",\n \"definition\": \"definition_text\",\n \"context\": \"surrounding_context\"\n }\n ],\n \"relationships\": [\n {\n \"subject\": \"subject_entity\",\n \"predicate\": \"relationship_type\",\n \"object\": \"object_entity_or_literal\",\n \"object-entity\": true\n }\n ]\n}",
|
||||
"prompt": "Analyze the following text and extract both entity definitions and relationships. Return the results as JSON with 'definitions' and 'relationships' arrays.\n\nFor definitions, extract entities and their explanations or descriptions.\nFor relationships, extract subject-predicate-object triples where subjects and objects are entities, and predicates are relationship types.\n\nText: {{text}}\n\nReturn JSON only, no other text. Use this exact format:\n{\n \"definitions\": [\n {\n \"entity\": \"entity_name\",\n \"definition\": \"definition_text\",\n }\n ],\n \"relationships\": [\n {\n \"subject\": \"subject_entity\",\n \"predicate\": \"relationship_type\",\n \"object\": \"object_entity_or_literal\",\n \"object-entity\": true\n }\n ]\n}",
|
||||
"response-type": "json",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
|
|
@ -14,9 +14,8 @@
|
|||
"properties": {
|
||||
"entity": {"type": "string"},
|
||||
"definition": {"type": "string"},
|
||||
"context": {"type": "string"}
|
||||
},
|
||||
"required": ["entity", "definition", "context"]
|
||||
"required": ["entity", "definition"]
|
||||
}
|
||||
},
|
||||
"relationships": {
|
||||
|
|
@ -37,4 +36,4 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue