For .env
- environment variable file, email ankit.sanghavi87@gmail.com
For running the project, we use Gunicorn. There are the steps
0. Install python, pip and python virtual env
sudo apt install python
sudo apt update
sudo apt upgrade
sudo apt install python3-pip python3-venv
-
Setup python virtual environment
python3 -m venv cback-env
-
Activate the virtual environment
source cback-env/bin/activate
-
Install the requirements
pip install -r requirements.txt
-
Install gunicorn
sudo apt install gunicorn
-
Run the project in detached mode
gunicorn -w 4 -b 0.0.0.0:5000 app:app -D
-
To stop the project
ps aux | grep gunicorn
-
Kill the process
kill -9 <process_id>
-
To run the project in debug mode
python app.py
In the chat-verlab-backend/PYTHON_ENV/lib/python3.10/site-packages/langchain/schema/retriever.py
, I have disabled class inheritance for the BaseRetriever
class to not include inheriting from Serializable
class
original code
class BaseRetriever(Serializable, ABC):
"""Abstract base class for a Document retrieval system.
A retrieval system is defined as something that can take string queries and return
the most 'relevant' Documents from some source.
new updated changed code
class BaseRetriever(ABC):
"""Abstract base class for a Document retrieval system.
A retrieval system is defined as something that can take string queries and return
the most 'relevant' Documents from some source.