Installation Instructions ------------------------- .. raw:: html

Follow these steps to install and run the RAG - Retrieval-Augmented Generation application locally:

  1. Clone the repository:
  2. git clone https://github.com/imadmaalouf02/RAG.git
  3. Install the dependencies:
  4. Make sure you have Python installed. You can install the required dependencies using the following command:

    pip install -r requirements.txt
  5. Alternative Conda installation:
  6. If you are using Conda as your environment manager, you can install Streamlit with:

    conda install -c conda-forge streamlit
  7. Run the application:
  8. Once all dependencies are installed, run the Streamlit app using:

    streamlit run app.py
  9. Access the app in your browser:
  10. 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 -------------------------------------------- .. raw:: html

  1. Upload your document:
  2. 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.

  3. Select the language model:
  4. Choose one of the available language models from the dropdown menu. The models include:

  5. Choose the task:
  6. Select the task you want to perform from the available options:

  7. View the results:
  8. 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.