RAG_Eval / pyserini /search.py
Rom89823974978's picture
Updated codebase
12409b1
raw
history blame contribute delete
267 Bytes
"""Minimal stub to prevent real Pyserini/Jnius from being imported in tests."""
class SimpleSearcher:
def __init__(self, index_path):
pass
def set_bm25(self):
pass
def search(self, query, k):
return [] # always returns zero hits