Coder Social home page Coder Social logo

pani-genie's Introduction

About Pani-Genie

Pani-Genie is an innovative chatbot application based on the Ayushma framework designed by the designed to provide the users of Indiawaterportal with detailed information and assistance related to water management and related topics. Leveraging advanced AI technologies, Pani-Genie integrates OpenAI's GPT-3.5 turbo for natural language processing and Pinecone for vector database management to offer accurate and relevant information. The chatbot is built to support students, scholars, and experts in accessing a vast repository of articles and data, making it a valuable resource for educational and professional purposes.

  1. Download VS Code

    (vscode download)

  2. Download Git

  3. Download a Remote Server (WSL - Ubuntu)

    • WSL Tutorial
    • Follow the instructions to install WSL
    • Open a remote server
  4. Enable Windows Subsystem for Linux

    • Search for "Turn Windows features on or off"
    • Select "Windows Subsystem for Linux" and turn it on
    • Restart the computer when prompted
    • Add the distro (Ubuntu) and install it
    • Launch Ubuntu and set a username and password

    Enable WSL Enable WSL Enable WSL Enable WSL Enable WSL

  5. Connect to the Distro

    • You should see WSL: Ubuntu
    • Go to the /mnt directory to access files on Windows

    Connect to Distro

Setting Up the Backend

  1. Open a New Folder in VS Code

    • Select the file location in the remote server
    • Use Ctrl + to open the terminal

    Open Folder

  2. Download Docker

    • Download Docker
    • Install using the installer
    • Continue without signing in and restart if the engine stopped
    • Make sure the Docker engine is running and restart if needed Download Docker
  3. Install the make Command

    • Install make using the appropriate command for your environment

    Install Make

  4. Run the make up Command

    • Ensure Docker is running
    • The make command will initiate the required installations
    • Once all dependencies are installed and containers are started, run the make down command to stop all containers

    Run Docker Install Make

  5. Set Environment Variables

    • In the ayushma/.envs/.local/django file, append the following:
      AI_NAME="Your api"
      OPENAI_API_KEY=sk-3axxxxxxxxxlOG
      PINECONE_API_KEY=43xxxxxxx2
      PINECONE_ENVIRONMENT=gcp-starter
      PINECONE_INDEX=default
      CURRENT_DOMAIN=http://localhost:8000
    • Set the environment variables:
      • Find the OpenAI key:
        • Login to OpenAI API
        • Go to the API-Keys section and create a new key
        • Save it to a notepad Set OPENAI Set OPENAI
      • Login to Pinecone
        • Go to the API-keys section and copy the default key
        • Set the environment variable
      • Store these keys in the variable and set the Pinecone index and environment according to the index available in the Pinecone page Set OPENAI
    • Run the make up command

Setting Up the Frontend

  1. Install Node.js

  2. Install Yarn

    • Run the command:
      npm install --global yarn
    • Once Yarn is installed, run:
      yarn dev
    • If issues arise, try changing the execution policy from Restricted

    Install Yarn

Adding a Superuser

  1. Access the Entrypoint File

    • Run the command:
      docker exec -it ayushma-django-1 /entrypoint bash
    • This accesses the entrypoint file where you can add the superuser

    Access Entrypoint

  2. Create the Superuser

    • Run the command:
      python manage.py createsuperuser
    • Enter the credentials
  3. Add a New Project in the Admin Panel

    • Go to localhost:8000/admin
    • Add a new project with a prompt
    • Fill in all required details

    Add New Project

  4. Set the Project as Default

    • Select the "is default" option

Login to the Application

  1. Go to localhost:3000 for Login

  2. Setup a Local Server (if needed)

    • Change the URL from localhost:8000 to https://ipv4address:8000 in the backend and frontend

pani-genie's People

Contributors

aaronjjean avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.