- Clone the repository:
git clone https://github.com/yourusername/qa-bot.git
cd qa-bot- Install dependencies:
npm install- Start the server:
npm start-
Open http://localhost:3000 in your browser
-
Run Ollama
ollama serve- Modern UI with gradient design
- Drag & drop file upload
- Real-time response streaming
- Error handling and loading states
- Express.js server
- Multer for file handling
- Secure file processing
- Automatic cleanup after analysis
- Frontend: HTML5, CSS3, Vanilla JavaScript
- Backend: Node.js, Express
- File Handling: Multer
- AI Processing: Custom QA Bot implementation
Upload a file and ask questions about its contents.
// Request (multipart/form-data)
{
file: File,
query: string
}
// Response
{
answer: string
}- Support for multiple file formats (PDF, DOCX, TXT)
- Chat history persistence
- Document highlighting for answers
- Batch processing capability
- Export conversation history