-
Notifications
You must be signed in to change notification settings - Fork 18
Add Finder, timeouts #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
breuleux
commented
Sep 24, 2025
- Refactor some of the paper finding logic into a Finder class
- Add a timeout to all requests
| if mem_col.find_paper(pinfo.paper): | ||
|
|
||
| if found := find.find(pinfo.paper): | ||
| found.value.add(pinfo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is scored automatically updated here or is there another operation that needs to be done? Something like the following?
| found.value.add(pinfo) | |
| found.value.add(pinfo) | |
| found.score = work.focuses.score(found.value.current) |
| sim = quick_author_similarity(au1, au2) | ||
| if sim >= 0.8: | ||
| return same_title | ||
| else: | ||
| logging.warning( | ||
| f"Title match but low author similarity ({sim:.2f}) for paper '{p.title}': {au1} vs {au2}" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which case do we have a matching title but wouldn't want to return a paper?
|
Closing as superseded by #95 |