dspy
dspy copied to clipboard
DSPy: The framework for programming—not prompting—language models
What is best way to deploy the compiled model ? Do we need to run the compilation pipeline for every input or we just take the compiled model and deploy...
I am trying to use the dspy.HFModel object to load models locally. I keep getting ``` ValueError: temperature has to be a strictly positive float, but is 0.0 ``` I...
We are working on building a model that outputs a list of outputs per input context. In LangChain, we can use output parsers to enforce list-like formats as follows: ```py...
Here's my simple example program. ```python import dspy from dspy.predict.retry import Retry from dspy.primitives.assertions import ( assert_transform_module, suggest_backtrack_handler, ) turbo = dspy.OpenAI(model="gpt-3.5-turbo", max_tokens=1000) dspy.settings.configure(lm=turbo, trace=[]) class GenerateQuestions(dspy.Signature): concept = dspy.InputField(desc="a...
I am working with a pipeline where I'm using my own retriever class instead of the dspy retrievers. The goal is to develop a RAG model to extract data from...
## What? Interface metadata filters in dspy.Retrieve classes such as the Weaviate / Mongo / Pinecone / Qdrant / Chroma RMs. ## Why? Symbolic filters can be used to improve...
Having doc-strings on methods and classes would be very helpful. E.g., I'm currently trying to figure out how the `parse_structure`, `attach` and `add_field` methods on `Signature` work. But they are...
I am trying the first notebook and the server times out. I don't know if the Colbert Server is out currently. This is the error message I get: ConnectTimeout: HTTPConnectionPool(host='20.102.90.50',...