SUPPORT ONLINE · REPLIES IN SECONDS

Hi, how can we help?

Ask about an order, delivery, payment or return. The assistant looks up ShopEase's own handbook before every answer, so it won't make up a policy.

Prefer a person? WhatsApp 0300-1234567 or email support@shopease.pk, every day 9 AM to 10 PM.

ShopEase support

Answers from the store handbook

LIVE TRACE
Can I return earbuds if I don't like them?
Earbuds can't be returned once the seal is broken, unless they arrived damaged or wrong. In that case, report it within 48 hours with photos.

1.1s · 812 in / 38 out

Browse help topics

Pick a question and the assistant answers it straight away.

6 TOPICS · 11-PAGE HANDBOOK

RETRIEVAL-AUGMENTED GENERATION

How the assistant answers

The model never memorised the store's rules. Every message runs through a small workflow that decides what to do, looks the rules up in the handbook, and says so when it can't find one.

  1. 01 / INGEST

    Handbook to topics

    pdfplumber reads the PDF (tables and scanned pages too) and splits it by heading, so each chunk is one policy.

  2. 02 / EMBED

    Vectors and keywords

    A multilingual model turns every chunk into a vector in PostgreSQL + pgvector, next to a full-text keyword index.

  3. 03 / ROUTE

    Decide what to do

    A LangGraph workflow reads each message: a greeting skips the search, "talk to a person" opens a ticket, questions go on.

  4. 04 / RETRIEVE

    Find the right policy

    Follow-ups and Urdu are rewritten into a clear search. Vector and keyword results are merged and reranked; if nothing fits, it widens the search once.

  5. 05 / GENERATE

    Grounded answer

    Claude answers only from those passages, looks up live order status with a tool, and streams the reply word by word.

  6. 06 / REMEMBER

    Private memory

    Each chat is saved in Postgres for that browser only, with a running summary so long conversations stay cheap.

THE WORKFLOW · LANGGRAPH

Every message takes one of three paths. You can watch it happen in the chat panel.

messageload memoryclassify

a question

rewriteretrievegenerate

nothing found? broaden the query and search once more

“hi”, “shukriya”

generate

no search needed

“talk to a person”

handoff

opens a support ticket

savereply streams in
ONE QUESTION, TRACED

mera order SE10482931 kahan hai?

  1. load_memory2 earlier messages about delivery + chat summary
  2. classifyquestion (not a greeting, not asking for a person)
  3. rewrite“where is order SE10482931 tracking status”
  4. retrieve4 of 63 passages · order tracking, delivery times · 0.4 s
  5. generateClaude calls lookup_order(SE10482931) → Shipped, TCS-77120934
  6. saveanswer + sources stored, summary updated in the background

Your order SE10482931 has shipped with TCS and should reach you in Lahore by 11 Oct. Track it with TCS-77120934. Please keep PKR 6,499 ready for cash on delivery.

  • Next.js
  • Flask
  • LangGraph
  • LangChain
  • PostgreSQL + pgvector
  • Sentence Transformers
  • Claude
  • Docker