-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silicon Sages - AI-Resistant Assignments Expedition #108
base: STAGING
Are you sure you want to change the base?
Silicon Sages - AI-Resistant Assignments Expedition #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check comment
import uuid | ||
import requests | ||
import gdown | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we have been using document loader in multiple tools, shouldn't we move it to global util? @WilfredoAaronSosaRamosBoushtech
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yunusj I've refactored the AI-Resistant Assignments Generator moving the document loaders to a global utils folder for better reusability.
Silicon Sages - AI-Resistant Assignments Expedition - PR
Summary
This PR introduces several enhancements and new features to the AI-Resistant Assignments Expedition. The document loaders included in this PR support the following file types:
Changes
allowed_file_extensions.py
to manage file types robustly.tool.py
to integrate the designed workflow for generating AI-resistant assignments.core.py
to integrate the AI-resistant assignments generator workflow fromtool.py
appropriately.Testing
Each document loader was tested using pytest, with scenarios and edge cases properly managed.
Results
All document loaders are functioning as expected, yielding optimal results.
Notes
For Google Docs, Slides, Sheets, and PDF files:
How to Test
Clone the repository to your local environment.
Create and activate a virtual environment.
Run
pip install -r requirements.txt
to install the required libraries.Create a
.env
file with the following fields:ENV_TYPE
(e.g.,dev
)GCP_PROJECT_ID
(your project ID from Cloud Console)GOOGLE_API_KEY
(your API key from AI Studio)Start the application by running
./local-start.sh
.Add sample requests and responses for each file type mentioned above (with screenshots), and test them.
Request interface
Schema:
Example:
Response interface
Schema: