Skip to content
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

Exhaustive retrieval builder page: filtering search / timeframe #1951

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

philipperolet
Copy link
Contributor

@philipperolet philipperolet commented Oct 4, 2023

Context: issue #1864, and design doc with visual

Since testing locally is not trivial (requires either talking to local datasources, or adding remote datasources), I can merge and test--and revert quick if issue

Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

What happens to existing agents?

@spolu
Copy link
Contributor

spolu commented Oct 4, 2023

Will they all land on the right settings in the builder with their existing configurations?

@spolu
Copy link
Contributor

spolu commented Oct 4, 2023

Tested locally creating an Auto / Custom1Month / AllTime and then merging to your branch.

Auto and Custom1Month are properly mapped to Search and TimeFrame in the UI, but this is a bit of a lie since really Custom1Month is not query=null right?

AllTime gets mapped to Search which makes sense but is a bit of a lie since it'll still force all time right?

  • I presume we can somewhat safely migrate AllTime assistants to the new Search settings (query auto, timeFrame auto)
  • The problem are the old CustomXPeriod agents which will be trickier to migrate? We should probably look in DB for how many we have and maybe fix manually by moving to the new SEARCH settings but adding an instructions?

@philipperolet
Copy link
Contributor Author

Cf the changes to front/pages/w/[wId]/builder/assistants/[aId]/index.tsx
=> those who were on "AUTO" or "ALL TIME" will be on search
=> those who were on "CUSTOM" swtich to "TIMEFRAME"
IMHO the most sensible switch

@spolu
Copy link
Contributor

spolu commented Oct 4, 2023

Yes but this is a read-only switch until the configuration is revisited and saved right?

@philipperolet
Copy link
Contributor Author

Yes; for the custom ones that are not our own, among which a share actually wants exhaustive retrieval, l would email with instructions to adapt, and contact to get help to do so (= eng runner = me)
=> your custom assistant has been updated, here's what it will do now etc

For the migration

  • the fast option, that I favor, is to migrate all to exhaustive retrieval: probably what they actually want, if they don't the email explains and the runner can assist
  • the more tedious option but still possible given the small number of affected assistant is to look at each and migrate according to what we believe is best, which would limit frustration / emails / calls

I'll have a look at a few of them in detail to get a sense

@spolu
Copy link
Contributor

spolu commented Oct 4, 2023

I disagree that the RelativeTimeFrame='none' should be migrated to timeframe filtering. It should be moved back to auto right?

Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

As per IRL:

  • We want to add a migration for relativeTimeFrame='none'
  • This is obviously dependent on checking that query=none works
  • We will also wait for a follow-up PR to be ready that will indicate when we were unable to fit all results in context

@philipperolet
Copy link
Contributor Author

For the "custom", as discussed IRL, there are 3 non-dust non-archived assistants that are affected, I will deal with them manually

@philipperolet philipperolet force-pushed the exhaustive-builder-ux branch from 3c5f5c1 to b852320 Compare October 6, 2023 07:53
@philipperolet
Copy link
Contributor Author

As discussed IRL with @gabhubert , migration & merge to be done monday morning

@philipperolet philipperolet merged commit f6a4588 into main Oct 9, 2023
5 checks passed
@philipperolet philipperolet deleted the exhaustive-builder-ux branch October 9, 2023 12:25
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