MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / __init__

Method __init__

src/retrieval/server.py:170–173  ·  view source on GitHub ↗
(self, config)

Source from the content-addressed store, hash-verified

168
169class BM25Retriever(BaseRetriever):
170 def __init__(self, config):
171 self.qid2goldid = load_gold(config.trec_path)
172 self.searcher = LuceneSearcher(config.index_path)
173 self.searcher.set_bm25(config.bm25_k1, config.bm25_b)
174
175 def _get_gold_rank(self, candidate_ids: List[List[str]], query_ids_batch: List[str]):
176 gold_ranks = []

Callers

nothing calls this directly

Calls 1

load_goldFunction · 0.85

Tested by

no test coverage detected