Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

fix(qdrant_rm): forward can be called without specifying k

Tanmay Garg8c410cfaf1be
diff --git a/dspy/retrieve/qdrant_rm.py b/dspy/retrieve/qdrant_rm.py
index 1ee63f275..0ffd42dd8 100644
--- a/dspy/retrieve/qdrant_rm.py
+++ b/dspy/retrieve/qdrant_rm.py
@@ -53,7 +53,7 @@ class QdrantRM(dspy.Retrieve):
super().__init__(k=k)
- def forward(self, query_or_queries: Union[str, List[str]], k: Optional[int],**kwargs) -> dspy.Prediction:
+ def forward(self, query_or_queries: Union[str, List[str]], k: Optional[int] = None,**kwargs) -> dspy.Prediction:
"""Search with Qdrant for self.k top passages for query
Args: