dspy icon indicating copy to clipboard operation
dspy copied to clipboard

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

Results 691 dspy issues
Sort by recently updated
recently updated
newest added

There are deprecation warnings ([here ](https://github.com/stanfordnlp/dspy/blob/afa654f805d0b93eb56035ecdfa2e6eb5c477d66/dspy/evaluate/evaluate.py#L56 )and [here](https://github.com/stanfordnlp/dspy/blob/afa654f805d0b93eb56035ecdfa2e6eb5c477d66/dspy/teleprompt/copro_optimizer.py#L78)) saying that the user should use `dspy,set_log_level`, which does not exist.

(dspy-ai 2.5.0) Hi dspy-team, I am getting the following error after upgrading dspy-ai to 2.5.0 when using the AvatarOptimizer. Starting the task... Processing examples: 14%|█▍ | 1/7 [00:01

As DSPy is using LiteLLM internally, I wonder how to use the LiteLLM router. In particular, I would like to add load balancing and fallbacks via LiteLLM. Another example. LiteLLM...

if dspy.Prediction is called with context = [] this causes in chat_adapter.py ``` def format_fields(fields): output = [] for k, v in fields.items(): v = _format_field_value(v) output.append(f"[[ ## {k} ##...

If you configure the LM (`dspy.settings.configure(lm=lm)`) before initializing your modules you get a different prompt to if you configure your LM after initializing your modules. ```python dspy.settings.configure(lm=lm) pot = ChainOfThought(BasicQA)...

support TEI(Text Embeddings Inference), For detailed information, visit: [https://github.com/huggingface/text-embeddings-inference](https://github.com/huggingface/text-embeddings-inference).

resolve #1045 Change summary: - Add a `dump_state`/`load_state` pair to Signature class for better modularization. - Remove the `save_verbose` option, as it doesn't make sense to change input fields to...

The PR has two parts: 1. Better progbar, currently the progbar is quite confusing because it never finishes. Instead of setting the length of progbar as the training set size,...

Firstly, thanks for the amazing package! I've done a sharing session with senior tech managers in my company, and they were quite convinced. I have some interesting insights to share...