mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
Extended info on .env
This commit is contained in:
14
README.md
14
README.md
@@ -27,7 +27,7 @@ Say goodbye to time-consuming manual searches, and let <strong>DocsGPT</strong>
|
|||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
You can find our [Roadmap](https://github.com/orgs/arc53/projects/2) here, please don't hesitate contributing or creating issues, it helps us make DocsGPT better!
|
You can find our [Roadmap](https://github.com/orgs/arc53/projects/2) here. Please don't hesitate to contribute or create issues, it helps us make DocsGPT better!
|
||||||
|
|
||||||
## Our open source models optimised for DocsGPT:
|
## Our open source models optimised for DocsGPT:
|
||||||
|
|
||||||
@@ -71,16 +71,18 @@ If you don't have enough resources to run it you can use bitsnbytes to quantize
|
|||||||
|
|
||||||
## QuickStart
|
## QuickStart
|
||||||
|
|
||||||
Note: Make sure you have docker installed
|
Note: Make sure you have Docker installed
|
||||||
|
|
||||||
1. Dowload and open this repository with `git clone https://github.com/arc53/DocsGPT.git`
|
1. Download and open this repository with `git clone https://github.com/arc53/DocsGPT.git`
|
||||||
2. Create an .env file in your root directory and set the env variable OPENAI_API_KEY with your openai api key and VITE_API_STREAMING to true or false, depending on if you want streaming answers or not
|
2. Create a .env file in your root directory and set the env variable OPENAI_API_KEY with your OpenAI API key and VITE_API_STREAMING to true or false, depending on if you want streaming answers or not
|
||||||
It should look like this inside:
|
It should look like this inside:
|
||||||
|
|
||||||
```
|
```
|
||||||
OPENAI_API_KEY=Yourkey
|
OPENAI_API_KEY=Yourkey
|
||||||
VITE_API_STREAMING=true
|
VITE_API_STREAMING=true
|
||||||
|
SELF_HOSTED_MODEL=false
|
||||||
```
|
```
|
||||||
|
See optional environment variables in the `/.env-template` and `/application/.env_sample` files.
|
||||||
3. Run `./run-with-docker-compose.sh`
|
3. Run `./run-with-docker-compose.sh`
|
||||||
4. Navigate to http://localhost:5173/
|
4. Navigate to http://localhost:5173/
|
||||||
|
|
||||||
@@ -89,7 +91,7 @@ To stop just run Ctrl + C
|
|||||||
## Development environments
|
## Development environments
|
||||||
|
|
||||||
### Spin up mongo and redis
|
### Spin up mongo and redis
|
||||||
For development only 2 containers are used from docker-compose.yaml (by deleting all services except for redis and mongo).
|
For development only 2 containers are used from docker-compose.yaml (by deleting all services except for Redis and Mongo).
|
||||||
See file [docker-compose-dev.yaml](./docker-compose-dev.yaml).
|
See file [docker-compose-dev.yaml](./docker-compose-dev.yaml).
|
||||||
|
|
||||||
Run
|
Run
|
||||||
@@ -110,7 +112,7 @@ export MONGO_URI=mongodb://localhost:27017/docsgpt
|
|||||||
```
|
```
|
||||||
2. Prepare .env file
|
2. Prepare .env file
|
||||||
Copy `.env_sample` and create `.env` with your OpenAI API token
|
Copy `.env_sample` and create `.env` with your OpenAI API token
|
||||||
3. (optional) Create a python virtual environment
|
3. (optional) Create a Python virtual environment
|
||||||
```commandline
|
```commandline
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|||||||
Reference in New Issue
Block a user