Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dspy/retrieve/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def forward(self, query_or_queries: Union[str, List[str]], k: Optional[int] = No
# print(queries)
# TODO: Consider removing any quote-like markers that surround the query too.
k = k if k is not None else self.k
passages = dsp.retrieveEnsemble(queries, k=k)
passages = dsp.settings.rm(queries=queries, k=k)
#passages = dsp.retrieveEnsemble(queries, k=k)
return Prediction(passages=passages)

# TODO: Consider doing Prediction.from_completions with the individual sets of passages (per query) too.