Commit
·
56403af
1
Parent(s):
21a4fb6
method docu added
Browse files
kg_builder/src/api_connections.py
CHANGED
|
@@ -47,6 +47,13 @@ def get_extraction_chain(
|
|
| 47 |
allowed_nodes: Optional[List[str]] = None,
|
| 48 |
allowed_rels: Optional[List[str]] = None
|
| 49 |
):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
if data_source_name == "Chemotherapy":
|
| 51 |
# Chemotherapy-specific prompt
|
| 52 |
prompt_text = f"""# Knowledge Graph Instructions for GPT-4
|
|
|
|
| 47 |
allowed_nodes: Optional[List[str]] = None,
|
| 48 |
allowed_rels: Optional[List[str]] = None
|
| 49 |
):
|
| 50 |
+
"""
|
| 51 |
+
TODO
|
| 52 |
+
:param data_source_name: Data source name, e.g. "Traffic Law"
|
| 53 |
+
:param allowed_nodes: TODO
|
| 54 |
+
:param allowed_rels: TODO
|
| 55 |
+
:return: TODO
|
| 56 |
+
"""
|
| 57 |
if data_source_name == "Chemotherapy":
|
| 58 |
# Chemotherapy-specific prompt
|
| 59 |
prompt_text = f"""# Knowledge Graph Instructions for GPT-4
|