Skip to main content

Document Q&A (Auto)

Automatic detection

You can mention @Hana and ask about attached or linked documents. If intent is clear, Hana automatically routes to document Q&A flows.

What it does​

Hana answers questions using document context from files shared in chat or from enabled memory sources. This includes summaries, comparisons, key-point extraction, and risk/decision analysis.

When to use​

Use this when you need fast answers from docs, PDFs, or notes without manually reading the full content. Use Memory tools when you want to persist durable information; use Document Q&A when you want analysis of specific documents now.

Supported operations/arguments​

OperationInvocation patternSupported arguments
Summarize a document@Hana summarize this doc ...format, length, optional time/scope constraints
Compare multiple docs@Hana compare these docs ...comparison_criteria, output_format
Extract structured insights@Hana extract risks/decisions/actions ...section_focus, group_by, max_items
Q&A over document context@Hana based on the attached doc, answer ...question, optional citation/detail preference

Invocation examples​

summarizecompare docsextract risksaction items
@Hana summarize the attached PDF in 6 bullets.
@Hana compare the two docs linked above; list differences and launch risks.
@Hana extract decisions and action items from this document with owner and due date.
@Hana based on this proposal, what are the top 5 open questions before approval?
@Hana review this PRD and output a table: section, gap, recommendation.
@Hana from the attached policy doc, list compliance requirements that affect engineering this quarter.

Troubleshooting​

  • Weak answer quality: ask with explicit scope (attached PDF, linked doc above) and output format.
  • Missing document context: ensure the file/link is accessible in the same thread and retry.
  • Too broad output: add constraints (top 5, only risks, this section only).

Permissions/limits​

  • Document analysis depends on file accessibility and connector permissions.
  • If a document is not accessible to Hana, content cannot be retrieved for Q&A.
  • For memory-backed retrieval behavior, see memory module docs below.

See also​

High-signal invocation​

@Hana summarize the attached PRD into goals, scope, non-goals, risks, and open questions.

Edge-case invocation​

@Hana compare the attached contract and policy docs and list clauses that conflict with our security baseline.