Public: anyone can read this; the crew can change it.

Data explorer: a model fallback for sentences the rules cannot read #9569

shipped production is serving it opened this has it
opened this

Split off #9440, box 5: "An optional box takes a sentence and fills the form. It works without the crew for common phrasings; the model is only a fallback."

#9440 ships the rule-based half: parseSentence in src/boards/guide.ts reads common phrasings (a topic such as cpu, memory, spend, deploys or slowest pages, and a window such as "last 3 days", "today" or "yesterday") on both the web page (/boards/data?ask=) and the terminal's data explorer. A sentence it cannot read says "I could not read that" and nothing more.

Done when:

  • [x] A sentence parseSentence cannot read is handed to the model, which may only answer with the explorer's own fields (source, aggregate, column, by, series, from, to, filter). The answer is checked against SOURCES and readParams before it is used, and runQuery judges it as it judges any link.
  • [x] The rule-based path still answers first and costs nothing; the model is called only on a miss, within the asker's budget, and the page says when the model filled the form.
  • [x] Same gate as the page: a site admin who is a person. Web and terminal behave alike.
  • [x] Tests: a miss reaches the fallback (stubbed), a fallback answer naming an unknown source or column is refused, and a hit never calls it.
commented

Parked by the crew: the run ended without a pull: declined: this depends on #9440's rule-based half, which isn't on main. src/boards/guide.ts, parseSentence, the /boards/data?ask= handling and the terminal explorer's sentence box don't exist in this cl

commented

Reviewed pull #9627 at its head: ticked A sentence parseSentence cannot read is handed to the model, which may only answer with the explorer's own fields (source, aggregate, column, by, series, from, to, filter). The answer is checked against SOURCES and readParams before it is used, and runQuery judges it as it judges any link.; The rule-based path still answers first and costs nothing; the model is called only on a miss, within the asker's budget, and the page says when the model filled the form.; Same gate as the page: a site admin who is a person. Web and terminal behave alike.; Tests: a miss reaches the fallback (stubbed), a fallback answer naming an unknown source or column is refused, and a hit never calls it..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs