PrithivirajDamodaran / FlashRank

Lite & Super-fast re-ranking for your search & retrieval pipelines. Supports SoTA Listwise and Pairwise reranking based on LLMs and cross-encoders and more. Created by Prithivi Da, open for PRs & Collaborations.
Apache License 2.0
441 stars 37 forks source link

I am having issue while initializing Reranker #16

Open abhigrazitti opened 1 month ago

abhigrazitti commented 1 month ago
ranker = Ranker()
rerankrequest = RerankRequest(query=query, passages=initial_docs)
reordered_docs = ranker.rerank(rerankrequest)

ERROR:main:Error processing query: [WinError 2] The system cannot find the file specified: '\opt'

PrithivirajDamodaran commented 1 month ago

Please share additional details on the OS you are installing etc ?

Eknathabhiram commented 5 days ago

@abhigrazitti ERROR:main:Error processing query: [WinError 2] The system cannot find the file specified: '\opt'.

You can try changing your destination folder to your working directory, your model will be saved there itself.

use ranker = Ranker(cache_dir="your working directory")