Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

update API doc (#8219)

TomuHirata23f8065e3938
diff --git a/docs/docs/api/models/LM.md b/docs/docs/api/models/LM.md
index 0eecbd830..cb9a7442f 100644
--- a/docs/docs/api/models/LM.md
+++ b/docs/docs/api/models/LM.md
@@ -16,6 +16,7 @@
- inspect_history
- kill
- launch
+ - reinforce
- update_global_history
show_source: true
show_root_heading: true
diff --git a/docs/docs/api/modules/ReAct.md b/docs/docs/api/modules/ReAct.md
index a2f728e80..06bb8227d 100644
--- a/docs/docs/api/modules/ReAct.md
+++ b/docs/docs/api/modules/ReAct.md
@@ -7,6 +7,7 @@
members:
- __call__
- acall
+ - aforward
- batch
- deepcopy
- dump_state
diff --git a/docs/docs/api/optimizers/MIPROv2.md b/docs/docs/api/optimizers/MIPROv2.md
index edb711e0f..920bc782a 100644
--- a/docs/docs/api/optimizers/MIPROv2.md
+++ b/docs/docs/api/optimizers/MIPROv2.md
@@ -64,4 +64,4 @@ These steps are broken down in more detail below:
3) **Find an Optimized Combination of Few-Shot Examples & Instructions**. Finally, we use Bayesian Optimization to choose which combinations of instructions and demonstrations work best for each predictor in our program. This works by running a series of `num_trials` trials, where a new set of prompts are evaluated over our validation set at each trial. The new set of prompts are only evaluated on a minibatch of size `minibatch_size` at each trial (when `minibatch`=`True`). The best averaging set of prompts is then evalauted on the full validation set every `minibatch_full_eval_steps`. At the end of the optimization process, the LM program with the set of prompts that performed best on the full validation set is returned.
-For those interested in more details, more information on `MIPROv2` along with a study on `MIPROv2` compared with other DSPy optimizers can be found in [this paper](https://arxiv.org/abs/2406.11695).
+For those interested in more details, more information on `MIPROv2` along with a study on `MIPROv2` compared with other DSPy optimizers can be found in [this paper](https://arxiv.org/abs/2406.11695).
diff --git a/docs/docs/api/primitives/Tool.md b/docs/docs/api/primitives/Tool.md
index 495939e1d..866d8f43f 100644
--- a/docs/docs/api/primitives/Tool.md
+++ b/docs/docs/api/primitives/Tool.md
@@ -7,6 +7,7 @@
members:
- __call__
- acall
+ - from_mcp_tool
show_source: true
show_root_heading: true
heading_level: 2