Open josh-melton-db opened 6 days ago
TypeError: DatabricksRM.forward() got an unexpected keyword argument 'k'
File
ah we just need to add k
as a optional parameter to the DatabricksRM
forward pass since the DSPy retriever interface configures this in the kwargs (might have just been missed in the implementation). Other RM providers have this as well (reference).
Let me know if that resolves this and we can get a PR going to update that!
Following the pattern from the simple RAG Example in the docs, I've created a DatabricksRM which works when calling like
rm(query="Model serving API", query_type="text")
But when trying to use dspy.settings.configure(rm=rm) and dspy.Retrieve() like below
I get
TypeError: DatabricksRM.forward() got an unexpected keyword argument 'k'