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

Using `pandas==2.1.4` I get the warning ``` dspy/evaluate/evaluate.py:143: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead. df = df.applymap(truncate_cell) ``` each time I use dspy.

Somehow, https://github.com/stanfordnlp/dspy/blob/main/examples/functional/functional.ipynb works for me on github, but when I try to run the ``` predictor = TypedPredictor(CodeSignature) prediction = predictor( prompt=PythonCode(code=ds['test'][0]['prompt']), test=PythonCode(code=ds['test'][0]['test']), entry_point=ds['test'][0]['entry_point'] ) print(prediction) ``` section in a...

bug

The `PgVectorRm` allows users to select fields from the PG DB but those examples are not passed through. It looks like only the fields `long_text` and `document_id` are passed through....

The `PgVectorRm` hardcodes the embedding model to be `text-embedding-ada-002`. They have new embedding models and it'd be great to allow users to specify this. https://github.com/stanfordnlp/dspy/blob/01455bd20f5770819aff9edc0b43915203f71cbd/dspy/retrieve/pgvector_rm.py

As per our discussions, I ran `ruff . --fix` on the entire code base. I had to change a few things to get the tests to still run: ``` [tool.ruff.lint.per-file-ignores]...

## 📝 Changes Description This MR/PR contains the following changes: ... ## ✅ Contributor Checklist - [x] Pre-Commit checks are passing (locally and remotely) - [x] Title of your PR...

Currently, if you call a module without all the input fields it requires, you get a warning, e.g. `WARNING: Not all input fields were provided to module. Present: []. Missing:...

enhancement

For a few days now I have been trying to use these [example](https://github.com/stanfordnlp/dspy/blob/main/examples/tweets/compiling_langchain.ipynb) to develop RAG solution with DSPy using models downloaded from Huggingface but the integration has GPT4 hardcoded....

adapters

I just came across `dSPY` and am looking forward to trying it out. I started by running `intro.ipynb`. I then found that `pkg_resources` is not part of the requirements.txt file....

![image](https://github.com/stanfordnlp/dspy/assets/48504366/a1d22ed8-1f6c-45be-bd85-6a9449c9efc0) ![image](https://github.com/stanfordnlp/dspy/assets/48504366/f5ff917d-993f-4c38-9043-700fe2597274) ![image](https://github.com/stanfordnlp/dspy/assets/48504366/1db90ad5-ad77-43e2-90a4-8f938b9d9757)