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

System: Wsl-Ubuntu22.04 Python-Version: python3.10.12 Dspy-Version: 2.4.5 Ollama: In Windows Run Qwen:32b When I use dspy ollamalocal to call, an error will be reported in the request package. ~~~/python import dspy...

Clean up `predict/knn` and `teleprompt/knn_fewshot`: * Added a optional `vectorizer` instead of using hardcoded `SentenceTransformer` one * Clean up constructor a bit

Hi Team, In an effort to increase transparency and type safety, the below PR does the following: 1. Make Dataloader/Dataset objects Pydantic & Type Safe 2. Make Dataloader/Dataset consistent. Some...

It will be useful to have the ability to persist the model prompt/generation cache to the disk, and later load it from disk, especially when model calls are expensive, and...

In my tests, versions of [openai](https://github.com/openai/openai-python) above `1.0.0` are working correctly, however versions below `0.28.1` are crashing with the error: ``` choices = response["choices"] ~~~~~~~~^^^^^^^^^^^ KeyError: 'choices ``` but as...

Allow the dump_state/load_state methods in dspy.Predict to include prefix and desc for all signature fields

The file `dsp/modules/finetuning/finetune_hf.py` has a dependency on the module [evaluate](https://github.com/huggingface/evaluate/tree/main) coming from the copy of https://www.philschmid.de/fine-tune-flan-t5#3-fine-tune-and-evaluate-flan-t5, but this dependency is never installed, leading to an error when playing with fine-tuning....

likely a user error but i think I have followed the documentation. Thus, I am not sure why it is giving me this error message. ```python def list_parser(x:str) -> list:...

Currently the dump_state / load_state method in dspy.Predict only saves signature_instructions and signature_prefix - the prefix for the final key in the signature: ``` def dump_state(self): ............ # Cache the...

bug
Behavior 2.5