Replies: 2 comments 1 reply
|
+1 to direct import to pyserini |
|
I strongly agree! I would like to take this opportunity to also include encoder metadata for prebuilt indexes so you can get the appropriate query encoder model directly. Also, perhaps it would make sense for prebuilt indexes metadata and topics and qrels to live in the same repo? |
Uh oh!
There was an error while loading. Please reload this page.
Prebuilt index metadata currently live in src/main/resources/prebuilt-indexes. Bindings are created in Anserini, and then those symbols are exported into Pyserini. This results in an awkward flow in that new indexes needed to be added to Anserini first.
My proposal is to move all index metadata JSON into a top-level castorini repo called
prebuilt-indexes. This would improve the above flow. This would allow Pyserini to directly import prebuilt index symbols.The downside here is that Anserini fatjar distributions would be "unstable", since it would need to consult the live web to pull in prebuilt index definitions - since they may change after distribution time. But perhaps this isn't so bad since the download URL might go stale regardless.
Thoughts?
All reactions