- Project Overview
- Key Features
- Components
- Installation
- Configuration
- Usage
- Contributing
- License
- Support
Virtual Labs Prompt Repository is a tool designed for Virtual Labs staff to generate various types of content, such as blogs and documentation, using large language models (LLMs). The repository contains predefined prompt templates, allowing users to input specific information to generate content efficiently.
- Content Generation: Generate content like blogs and documentation using predefined prompt templates.
- User Inputs: Customize content generation by providing specific inputs.
- Hierarchical Structure: Organized structure with prompt directories, categories, and templates for easy navigation and usage.
The project is divided into two main components:
-
Frontend:
- Developed using ReactJS and CSS.
- Provides an interactive user interface for inputting data and generating content.
-
Backend:
- Developed using Flask (Python).
- Handles server-side logic and integrates with the Gemeni API for text generation.
- Node.js and npm for the frontend.
- Python 3.9+ for the backend.
- Node.js and npm for the frontend.
- Python 3.9+ for the backend.
- Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Start the frontend server:
npm start
- Create a .env file and a secrets folder in the backend directory.
- Place the service-account-secret.json file inside the secrets folder.
- Set up a Python virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
- Start the backend server:
python server.py
.env file:
GOOGLE_SHEET_ID
: ID of the Google Sheet used for storing data.GEMENI_API
: API key for Gemeni, used for text generation.
The Google Sheet contains three tabs:
Users:
- Github Account: The GitHub account of the user.
- Role: The role of the user.
Prompt Directories:
- Prompt Directory: Name of the prompt directory.
- Category List: List of categories under the directory.
Prompt Templates:
- Prompt Directory: The directory to which the template belongs.
- Category: The category under the directory.
- Template Name: Name of the template.
- Prompt Template: The template text.
- Placeholders: Placeholders to be filled by user inputs.
The application is organized in a hierarchical manner:
Prompt Directory → Prompt Category → Prompt Template
Users add inputs in the Prompt Template to generate the desired content.
Users can generate their Gemeni API key from this link.
- Start the frontend and backend servers as described in the installation section.
- Open the frontend in your browser.
- Navigate through the prompt directories and categories to find the desired prompt template.
- Fill in the required placeholders and generate content.