paper_firehose.commands.rank¶
Rank command: compute and write rank scores into papers.db (rank_score).
Initial minimal version¶
Read per-topic ranking config (query, model).
Fetch entries with
status='filtered'for the topic(s).Compute cosine similarity (Sentence-Transformers) between query and title.
Write scores to
rank_score(no status change).
Notes¶
If Sentence-Transformers is unavailable or model download fails, the command logs and skips scoring without raising.
Functions
|
Compute rank scores and write them into papers.db (rank_score). |