Skip to content

Commit db4b777

Browse files
committed
correct format
1 parent 45ddc3e commit db4b777

File tree

1 file changed

+4
-2
lines changed
  • libs/experimental/langchain_experimental/graph_transformers

1 file changed

+4
-2
lines changed

libs/experimental/langchain_experimental/graph_transformers/llm.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
DEFAULT_NODE_TYPE = "Node"
1919

20-
examples_advanced = [
20+
examples_advanced = [
2121
{
2222
"text": "Adam (age 35) works at Microsoft since 2009",
2323
"head": "Adam",
@@ -317,6 +317,7 @@ class UnstructuredRelationAdvanced(BaseModel):
317317
description="Properties of the relationship itself",
318318
)
319319

320+
320321
class UnstructuredRelation(BaseModel):
321322
head: str = Field(
322323
description=(
@@ -338,6 +339,7 @@ class UnstructuredRelation(BaseModel):
338339
description="type of the extracted tail entity like Person, Company, etc"
339340
)
340341

342+
341343
def create_unstructured_prompt(
342344
node_labels: Optional[List[str]] = None,
343345
rel_types: Optional[Union[List[str], List[Tuple[str, str, str]]]] = None,
@@ -452,7 +454,7 @@ def create_unstructured_prompt(
452454
"crucial.",
453455
"IMPORTANT NOTES:\n- Don't add any explanation and text. ",
454456
additional_instructions,
455-
]
457+
]
456458
human_string_parts_advanced = [
457459
"Based on the following example, extract entities, relationships, "
458460
"entity properties, and relation properties from the provided text.",

0 commit comments

Comments
 (0)