Skip to main content

History Scoping and Context

Space Types in Google Chat​

Hana can be used in:

  • Direct messages.
  • Unthreaded spaces.
  • Threaded spaces.

How Context Is Scoped​

Inside Threads​

When invoked inside a thread, Hana prioritizes that thread's conversation context so responses stay focused on the topic.

Outside Threads​

When invoked in non-threaded conversation, Hana uses a bounded recent window and relevant context signals. Exact window size can vary by plan and system behavior.

Practical Guidance​

  • Use threads for ongoing topics and decisions.
  • Keep each thread focused on one topic.
  • Start a new thread when context drifts.
  • Include a time window in prompts for better precision.

Runtime Behavior​

Hana reads context at invocation time. Message edits/deletions and latest thread state can affect responses accordingly.

Performance Consideration​

Very long threads can reduce response quality and increase latency. If a thread becomes noisy, summarize and start a fresh thread.

Example Images​

Google Chat threaded messages (outside thread)

Google Chat threaded messages (inside thread)