Skip to content

Transform how you interact with documents! Simply upload receipts, invoices, or forms and instantly chat with them. Get answers, extract key information, and save hours of manual work. Your personal document assistant that understands what matters to you.

License

Notifications You must be signed in to change notification settings

HimanshuMohanty-Git24/KhataGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📄 KhataGPT

FastAPI React MongoDB Google Gemini

🤖 AI-Powered Document Analysis & Chat Platform

Getting StartedFeaturesDocumentationContributing

🌟 Overview

KhataGPT is an intelligent document analysis platform that leverages Google's Gemini AI to transform how users interact with their documents. Extract, analyze, and chat with your documents using state-of-the-art AI technology.

✨ Key Features

📑 Document Intelligence

  • 🔍 Multi-format document support (PDF, DOC, Images)
  • 🤖 AI-powered text extraction & analysis
  • 📋 Smart categorization & tagging
  • 🖼️ Advanced image processing
  • 📝 Automatic metadata generation

💬 Interactive AI Chat

  • 🧠 Context-aware document conversations
  • 🌐 Web search integration
  • 📊 Structured data extraction
  • 🎯 Precision question answering
  • ✍️ Rich markdown responses

📂 Smart Management

  • 🔎 Full-text semantic search
  • 📱 Mobile-responsive interface
  • 🔄 Real-time sync
  • 📊 Analytics dashboard
  • 🔐 Secure document handling

🛠️ Tech Stack

Backend

  • ⚡ FastAPI
  • 🍃 MongoDB
  • 🤖 Google Gemini AI
  • 🖼️ PIL/Pillow
  • 🌐 BeautifulSoup4
  • 🚀 Uvicorn

Frontend

  • ⚛️ React
  • 🎨 Material-UI
  • 🛣️ React Router
  • 📡 Axios
  • 📝 React Markdown
  • 🎯 Redux Toolkit

🏗️ Architecture

diagram-export-3-26-2025-5_05_21-PM

🚀 Getting Started

Prerequisites

  • 🐍 Python 3.8+
  • 📦 Node.js 14+
  • 🍃 MongoDB 4.4+
  • 🔑 Gemini API Key

Quick Start

  1. Clone & Setup
git clone https://github.com/KhataGPT/KhataGPT.git
cd KhataGPT
  1. Backend Setup
cd backend
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload
  1. Frontend Setup
cd frontend
npm install
npm start
  1. Environment Configuration
# Backend .env
GEMINI_API_KEY=your_key_here
MONGODB_URI=mongodb://localhost:27017/
MONGODB_DB_NAME=KhataGPTv2

# Frontend .env
REACT_APP_API_URL=http://localhost:8000

📚 Documentation

API Endpoints

Endpoint Method Description
/api/v1/documents POST Upload document
/api/v1/documents GET List documents
/api/v1/chat POST Send message
/api/v1/chat/{id} GET Chat history

🤝 Contributing

  1. Fork repository
  2. Create feature branch (git checkout -b feature/AmazingFeature)
  3. Commit changes (git commit -m 'Add AmazingFeature')
  4. Push branch (git push origin feature/AmazingFeature)
  5. Open Pull Request

🔒 Security

  • 🛡️ Input sanitization
  • 🔐 JWT authentication
  • 📝 Input validation
  • 🚫 Rate limiting
  • 🔍 Security headers

📄 License

MIT License • View License

💬 Support


Made with ❤️ by the KhataGPT Team

Stars Follow

About

Transform how you interact with documents! Simply upload receipts, invoices, or forms and instantly chat with them. Get answers, extract key information, and save hours of manual work. Your personal document assistant that understands what matters to you.

Topics

Resources

License

Stars

Watchers

Forks