Skip to content

ResponseCompare

Experimental

Two replies side by side, and the person picks the better one.

Also known as compare responses, side by side, a b compare

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

Pick the better reply

Which reply is better?

Your choice helps the assistant learn what you prefer.

Reply A

Your refund of ₹3,499 was sent on 12 October. Banks take up to 7 working days, so it should arrive by 21 October.

Reply B

Refunds usually take a while. Please wait a few days and contact your bank if it does not arrive.

Press Choose this reply under one, or About the same.

When to use it

Asks people which of two replies is better, in a way that is quick to answer and easy to skip, so the product learns what they prefer.

Made of: Heading and one-line reason · Reply A · Reply B · Choose buttons · About the same · Thank-you line

Use it for

  • Asking which of two replies helped more, to learn preferences.
  • Letting someone pick between two drafts before continuing.

Not for

Do and avoid

Which reply is better?

Your choice helps the assistant learn what you prefer.

Reply A

Your refund was sent on 12 October and arrives by the 21st.

Reply B

Refunds take a while. Check with your bank.

Do. Two plain labels, and the same button under each, so neither is pushed.

Reply A is recommended. Keep it?

Your choice helps the assistant learn what you prefer.

Reply A (recommended)

Your refund was sent on 12 October and arrives by the 21st.

Reply B

Refunds take a while. Check with your bank.

Avoid. Calling one reply recommended tells people what to pick, so the answer teaches nothing.

Do

  • Ask now and then, not after every reply.
  • Show both replies in full, so people compare the real thing.
  • Say why you are asking in one short line.
  • Let people carry on without choosing.

Avoid

  • Do not label one reply as recommended. It sways the choice.
  • Do not use it for more than two replies.
  • Do not hide the choice after it is made. Say which one was kept.

On a phone

  • Below 640px the two replies stack, Reply A first, each with its own Choose button under it.
  • Long replies keep their full text; the page scrolls, not the card.

Seen in products

  • ChatGPT sometimes shows two replies side by side and asks which one is better, to learn what people prefer.

    Build your next AI screen with Tattva.

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

    Get started