Batch document loader into Quivr
Run the docker container
docker-compose up
Build the docker image before running the docker container
docker-compose up --build
SSH into the container to run the application.
pyenv
is used for this project. This will use the version of python defined in .python-version
file. Activate the virtual environment and install dependencies like so:
$ python -m venv venv
$ source venv/bin/activate
$ pip install --upgrade pip
$ pip install -r requirements.txt
Create a .env
environment file by making a copy of the .env.example
file.
$ cp .env.example .env
Replace the environment variables in .env
for this project.
$ python app.py
Because the application maps the app folder to the local file system. It is possible to make modifications to the source code and rerun the python script without rebuilding the docker image or stopping the container.