dspy
dspy copied to clipboard
DSPy: The framework for programming—not prompting—language models
@CShorten , @okhat this should resolve #322. I removed the _init_pinecone function because I believe it shouldn't be the responsibility of the PineconeRM class to create an index. Let me...
Some of the code in template_v2 and v3 gives special treatment to names like `context`, `answer`, `answers` and `passages`. This is a bit confusing to new users, when they rename...
I'm trying to use the following prompt: ``` next_steps = dspy.OutputField( desc=""" List of 2-5 promising next steps. Use the format: x op y = z (left: ns). - x...
A few members of the community have been asking for support for streaming LM output in DSPy. @sutyum and @detaos have discussed this extensively before. One of the challenges is...
I noticed that if I update things like `dspy.Suggest`s it doesn't seem to trigger re-compilation. It just uses the cached output from the last execution.
Hello. is it possible to use BootstrapFewShotWithRandomSearch in a pipeline with a summarizer and a classification step where the few shot is not activated for the **summarize part**, only for...
Objective : 1. Modified notebook example with 2 more models.
It seems missing a key feature: "system prompt" "system prompt" impacts gpt-model significantly at least let as can put in config or somewhere else?
Now, it is possible to write `assert_transform_module(module)` to transform a module to handle suggestions and assertions. The default behavior is implemented by the `backtrack_handler`, which automatically backtracks for failing assertions...
fix #276