rank_llm icon indicating copy to clipboard operation
rank_llm copied to clipboard

Init ServiceRetriever Class

Open xpbowler opened this issue 9 months ago • 0 comments

Pull Request Checklist

ServiceRetriever class for interacting with Anserini REST API. Currently only supports retrieval from pre-built indexes and k=10 (REST API does not accept k as a parameter currently).

Class variables:

  • host
  • dataset name (dataset)
  • retrieval_mode (only DATASET is valid at the moment)
  • retrieval_method (e.g., BM25)

from_dataset_with_prebuilt_index() takes in:

  • request
  • dataset_name
  • retrieval_method
  • k Anserini API currently does not support passing in k
  • host Defaults to localhost::8081

PR Type

  • [x] Feature

xpbowler avatar May 18 '24 03:05 xpbowler