- Docker Image Name:
prathamkumars125/chat-with-multiple-document - Docker Hub: prathamkumars125/chat-with-multiple-document
- Notebooks/Chat_with_Multiple_Documents.ipynb: Jupyter notebook for exploring and interacting with multiple documents.
- static/app.py: Streamlit application file.
- static/man-kddi.png: Image file used in the Streamlit app.
- static/robot.png: Another image file used in the Streamlit app.
- README.md: This file.
- index.py: FastAPI application file.
- main.py: Entry point for running both Streamlit and FastAPI.
- requirements.txt: Lists the Python dependencies required for the project.
-
Clone the repository:
git clone https://github.com/PrathamKumar125/Chat-with-Multiple-Documents.git cd Chat-with-Multiple-Documents -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
The application can be run individually using: FastAPI app, Streamlit app, Or Both using main.py.
```bash
uvicorn index:app --reload
```
By default, the FastAPI app will be available at `http://127.0.0.1:8000/docs`.
```bash
streamlit run streamlit_app.py
```
By default, the Streamlit app will be available at `http://localhost:8501`.
```bash
streamlit run main.py
```
This will start both the FastAPI server and the Streamlit application. By default:
- The FastAPI app will be available at `http://127.0.0.1:8000`.
- The Streamlit app will be available at `http://localhost:8501`.
**Note:** Ensure that `main.py` is configured to handle starting both services properly.
Typically, `main.py` should manage the execution of both FastAPI and Streamlit applications, possibly using threading or multiprocessing.
The required Python packages are listed in requirements.txt. Ensure all dependencies are installed as described in the "Setup and Installation" section.
