Welcome to the GenSystem Edge Functions repository! This project contains a collection of Supabase Edge Functions designed to enhance the functionality and flexibility of your application.
This repository includes the following edge functions:
- Answer Generation
- Exam Generation
- Comment Handler
Each function is located in the functions/
folder and is designed to be robust, scalable, and easy to integrate.
To explore the repository and use the edge functions:
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/gensystem-edge-functions.git cd gensystem-edge-functions
-
Navigate to the
functions/
folder:cd functions
-
Each edge function is located in its respective folder:
answer-generation
exam-generation
comment-handler
results-handler
-
Follow the specific documentation for each edge function to configure and deploy it.
- Purpose: Generate answers based on specific inputs.
- Documentation: Refer to the
README.md
file in thefunctions/answer-generation/
folder for setup instructions and API details. - Key Features:
- Accepts question inputs and generates accurate, contextual answers.
- Purpose: Generate exams with custom configurations (e.g., difficulty, number of questions).
- Documentation: Refer to the
README.md
file in thefunctions/exam-generation/
folder for setup instructions and API details. - Key Features:
- Supports multiple question types (MCQ, True/False).
- Integrates with external APIs for dynamic question generation.
- Purpose: Insert, update, and fetch comments tied to specific entities (e.g., questions, attempts, students).
- Documentation: Refer to the
README.md
file in thefunctions/comment-handler/
folder for setup instructions and API details. - Key Features:
- Validates input parameters to ensure robust error handling.
- Supports dynamic queries for fetching and managing comments.
To deploy the edge functions:
-
Install Supabase CLI: Follow the Supabase CLI setup guide to install and configure the CLI.
-
Run Supabase Locally (Optional):
supabase start
-
Deploy Edge Functions: Navigate to the specific function folder and deploy:
supabase functions deploy FUNCTION_NAME
Replace
FUNCTION_NAME
with one of the following:answer-generation
exam-generation
comment-handler
results-handler
We welcome contributions! If you'd like to contribute to this repository:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Submit a pull request for review.
This repository is licensed under the MIT License. See the LICENSE file for details.
Thank you for exploring the GenSystem Edge Functions repository! We hope these functions help streamline your workflows and enhance your application's capabilities.