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

``` Python import chromadb.utils.embedding_functions as embedding_functions huggingface_ef = embedding_functions.HuggingFaceEmbeddingFunction( api_key="My API Token", model_name="sentence-transformers/all-MiniLM-L6-v2" ) from dspy.retrieve.chromadb_rm import ChromadbRM retriever_model = ChromadbRM( 'history_data', './chromadb', embedding_function=huggingface_ef, k=5 ) results = retriever_model("", k=5)...

Adding support for using Snowflake's Cortex API with DSPy. This includes an implementation of a Snowflake LM as well as a Snowflake RM.

When using HFModel, the entire prompt is included in the output Prediction. It works as expected using Ollama Sorry, I could not test it with the same model. My laptop...

## 📝 Changes Description This PR contains the following changes: - migrated setuptools to poetry - remove poetry main project stuffs and move them to the tool.dependencies - export the...

This PR is a follow up on top of [616](https://github.com/stanfordnlp/dspy/pull/616) where the support of googlevertexai client was added. I found out with the recent PR it only works for text-based...

Assertion: Student and teacher must have the same number of predictors. Code sample to repro: optimizer = BootstrapFewShotWithRandomSearch( metric=MyModule.metric, teacher_settings=dict({"lm": teacher_lm}), ) teacher_module, _ = MyModule.load_compiled_model() for _ in range(2):...

Behavior 2.5

In l71 of predict.py, there is a logic to use the lm from the kwargs: `lm = kwargs.pop("lm", self.lm) or dsp.settings.lm`, but the `generate` call does not use it. This...

Bedrock LM produces extraneous key error in unclear circumstances #365

Specifically there are no clear instructions on what a `tool` is. The docs reference a class called `dspy.Tool` which doesn't seem to exist. https://github.com/stanfordnlp/dspy/blob/2d845de186b5d47a34c3f843cfc250be679087c0/docs/api/modules/ReAct.md?plain=1#L24 Overall find it very hard to...

# `wandb_enabled` to `BootstrapFewShot` Here is a minimal first step to adding Weights & Biases optimization logging to DSPy. This can be used for monitoring runs to `BootstrapFewShot` in order...