Skip to content

Auto-match modal controls pipeline instead of algo config #2322

@paynejd

Description

@paynejd

Currently, the auto-match modal allows for some algorithm configuration (e.g. target repo and primary algo) -- let's get rid of that. Instead, the user should get to control the auto-match pipeline -- there's not a lot here yet, but this is an area where we expand. Algos and target repo are part of Project Config -- automatch pipeline is something to configure each time you run the process.

Image

Change it to look something like this:

  • Target Repository: LOINC | 2.81 -- just a label, but match the styling used elsewhere
  • Input Dataset: ◉ Unmapped only ◎ All rows -- this is a radio box, with unmapped selected by default; In the future this will also included an option for "Selected rows"
    • 199 out of 200 rows --- label updated in real-time to indicate how many rows will be processed
  • ☒ Retrieve Candidates
    • Behavior: this is a checkbox that is checked by default; if it is unchecked, then no retrieval/matching is done
    • Label: "Your project is configured to use the following match algorithms:" consider using algo key displayed as a chip (the same style used on the candidates tab)
      • OCL Semantic Search ocl-semantic
      • CIEL Bridge Match ocl-ciel-bridge
      • ScispaCy LOINC Match ocl-scispacy-loinc
  • ☐ Recommend with OCL AI Assistant -- this is unchecked by default, with option to select the language model if the user has access to do that
    • Keep the existing AI assistant note
  • "Submit" button is enabled only if at least one of the option (Retreive, Recommend) is checked

Acceptance Criteria

  • Target repo controls replaced with a label that states which target repo + version is set in the project config
  • Algorithm dropdown is replaced with a checkbox and a list of algorithms that will be used (e.g. ocl-semantic, ocl-ciel-bridge) -- there may only be one algo
  • If algo checkbox is selected, Candidates for applicable rows are wiped out and new candidates retreived; if Unselected, candidates are untouched
  • Label under "Input rows" updates based on the selection
  • If OCL AI Assistant, then the OCL AI Assistant match-recommend algo is used to retrieve a recommendation/rationale/confidence; otherwise if unchecked, this step is skipped
  • At least one pipeline step (Match Algos or AI Assistant) must be checked -- Submit should disabled if neither is selected
  • Replace "Close" button with an "X" in the top-right, and support closing with keyboard (e.g. esc)
  • OCL AI Assistant should skip rows that do not have candidates after the retrieval step

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions