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
1.1s · 812 in / 38 out
Browse help topics
Pick a question and the assistant answers it straight away.
6 TOPICS · 11-PAGE HANDBOOK
- 01
Orders and tracking
Place, change, cancel and track orders.
- 02
Delivery
Times, charges, cities and missed deliveries.
- 03
Payments
Cash on delivery, cards, wallets and installments.
- 04
Returns and refunds
Return a product and get your money back.
- 05
Your account
Sign up, passwords, OTPs and account details.
- 06
Warranty and products
Warranty claims, PTA phones and authenticity.
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.
- 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.
- 02 / EMBED
Vectors and keywords
A multilingual model turns every chunk into a vector in PostgreSQL + pgvector, next to a full-text keyword index.
- 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.
- 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.
- 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.
- 06 / REMEMBER
Private memory
Each chat is saved in Postgres for that browser only, with a running summary so long conversations stay cheap.
Every message takes one of three paths. You can watch it happen in the chat panel.
a question
nothing found? broaden the query and search once more
“hi”, “shukriya”
no search needed
“talk to a person”
opens a support ticket
mera order SE10482931 kahan hai?
- load_memory2 earlier messages about delivery + chat summary
- classifyquestion (not a greeting, not asking for a person)
- rewrite“where is order SE10482931 tracking status”
- retrieve4 of 63 passages · order tracking, delivery times · 0.4 s
- generateClaude calls lookup_order(SE10482931) → Shipped, TCS-77120934
- 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.
- queryone clear English question
- meaning + keywordspgvector similarity and Postgres full-text, 20 each
- mergereciprocal rank fusion
- filterdrop anything below 0.3 similarity
- rerankcross-encoder reads question + passage
- top 4sent to Claude as the only facts it may use
Meaning search knows “money back” means refund. Keyword search catches exact words like “COD” or “PTA”. Using both, then reranking, is what keeps answers on the right policy.
- Next.js
- Flask
- LangGraph
- LangChain
- PostgreSQL + pgvector
- Sentence Transformers
- Claude
- Docker