Skip to content

Comments

feat(types): add reranking engine settings to types#1378

Merged
shortcuts merged 2 commits intomasterfrom
feat/add-reranking-types
Jan 7, 2022
Merged

feat(types): add reranking engine settings to types#1378
shortcuts merged 2 commits intomasterfrom
feat/add-reranking-types

Conversation

@alphonseb
Copy link

feat(types): add reranking engine settings to types

What

Updating the Settings and SearchOptions types to add two reranking properties:

  • enableReRanking (already existed in SearchOptions)
  • reRankingApplyFilter

Why

These settings already exist on the engine for some time. They are already used in the dashboard but without these type we are building up quite a few "@ts-ignore".

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 6, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7b4d607:

Sandbox Source
javascript-client-app Configuration

Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Small comment

@alphonseb
Copy link
Author

Also I'm not sure why some unit tests are failing, I don't think what I changed interacted with those?

@shortcuts
Copy link
Member

Also I'm not sure why some unit tests are failing, I don't think what I changed interacted with those?

Some of the tests are flaky, since they are shared between the API clients. If a failing test is not related to your changes, then it's good :D

@alphonseb alphonseb requested a review from shortcuts January 6, 2022 14:02
Copy link
Member

@shortcuts shortcuts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants