We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18346f2 commit 9b32153Copy full SHA for 9b32153
rerankers/results.py
@@ -36,6 +36,10 @@ def __iter__(self):
36
"""Allows iteration over the results list."""
37
return iter(self.results)
38
39
+ def __getitem__(self, index):
40
+ """Allows indexing to access results directly."""
41
+ return self.results[index]
42
+
43
def results_count(self) -> int:
44
"""Returns the total number of results."""
45
return len(self.results)
0 commit comments