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

I am currently integrating Langfuse with the DSPy framework in my project. While I can see the traces in the Langfuse dashboard, the cost and token usage values are always...

TypeError: cannot pickle '_thread.RLock' object python: 3.12.4 dspy: 2.4.13 ```python from dspy.evaluate import Evaluate def validate_answer(example, pred, trace=None): return example.y_true.lower() == pred.answer.lower() NUM_THREADS = 5 evaluate = Evaluate(devset=devset, metric=validate_answer, num_threads=NUM_THREADS,...

Developing a Dockerfile for dspy @okhat @hmoazam, ref issue https://github.com/stanfordnlp/dspy/issues/1380

I'm encountering a problem when using BootstrapFewShot with custom language models (LM) and datasets. Specifically, I receive an error when setting max_rounds to a value greater than 1: ```py ......

As of January 2024, serverless pinecone indexes don't have an environment variable and it is not possible to run the PineconeRM method without an environment variable at the moment. Are...

I would like to request support for **providing AWS credentials directly as input parameters** in the **dspy.Bedrock** function **Current Behavior:** Currently, the dspy.Bedrock function supports setting the AWS region and...

LM Issues

--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) [](https://localhost:8080/#) in () 1 from llama_index.core.query_pipeline import QueryPipeline as QP, InputComponent, FnComponent ----> 2 from dspy.predict.llamaindex import DSPyComponent, LlamaIndexModule 3 4 dspy_component =...

The `dspy/retrieve/mongodb_atlas_rm.py` is missing a `dspy` import. Running the import gives the following error. `from dspy.retrieve.mongodb_atlas_rm import MongoDBAtlasRM` ``` Error: ---> 71 class MongoDBAtlasRM(dspy.Retrieve): 72 def __init__( 73 self, 74...

see [dspy](https://github.com/Meiye-lj/Dockerfiles/tree/master/dspy)

Hi all I am trying to use the LM Mistral in the dspy library with the following code: ``` llm = dspy.Mistral( model="mistral-large-latest", api_key="secret", ) ``` However, I encounter the...