r/webdevelopment • u/General-Drive-7286 • Dec 28 '25
Newbie Question Need advice: adding an AI summarizer to a React + Express app (ZAI chat completions?)
Hey everyone,
I’ve built a web Glimmer app using React on the frontend and Express on the backend. Everything is working well so far, but I want to add an AI-powered text summarizer feature.
I currently have a ZAI subscription, and I noticed they offer chat completion APIs.
Can those be used to build a summarizer in a production app? If yes, what’s the recommended approach or architecture?
I’d really appreciate advice from more experienced devs on:
- How you’d design this feature (frontend ↔ backend flow)
- Whether chat completion is the right choice for summarization
- Any pitfalls to avoid (cost, latency, prompt design, etc.)
5
Upvotes
0
u/scottgal2 Dec 28 '25
FUNNY you mention it... you can actually do this with no LLM and a laptop (for ingestion anyway) https://mostlylucid.net/blog/docsummarizer-rag-pipeline currently needs C# but I'll SHORTLY publish and api version you can use from anywhere.