Skip to main content

Document Q&A Interface (Structured Stub)

Purpose

  • Collect user questions and return grounded answers with citations.

Primary User

  • Credit Analyst

Layout

  • Shell: SF/Global/Nav/Sidebar/Expanded, SF/Global/Nav/Header/Default
  • Core regions:
  1. Query input: SF/QA/QuestionInput/Default, SF/QA/QuestionInput/Focused, SF/QA/QuestionInput/Loading, SF/QA/QuestionInput/Disabled
  2. Answer result: SF/QA/AnswerCard/Grounded, SF/QA/AnswerCard/Uncertain, SF/QA/AnswerCard/OutOfScope
  3. Citation strip: SF/QA/CitationChip/Default
  4. Source highlighting: SF/QA/SourceHighlight/Default

Components

Component namePositionSizeDataStates
SF/QA/QuestionInput/Defaulttopmapped defaultpromptdefault
SF/QA/QuestionInput/Focusedtopmapped defaultpromptfocused
SF/QA/QuestionInput/Loadingtopmapped defaultpromptloading
SF/QA/QuestionInput/Disabledtopmapped defaultpromptdisabled
SF/QA/AnswerCard/Groundedmiddlemapped defaultanswer, confidencegrounded
SF/QA/AnswerCard/Uncertainmiddlemapped defaultanswer, uncertaintyuncertain
SF/QA/AnswerCard/OutOfScopemiddlemapped defaultrefusal_reasonout-of-scope
SF/QA/CitationChip/Defaultunder answermapped defaultcitation refsdefault
SF/QA/SourceHighlight/Defaultviewer panemapped defaulthighlighted textactive/related

Data Fields

  • question_text, answer_text, citation_references, source_quote, answer_state.

States

Loading

  • Input and answer placeholders while model inference runs.

Empty

  • No question submitted.

Error

  • Response generation failure with retry.

Populated

  • Answer and citations visible.

Feature-Specific

  • grounded-refusal: question out of scope for document.
  • Citation chip click -> source view highlight.
  • Sidebar links -> standard global routes.

Content Map Key

  • content_map_key: document-qa

Accessibility Notes

  • Citation chips keyboard selectable.