Skip to main content

History Scoping and Considerations

How Hana Considers Chat History

  • There are mostly 3 types of spaces in Google Chat
    • Direct Message with Hana
    • Unthreaded space between a group of people
    • Threaded space meant for collaboration

History Outside Chat Thread

  • Because history outside a thread can contains years of messages in chat spaces, we limit the history up to 20 minutes back depending on your plan
  • So when you invoke Hana, effectievely all messages up to 20 minutes back will be considered while she replies to you

History Inside Chat Thread

  • A thread in an isolated set of messages and is usually never longer than a couple 10s of messages
  • When you invoke Hana inside a thread, she will consider the history of the entire thread and that thread alone
    • This means that any threads or messages outside this thread are ignored
    • This is intentional so Hana's responses can be focused and relevant to the thread's conversation topic
  • As long as the thread remains in Google Chat, you can come back to the thread anytime and continue your conversation with Hana inside the thread
Pro Tip

Always use Hana inside threads, that way you can continue the conversation anytime in the future!

Hisotry Is Fetched at Runtime

When you invoke Hana in Google Chat space, the hisotry is fetched at runtime, there and then, so any messages at the time of invocation will be considered even if they are updated, deleted etc.

Google Chat threaded messages (outside thread)

Google Chat threaded messages (inside thread)

  • We recommend you do not make the threads longer than 100 messages as this will cause Hana to respond slower and hallucinate more often
warning

Since outside the threads, the chat history is not scoped, and can be several years long, we are limiting Hana's context to a limited time. Please see the plan details for how long back the history in the space is considered. Usually is 20 minutes for PRO plan users.

If a Thread's History Gets Too Polluted, Create New Thread

Delete Unwanted Messages

If you feel Hana's response or someone else's response is causing Hana to hallucinate or give off-topic answers, try to remove those messages in the thread or chat history and re-invoke Hana.

  • The chat history inside a thread is scoped to that thread, when Hana is reponding inside a thread, the space history outisde the thread is not considered, this helps reducing hallucinations and uneccessary context for Hana
  • Polluted threads can cause hallucination and degraded responses
    • Threads which have too much irrelevant context
    • Threads which have conflicting ideas and instructions which have become too intermingled now