mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 22:15:08 +00:00
experimental: Fix llm graph transformer bug (#21362)
This commit is contained in:
parent
bb81ae5c8c
commit
ad3fd44a7f
@ -531,8 +531,8 @@ class LLMGraphTransformer:
|
|||||||
source=source_node, target=target_node, type=rel["relation"]
|
source=source_node, target=target_node, type=rel["relation"]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# Create nodes list
|
# Create nodes list
|
||||||
nodes = [Node(id=el[0], type=el[1]) for el in list(nodes_set)]
|
nodes = [Node(id=el[0], type=el[1]) for el in list(nodes_set)]
|
||||||
|
|
||||||
# Strict mode filtering
|
# Strict mode filtering
|
||||||
if self.strict_mode and (self.allowed_nodes or self.allowed_relationships):
|
if self.strict_mode and (self.allowed_nodes or self.allowed_relationships):
|
||||||
|
Loading…
Reference in New Issue
Block a user