Add LLM fallback when Grobid returns no entries#15467
Add LLM fallback when Grobid returns no entries#15467faneeshh wants to merge 7 commits intoJabRef:mainfrom
Conversation
|
Note that your PR will not be reviewed/accepted until you have gone through the mandatory checks in the description and marked each of them them exactly in the format of |
✅ All tests passed ✅🏷️ Commit: 50b3ebc Learn more about TestLens at testlens.app. |
|
During testing I'm getting Overlapping FileLock Exception on the |
|
The requested changes were not addressed for 10 days. Please follow-up in the next 10 days or your PR will be automatically closed. You can check the contributing guidelines for hints on the pull request process. |
|
Sorry for not reponding for too long. While I’m not familiar fully with this part of code, I think your remark is right. And I think you could try sending the existing ai service instead of creating a new one |
No worries. I can try that approach. |
|
I did test with the Kaerlein PDF and Grobid fails now and the LLM fallback works without any errors but the imported library is still empty. |
|
Your code currently does not meet JabRef's code guidelines. We use Checkstyle to identify issues. You can see which checks are failing by locating the box "Some checks were not successful" on the pull request page. To see the test output, locate "Source Code Tests / Checkstyle (pull_request)" and click on it. In case of issues with the import order, double check that you activated Auto Import. You can trigger fixing imports by pressing Ctrl+Alt+O to trigger Optimize Imports. Please carefully follow the setup guide for the codestyle. Afterwards, please run checkstyle locally and fix the issues, commit, and push. |
Related issues and pull requests
Closes #12700
PR Description
When Grobid returns no entries for a PDF such as the Kaerlein bibliography, the online import action should fall back to the existing method instead of opening an empty library.
So far I've added a CliPreferences overload to CitationsFromPdf so the GUI layer can call it without depending on the concrete JabRefCliPreferences class. Still have to test these changes and I think next step would be handling the case where Grobid throws a connection exception rather than returning an empty list.
Steps to test
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)