Skip to content

Shlok-AI: Experience the richness of Vedic literature and Indian civilization with AI. Given a simple input of a Shloka or any generic query about Indian culture, Shlok-AI provides a comprehensive AI powered response

License

Notifications You must be signed in to change notification settings

initd1/Shlok-AI

Repository files navigation

SHLOK-AI

SHLOK-AI FEATURE PREVIEW

[PREVIEW] Shlok-AI: Experience the richness of Vedic literature and Indian Civilization with AI

SHLOK-AI FEATURE PREVIEW [EXTENDED]

[EXTENDED] Shlok-AI: Experience the richness of Vedic literature and Indian civilization with AI

Installation instructions

  1. Clone the github repository git clone https://github.com/initd1/Shlok-AI.git

Environment Set-up

  1. Install python-pip in your environment
  2. Install virtualenv pip install virtualenv
  3. Create virtual environment virtualenv <environment-name>
  4. Activate virtual environment
    Mac or Linux
source <environment-name>/bin/activate

Windows

<environment-name>\Scripts\activate.bat
  1. Install required packages in the virtual environment
pip install -r requirements.txt
  1. Ensure node and npm are installed in your environment

Prerequisites

  1. Ensure config.ini file is created under Config directory

  2. Use config.ini.template file as a reference and fill the required details.

  3. Rename config.ini.template to config.ini

    Preview of config.ini.template file:

    [OPENAI]
    OPENAI_API_KEY=
    MODEL=

Start Shlok-AI

  1. Execute Flask API script so the API Endpoints are made available
    • python api.py
  2. From the home folder of the npm app,
    • cd shlok-ai
    • npm run start

Testing

It is important that before you do anything you have the requirements.txt file installed as it is required for the dependencies that are used in this project.

To install all dependencies listed in this file, run the following:

python -m pip install -r requirements.txt

To execute tests, please ensure that you have the pytest module installed. The unittest module is used, however, this is native to python and does not have to be installed. To run tests, please ensure that you are in the base directory, where Tests and main.py is visible.

To run tests with print output:

pytest -s 

To run tests without print output:

pytest

Warning pytest will not run if python site-packages are not already in your global path!

Container deployment

Use docker compose to provision the microservices for shlok-ai API and shlok-ai UI.

The below command will build the images as well as bring up both the containers:

docker-compose -f docker-compose-shlok-ai.yml up -d --build

About

Shlok-AI: Experience the richness of Vedic literature and Indian civilization with AI. Given a simple input of a Shloka or any generic query about Indian culture, Shlok-AI provides a comprehensive AI powered response

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published