Skip to content

joshmouch/pci-expert-copilot

Repository files navigation

PCI ProCal — Technical Expert Co-Pilot

A RAG-powered chat interface that helps PCI ProCal sales representatives answer technical questions about the company's product lines using sourced engineering documentation.

Deploy

One-Click Deploy (Render)

Deploy to Render

After clicking, set the ANTHROPIC_API_KEY environment variable in Render's dashboard.

Deploy to Vercel

vercel login
vercel --prod
# Then set ANTHROPIC_API_KEY in Vercel dashboard > Settings > Environment Variables

Run Locally

export ANTHROPIC_API_KEY=your-key-here
npm install
npm start

Open http://localhost:3000 in your browser.

What It Does

  • 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

Architecture

  • 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

Demo Documents

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)

Configuration

Variable Default Description
ANTHROPIC_API_KEY (required) Your Anthropic API key
PORT 3000 Server port

About

PCI ProCal Technical Expert Co-Pilot — RAG-powered engineering Q&A demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors