Below are the step-by-step instructions for all the prerequisites needed to install RagBot.AI. Please follow the section that corresponds to your operating system: Mac, Windows, or Linux.
- Python 3.8 or above
- pip (Python package installer)
- (Optional) Microsoft Visual Studio Code or any other Integrated Development Environment (IDE) of your choice.
-
Install Homebrew. It is a package manager for MacOS. You can install it by pasting the following command at a Terminal prompt:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install Python 3 and pip using Homebrew:
brew install python
-
(Optional) If you do not have an IDE installed or prefer to use Visual Studio Code, you can install it using the following command:
brew install --cask visual-studio-code
- Install Python and pip: Download the latest version of Python from the official website here: https://www.python.org/downloads/windows/
- (Optional) Install Visual Studio Code: Download the installer from the official site: https://code.visualstudio.com/download
- During the Python installation, make sure to check the box that says "Add Python to PATH" before you click on "Install Now".
-
You can install Python and pip using the package manager that comes with your distribution. For Ubuntu, you can use the following commands:
sudo apt-get update sudo apt-get install python3 sudo apt-get install python3-pip
-
(Optional) To install Visual Studio Code on Ubuntu, you can use the following commands:
sudo apt update sudo apt install software-properties-common apt-transport-https wget wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" sudo apt update sudo apt install code
For other Linux distributions, please follow the respective package manager commands to install Python, pip and Visual Studio Code.
Once you have Python and pip installed, you can download the RagBot.AI code from its GitHub repository and install its dependencies using pip.
-
Clone the RagBot.AI repository from GitHub:
git clone https://github.com/rajivpant/ragbot.git
-
Navigate to the RagBot.AI directory:
cd ragbot
-
Install the Python package dependencies including APIs to access LLM engines:
pip install -r requirements.txt
-
You're all set to configure, personalize, and run RagBot.AI! Read the configuration and personaliation guide and the main documentation.
Remember, while Visual Studio Code is a popular and powerful IDE, its installation is entirely optional. You may use any other text editor or IDE you're comfortable with to explore and contribute to the RagBot.AI project. Happy coding!