/DocsMind

🤖 DocsMind allows you to chat with your docs and summarize your docs, support pdf, md.

Primary LanguageTypeScriptGNU Affero General Public License v3.0AGPL-3.0

DocsMind

DocsMind is an open-source project that allows you to chat with your docs.

Stack

It is currently under development and there may be major changes at any time.

🎬 Demo

Demo Site

Warning

Due to the free plan of Railway only providing 500 hours per month, the Demo on the 21st day of each month will not be available. Please clone it locally for use at that time.

🌟 Features

  • 🤖 Ask a question with your docs
  • 📝 Summarize docs
  • 🖍️ Highlight source
  • 📤 Upload docs .pdf,.md(best support)
  • 💾 Data saved locally
  • 💰 Token usage tracker
  • 🐳 Dockerize

🚀 Road Map

  • Chat mode
  • Dark mode
  • / command (/fetch /summarize)
  • Reduce the size of the server image.
  • Support for more docs formats: txt...
  • Download docs from the internet
  • Markdown-formatted message
  • i18n
  • Desktop application

If you find this project helpful, please consider giving it a star 🌟

💻 Environment Variables

Name Description Optional
OPENAI_PROXY will replace https://api.openai.com/v1
VITE_SERVICES_URL backend url for frontend code
VITE_DISABLED_UPLOAD DISABLED_UPLOAD

❓ FAQ

This project includes both frontend (/client) and backend (/server) code. The frontend code is used to display the UI, while the backend code provides services to the UI.

How to deploy?

More details

How to run?

Warning

Please check if you can access OpenAI in your region, you can refer to the issue for more information.

  1. Create .env

Create a .env file and copy the contents of .env.example to modify it.

  1. Run App
docker-compose up -d

Please add --build to rebuild the image after each code update.

docker-compose up -d --build

now you can access the app at http://localhost:8081

All data will be saved in the ./data directory.

Local Development

Detail

Create .env

Create a .env file and copy the contents of .env.example to modify it.

Run Frontend UI

  1. Install dependencies
yarn
  1. Run app
yarn dev

Run Backend Services

you need a python environment

  1. Create virtual environment
cd server
python -m venv .venv
  1. Active virtual environment

windows

.venv\Scripts\activate

mac

. .venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run Services
flask run --reload --port=8080

📝 License

AGPL-3.0 License

☕ Buy me a coffee

ko-fi

Alipay and Wechat