Installation Instructions
Follow these steps to install and run the RAG - Retrieval-Augmented Generation application locally:
- Clone the repository:
- Install the dependencies:
- Alternative Conda installation:
- Run the application:
- Access the app in your browser:
git clone https://github.com/imadmaalouf02/RAG.git
Make sure you have Python installed. You can install the required dependencies using the following command:
pip install -r requirements.txt
If you are using Conda as your environment manager, you can install Streamlit with:
conda install -c conda-forge streamlit
Once all dependencies are installed, run the Streamlit app using:
streamlit run app.py
After running the command, Streamlit will open the application in your default browser. If not, you can access it by navigating to:
http://localhost:8501
Step-by-Step Guide for Using the Application
On the main page of the application, you will see an option to upload a PDF file. Use the file upload widget to select your document. Choose one of the available language models from the dropdown menu. The models include: Select the task you want to perform from the available options: Once the task is complete, the output will be displayed on the same page. Depending on the task, you'll either see a summary, translation, or answers to your questions.