-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add document page number of ExtractedAnswer to meta (#7572)
* calculate page number of answer and add to meta * fix mypy, add reno * add test * simplify unit test * update release note * undo @patch updates * extend tests, check page_number type
- Loading branch information
1 parent
2e35f13
commit b028497
Showing
3 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
releasenotes/notes/add-page-number-to-answer-1b6d68dc93508314.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
enhancements: | ||
- | | ||
The ExtractiveReader can now add page numbers to the meta data of ExtractedAnswers. | ||
It's done automatically if the source document of the ExtractedAnswer contains a page number in its meta data. | ||
The ExtractedAnswer will then contain a key "answer_page_number" in its meta data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters