Skip to content

Commit 539bdad

Browse files
Merge pull request #793 from tanmay17061/fix/qdrant_rm_forward_without_k
fix(qdrant_rm): forward can be called without specifying k
2 parents 70d3fba + 8c410cf commit 539bdad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/retrieve/qdrant_rm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(
5353

5454
super().__init__(k=k)
5555

56-
def forward(self, query_or_queries: Union[str, List[str]], k: Optional[int],**kwargs) -> dspy.Prediction:
56+
def forward(self, query_or_queries: Union[str, List[str]], k: Optional[int] = None,**kwargs) -> dspy.Prediction:
5757
"""Search with Qdrant for self.k top passages for query
5858
5959
Args:

0 commit comments

Comments
 (0)