-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: install inference
in REST API tests
#5252
Conversation
inference
in restapi testsinference
in REST API tests
if isinstance(label.answer.offsets_in_document[0], Span): | ||
offset_start_in_document = label.answer.offsets_in_document[0].start | ||
else: | ||
offset_start_in_document = label.answer.offsets_in_document[0].row |
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.
mypy was failing, so I added this block according to what the TableCell proposal specifies:
haystack/proposals/text/3875-table-cell.md
Line 210 in 1be3936
This may be confusing to users since it is not obvious that `start` should refer to `row` and `end` should refer to `column`. |
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.
LGTM
Related Issues
Proposed Changes:
InMemoryDocumentStore
requiresinference
and is used in the REST API tests. This PR adds that extra to the CI.How did you test it?
CI
Notes for the reviewer
n/a
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.