dspy
dspy copied to clipboard
DSPy: The framework for programming—not prompting—language models
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...
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:...
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....
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....
  