Skip to content

Commit 2f9442d

Browse files
committed
fix: correct DeepAcyclicGraph import path in DAG docs
The Usage section showed `from deepeval.dag import DeepAcyclicGraph` which raises ModuleNotFoundError. The correct import is `from deepeval.metrics.dag import DeepAcyclicGraph`, consistent with all other examples in the same file. Fixes #2640
1 parent faab50d commit 2f9442d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/content/docs/(custom)/metrics-dag.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You'll also need to supply any additional arguments such as `expected_output` an
6262
The `DAGMetric` can be used to evaluate single-turn LLM interactions based on LLM-as-a-judge decision-trees.
6363

6464
```python
65-
from deepeval.dag import DeepAcyclicGraph
65+
from deepeval.metrics.dag import DeepAcyclicGraph
6666
from deepeval.metrics import DAGMetric
6767

6868
dag = DeepAcyclicGraph(root_nodes=[...])

0 commit comments

Comments
 (0)