DSPy: The framework for programming—not prompting—language models
Python
feature(dspy): generate a graphical representation of modules
Franck Stephane Ndzomgacad5291312a8
diff --git a/dspy/experimental/__init__.py b/dspy/experimental/__init__.pyindex b737828ac..cb78adc72 100644--- a/dspy/experimental/__init__.py+++ b/dspy/experimental/__init__.py@@ -1,3 +1,4 @@+from module_graph import *+from .synthesizer import *from .synthetic_data import *-from module_graph import *diff --git a/dspy/experimental/module_graph.py b/dspy/experimental/module_graph.pyindex 7bb315e46..66cbe6866 100644--- a/dspy/experimental/module_graph.py+++ b/dspy/experimental/module_graph.py@@ -51,7 +51,7 @@ class ModuleGraph:'ChainOfThought': '__ChainOfThought','ProgramOfThought': '__ProgramOfThought','MultiChainComparison': '__MultiChainComparison',- 'majority': '__majority'+ 'majority': '__majority',}for key, suffix in type_map.items():