DSPy: The framework for programming—not prompting—language models
Python
docs(deployment): convert GitHub-flavored [!NOTE] alert to MkDocs admonition (#9690)
Isaac Millera7e996df069f
diff --git a/docs/docs/tutorials/deployment/index.md b/docs/docs/tutorials/deployment/index.mdindex 58c709e23..f1f2cab7e 100644--- a/docs/docs/tutorials/deployment/index.md+++ b/docs/docs/tutorials/deployment/index.md@@ -149,11 +149,12 @@ Then we can define the DSPy program and log it to the MLflow server. "log" is anwe store the program information along with environment requirements in the MLflow server. This is done via the `mlflow.dspy.log_model()`function, please see the code below:-> [!NOTE]-> As of MLflow 2.22.0, there is a caveat that you must wrap your DSPy program in a custom DSPy Module class when deploying with MLflow.-> This is because MLflow requires positional arguments while DSPy pre-built modules disallow positional arguments, e.g., `dspy.Predict`-> or `dspy.ChainOfThought`. To work around this, create a wrapper class that inherits from `dspy.Module` and implement your program's-> logic in the `forward()` method, as shown in the example below.+!!! note++ As of MLflow 2.22.0, there is a caveat that you must wrap your DSPy program in a custom DSPy Module class when deploying with MLflow.+ This is because MLflow requires positional arguments while DSPy pre-built modules disallow positional arguments, e.g., `dspy.Predict`+ or `dspy.ChainOfThought`. To work around this, create a wrapper class that inherits from `dspy.Module` and implement your program's+ logic in the `forward()` method, as shown in the example below.```pythonimport dspy