A RAG-powered chat interface that helps PCI ProCal sales representatives answer technical questions about the company's product lines using sourced engineering documentation.
After clicking, set the ANTHROPIC_API_KEY environment variable in Render's dashboard.
vercel login
vercel --prod
# Then set ANTHROPIC_API_KEY in Vercel dashboard > Settings > Environment Variablesexport ANTHROPIC_API_KEY=your-key-here
npm install
npm startOpen http://localhost:3000 in your browser.
- Ask technical questions about PCI ProCal products (roller assemblies, cam followers, conveyor pulleys, pneumatic clutches/brakes)
- Get sourced answers — every response cites the specific document and section it drew from
- Browse the knowledge base — sidebar shows all loaded engineering documents and their sections
- Conversational — maintains chat history for follow-up questions
- Backend: Node.js + Express server that handles document retrieval and Claude API calls
- Frontend: Single-page HTML/CSS/JS chat interface (no build step)
- Search: TF-IDF keyword search over document sections (no vector database required)
- AI: Claude Sonnet for answer generation with RAG context injection
Since PCI's actual internal documentation is not available, the POC includes realistic demo documents based on publicly known PCI product categories:
- Roller Assembly Product Line (5 sections)
- Cam Follower Product Line (5 sections)
- Conveyor Pulley Product Line (5 sections)
- Pneumatic Clutch & Brake Systems (6 sections)
- Preventive Maintenance Guide (5 sections)
- Material Specifications & Quality Standards (4 sections)
| Variable | Default | Description |
|---|---|---|
ANTHROPIC_API_KEY |
(required) | Your Anthropic API key |
PORT |
3000 | Server port |