Skip to content

ContextPanel

Experimental

Everything the AI can see right now, each item removable.

Also known as context window, attached context, context sources

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

A support chat

What the assistant can see

6 items

Instructions

  • Answer as the store's support teamSet by your workspace

Open page

  • Orders dashboardThe page you have open

Files

  • Q3 refunds.csv1,204 rows
  • Returns policy.pdf6 pages

Connected apps

  • ShopifyRead only

Memories

  • You prefer replies under 100 words

Uses 18,400 of 200,000 tokens

Take items out with the X. The instructions are set by the workspace, so they stay.

When to use it

Shows people exactly what the AI is working from, so its answers make sense and they can take out what it should not use.

Made of: Heading and count · Groups by kind · Items with a short detail · Take out buttons · Working memory bar · Add

Use it for

  • A side panel or popover next to the message box.
  • Explaining why the AI said something, by showing what it read.
  • Freeing up room when the working memory is nearly full.

Not for

Do and avoid

What the assistant can see

3 items

Open page

  • Orders dashboard

Files

  • Q3 refunds.csv1,204 rows

Memories

  • You prefer short replies

Do. Everything the assistant can see, grouped, each with a way to take it out.

Attached files

1 item

Files

  • Q3 refunds.csv

Avoid. Showing only files hides the memories and apps the assistant also reads, and nothing can be taken out.

Do

  • Show everything the assistant can use, including instructions and memories.
  • Let people take items out in one press.
  • Say when nothing is shared.

Avoid

  • Do not hide what a connected app gives the assistant.
  • Do not ask before taking an item out. It can be added back.
  • Do not show token counts without the bar and plain words.

On a phone

  • Each item is at least 40px tall, and its take-out button grows to 44px on touch screens.
  • Long names wrap to two lines, then end with an ellipsis; the full name is in the button's label.

Seen in products

      Build your next AI screen with Tattva.

      Free and open, with the code. Start in one line.

      Get started