https://github.com/user-attachments/assets/19930f7d-c3de-4896-a3e6-253a3184afdb
# Install dependencies
pipenv install
# Create a virtual environment
pipenv shell
# Initialize the database
flask --app app.web init-db
These instructions are included if you wish to use venv to manage your evironment and dependencies instead of Pipenv.
# Create the venv virtual environment
python -m venv .venv
# On MacOS, WSL, Linux
source .venv/bin/activate
# On Windows
.\.venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Initialize the database
flask --app app.web init-db
There are three separate processes that need to be running for the app to work: the server, the worker, and Redis.
If you stop any of these processes, you will need to start them back up!
Commands to start each are listed below. If you need to stop them, select the terminal window the process is running in and press Control-C
Open a new terminal window and create a new virtual environment:
pipenv shell
Then:
inv dev
Open a new terminal window and create a new virtual environment:
pipenv shell
Then:
inv devworker
redis-server
Open a new terminal window and create a new virtual environment:
pipenv shell
Then:
flask --app app.web init-db
These instructions are included if you wish to use venv to manage your evironment and dependencies instead of Pipenv.
There are three separate processes that need to be running for the app to work: the server, the worker, and Redis.
If you stop any of these processes, you will need to start them back up!
Commands to start each are listed below. If you need to stop them, select the terminal window the process is running in and press Control-C
Open a new terminal window and create a new virtual environment:
# On MacOS, WSL, Linux
source .venv/bin/activate
# On Windows
.\.venv\Scripts\activate
Then:
inv dev
Open a new terminal window and create a new virtual environment:
# On MacOS, WSL, Linux
source .venv/bin/activate
# On Windows
.\.venv\Scripts\activate
Then:
inv devworker
redis-server
Open a new terminal window and create a new virtual environment:
# On MacOS, WSL, Linux
source .venv/bin/activate
# On Windows
.\.venv\Scripts\activate
Then:
flask --app app.web init-db
Create a .env file:
SECRET_KEY=
SQLALCHEMY_DATABASE_URI=
UPLOAD_URL=
LANGCHAIN_API_KEY={optional}
SAMBANOVA_API_KEY={optional}
GITHUB_API_KEY={optional}
OPEN_API_KEY={optional}
REDIS_URI=
PINECONE_API_KEY=
PINECONE_ENV_NAME=
PINECONE_INDEX_NAME=