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

Are there any examples that support local multimodal large models? Including data format, model loading method

```python3 import dspy from dspy.evaluate import Evaluate from dspy.teleprompt import BootstrapFewShot, BootstrapFewShotWithRandomSearch llm = dspy.LM("gemini/gemini-1.5-pro", max_tokens=20) dspy.configure(lm=llm) class BasicQA(dspy.Signature): """Answer questions with short factoid answers.""" question = dspy.InputField() answer =...

DSPy is very powerful and has helped me a lot in my work. Currently, the DSPy library only has chain of thought. Perhaps it could be possible to implement tree...

This is an opinion, but it would be great if the different signatures had links back to source code. E.g. https://dspy-docs.vercel.app/deep-dive/modules/react/ should link back to https://github.com/stanfordnlp/dspy/blob/main/dspy/predict/react.py

documentation

In some rare cases, some of the fields of a DSPy signature might have name conflicts with reserved attributes we use internally for signatures. For example, the following signature will...

`# Step 1: Import necessary libraries and modules import dspy from dspy.teleprompt import BootstrapFewShot from dspy.evaluate.evaluate import Evaluate from sklearn.model_selection import train_test_split import pandas as pd import random import weave...

Seems from the latest release when we use `dspy.utils`, it's actually referring to module `dspy.signatures.utils` instead of `dspy.utils`, this is a bit confusing. Repro: ``` >>> import dspy >>> dspy.utils...

If we define `ChainOfThought("question -> answer")`, the default `signature.instructions` does not get updated when the CoT module does `signature.prepend("reasoning", …)`, resulting in the following instruction in the system message “Given...

There are a few places where getting to root errors is difficult because of the retry attempts and how errors are being preserved. I noticed for example that it was...

Labels: `documentation` ### Description The link to CONTRIBUTING.md in the README is broken since version 2.5.0, where the file was removed. This prevents new contributors from accessing contribution guidelines. ###...