Skip to content

Commit

Permalink
Use consistent fulltext content length in ranker
Browse files Browse the repository at this point in the history
  • Loading branch information
bdewilde committed Jul 22, 2024
1 parent 7d006fd commit 5f937f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions colandr/apis/resources/studies.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,11 @@ def get(
if study_ranker.model_fpath.exists():
records = (
{
"text": result.fulltext.get("text_content")
or result.citation_text_content
"text": (
result.fulltext["text_content"][:5000]
if result.fulltext.get("text_content")
else result.citation_text_content
)
}
for result in results
)
Expand Down

0 comments on commit 5f937f4

Please sign in to comment.