Skip to content

Latest commit

 

History

History
75 lines (55 loc) · 1.21 KB

contributing.md

File metadata and controls

75 lines (55 loc) · 1.21 KB

🚀 Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/qa-bot.git
cd qa-bot
  1. Install dependencies:
npm install
  1. Start the server:
npm start
  1. Open http://localhost:3000 in your browser

  2. Run Ollama

ollama serve

🏗️ Architecture

Frontend (public/index.html)

  • Modern UI with gradient design
  • Drag & drop file upload
  • Real-time response streaming
  • Error handling and loading states

Backend (index.js)

  • Express.js server
  • Multer for file handling
  • Secure file processing
  • Automatic cleanup after analysis

🛠️ Tech Stack

  • Frontend: HTML5, CSS3, Vanilla JavaScript
  • Backend: Node.js, Express
  • File Handling: Multer
  • AI Processing: Custom QA Bot implementation

🔄 API Endpoints

POST /query

Upload a file and ask questions about its contents.

// Request (multipart/form-data)
{
  file: File,
  query: string
}

// Response
{
  answer: string
}

🔜 Future Enhancements

  • Support for multiple file formats (PDF, DOCX, TXT)
  • Chat history persistence
  • Document highlighting for answers
  • Batch processing capability
  • Export conversation history