dssg / dssg/tyra

Better handling for the materialized view

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

By default, Tyra looks for a materialized view called `results.ranked_table`. Tyra shows many options in the dropdown box (e.g. top 100, top 10%), but it can only display results in that view. For example, if the materialized view only includes results for the top 5%, the top 100 option won't work.

- Tyra should populate the dropdown box with the options in `results.ranked_table`. That avoids giving the false impression that Tyra has more results than it does, and it also enables Tyra to handle non-standard results (such as precision on the top 1, which we rarely do)
- The documentation note that the materialized view needs to be updated if the user wants to see more recent results. In many deployments, we're making predictions and updating the evaluations every night. The documentation could note that a cron job would handle this well.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating where Tyra reads results.ranked_table and populates the dropdown, then inspect the documentation covering materialized-view updates. Done means the dropdown reflects the available results, non-standard options work, and the documentation explains refreshing the view and using a cron job.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
database, documentation, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.