dspy
dspy copied to clipboard
DSPy: The framework for programming—not prompting—language models
The app crashes in below code with a keyerror: File "/home/drawal/miniconda3/envs/xray/lib/python3.11/site-packages/dspy/primitives/module.py", line 75, in load_state param.load_state(state[name]) This is because the load function expects the top level keys in the saved...
The environment variable `DSP_CACHEBOOL` does not completely disable the filesystem cache. As a result, `joblib.Memory` is still instantiated, which will try to create a directory on the filesystem. In an...
Hi, Can DSPy support Python3.8? It currently supports >=3.9 according to the documentation.
Pratically, we should not use top_p and temperture at the same time, however, we may override temperture in some cases, but since DSPy predefine `top_p = 1`, it's impossible to...
This PR refactors the Bedrock class to support the Claude-3 model. The main changes include: 1. Added support for the Claude-3 model which uses a different API format with messages...
Hi all, This library is amazing! I added something similar to the pydantic Image class we use to abstract away all those messy conversions you need to do. Question, why...
I opened up a related issue just now https://github.com/stanfordnlp/dspy/issues/626 Basically I was getting errors when using the Together client. If I set use_chat_api to true, the response did not have...
Makes the reason for output truncation clearer as per #730 Also adds a comment to the predict file where the max tokens are modified before the call is made.
There's likely a clearer refactor of this, but as a starter for 10. It avoids python treating strings as itterables of characters and clarifies the possible input types of some...
Since the OpenAI module is setting parameters on the base openai import, it's not possible to use multiple different models that use an openai compatible api (e.g. both a local...