Viewing File: /home/ubuntu/codegamaai-test/rag_drive/readme.md

# Installation Guide for RAG Drive

- This document provides a step-by-step guide to installing and running the RAG Drive. Follow the instructions carefully to set up the project correctly.

## Prerequisites

- Before you begin, ensure you have the following installed on your system:

- Python 3.7 or higher
- Git

## Steps to Install and Run RAG Drive

### 1. Clone the Bitbucket Repository

- Clone the repository from Bitbucket to your local machine using the following command:

```bash

      git clone https://bitbucket.org/codegama/rag_drive.git

```

### 2. Create and Activate Python Environment

- Navigate to the project directory and create a Python virtual environment:

```bash

       cd <project_directory>
       python -m venv venv_ragdrive

```

- Activate the virtual environment:

- On macOS and Linux:

```bash

      source venv_ragdrive/bin/activate
	
```

### 3. Install Dependencies

- Install the required Python packages specified in the requirements.txt file:

```bash

      pip3 install -r requirements.txt

```

### 4. Download the Embedding Model

- Navigate to DriveData Folder.

```bash

      cd ./DriveData

```

- Download the Embedding Model from the Dropbox folder: https://www.dropbox.com/scl/fo/d9cm6wj0f3zf9lercefz1/AHPk49P4Wv-WqvOBOX-Ilqk?rlkey=cbt7p89zluqusd2286na1p5rw&st=tir87iny&dl=0

- Upload the **emb_model** folder

### 5. Run the Application

Finally, navigate to the RagDrive Folder and run the application using the following command:

```bash

        cd ../
        cd ./RagDrive
        python3 Tars.py

```

- Note: The ports specified for this API is 6003, 6004, 6005.
Back to Directory File Manager