Skip to content

3Alan/DocsMind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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