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:
- Query input:
SF/QA/QuestionInput/Default,SF/QA/QuestionInput/Focused,SF/QA/QuestionInput/Loading,SF/QA/QuestionInput/Disabled - Answer result:
SF/QA/AnswerCard/Grounded,SF/QA/AnswerCard/Uncertain,SF/QA/AnswerCard/OutOfScope - Citation strip:
SF/QA/CitationChip/Default - Source highlighting:
SF/QA/SourceHighlight/Default
Components
| Component name | Position | Size | Data | States |
|---|---|---|---|---|
SF/QA/QuestionInput/Default | top | mapped default | prompt | default |
SF/QA/QuestionInput/Focused | top | mapped default | prompt | focused |
SF/QA/QuestionInput/Loading | top | mapped default | prompt | loading |
SF/QA/QuestionInput/Disabled | top | mapped default | prompt | disabled |
SF/QA/AnswerCard/Grounded | middle | mapped default | answer, confidence | grounded |
SF/QA/AnswerCard/Uncertain | middle | mapped default | answer, uncertainty | uncertain |
SF/QA/AnswerCard/OutOfScope | middle | mapped default | refusal_reason | out-of-scope |
SF/QA/CitationChip/Default | under answer | mapped default | citation refs | default |
SF/QA/SourceHighlight/Default | viewer pane | mapped default | highlighted text | active/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.
Navigation Targets
- 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.