{"id":30895854,"url":"https://github.com/sidhyaashu/assignment-grader-x","last_synced_at":"2025-09-08T22:48:27.647Z","repository":{"id":295106673,"uuid":"989135328","full_name":"sidhyaashu/Assignment-Grader-X","owner":"sidhyaashu","description":"An AI-powered application that automates assignment grading","archived":false,"fork":false,"pushed_at":"2025-05-23T16:02:55.000Z","size":110,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"sidhya","last_synced_at":"2025-05-23T17:35:50.666Z","etag":null,"topics":["google-search-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidhyaashu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-23T15:58:08.000Z","updated_at":"2025-05-23T16:03:56.000Z","dependencies_parsed_at":"2025-05-26T09:04:34.402Z","dependency_job_id":null,"html_url":"https://github.com/sidhyaashu/Assignment-Grader-X","commit_stats":null,"previous_names":["sidhyaashu/assignment-grader-x"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sidhyaashu/Assignment-Grader-X","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidhyaashu%2FAssignment-Grader-X","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidhyaashu%2FAssignment-Grader-X/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidhyaashu%2FAssignment-Grader-X/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidhyaashu%2FAssignment-Grader-X/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidhyaashu","download_url":"https://codeload.github.com/sidhyaashu/Assignment-Grader-X/tar.gz/refs/heads/sidhya","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidhyaashu%2FAssignment-Grader-X/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231215,"owners_count":25245659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-search-api"],"created_at":"2025-09-08T22:48:15.489Z","updated_at":"2025-09-08T22:48:27.637Z","avatar_url":"https://github.com/sidhyaashu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚 AI Assignment Grader\n\nAn AI-powered application that automates assignment grading, detects plagiarism, and provides structured feedback to students. It combines the strengths of Google Gemini AI, Google Custom Search, and a user-friendly Streamlit interface for educators and evaluators.\n\n---\n\n## ✨ Features\n\n- **📄 Document Processing**  \n  Upload and process PDF or DOCX assignment files.\n\n- **🔍 Plagiarism Detection**  \n  Leverages Google Custom Search API to find content similarities on the web.\n\n- **🧠 AI Grading System**  \n  Utilizes Google Gemini AI (or optionally OpenAI) to evaluate assignments based on customizable rubrics.\n\n- **📝 Constructive Feedback**  \n  Generates detailed, section-specific feedback to aid student improvement.\n\n- **🌐 User Interface**  \n  Streamlit-based interface that’s intuitive and accessible via the browser.\n\n- **⚙️ Modular System**  \n  Clean separation between frontend (Streamlit) and backend (FastAPI) services for better scalability and maintenance.\n\n---\n\n## 🧱 Architecture Overview\n\n```\n+----------------------+     +----------------------+\n|     Frontend UI      | \u003c-\u003e |      Backend API     |\n|  (Streamlit - app.py)|     |  (FastAPI - server.py)|\n+----------------------+     +----------------------+\n            |                         |\n            |                         |\n        File Upload          AI Evaluation + Plagiarism Check\n            |                         |\n            +---------+   +----------+\n                      |   |\n        +-------------v---v-------------+\n        |   Google APIs (Gemini, Search)|\n        +-------------------------------+\n```\n\n---\n\n## 🛠️ Setup Instructions\n\n### ✅ Prerequisites\n\n- Python 3.8+\n- `uv` package manager (lightweight, fast Python environment tool)\n- API Keys:\n  - Google API Key\n  - Google Custom Search Engine ID\n  - Google Gemini API Key\n  - (Optional) OpenAI API Key\n\n---\n\n### 📦 Installation\n\n#### 1. Clone the repository:\n\n```bash\ngit clone https://github.com/sidhyaashu/ai-assignment-grader.git\ncd ai-assignment-grader\n```\n\n#### 2. Set up environment with `uv`:\n\n```bash\nuv init assignment-grader\ncd assignment-grader\nuv venv\n.venv\\Scripts\\activate      # On Windows\n# OR\nsource .venv/bin/activate  # On macOS/Linux\n\nuv add -r requirements.txt\n```\n\n#### 3. Configure environment variables:\n\nCreate a `.env` file in the project root with the following content:\n\n```env\n# API Server Configuration\nAPI_SERVER_URL=http://localhost:8000\n\n# Google Search API for plagiarism checking\nGOOGLE_API_KEY=your_google_api_key_here\nGOOGLE_CX=your_google_custom_search_id_here\n\n# Gemini API for grading and feedback\nGEMINI_API_KEY=your_gemini_api_key_here\n\n# OpenAI API as a fallback (optional)\nOPENAI_API_KEY=your_openai_api_key_here\n```\n\n---\n\n## ▶️ Running the Application\n\n### 1. Start the backend server\n\n```bash\npython server.py\n```\n\n### 2. Start the frontend (Streamlit client)\n\n```bash\nstreamlit run app.py\n```\n\n### 3. Access the App\n\nOpen your browser and navigate to:  \n👉 `http://localhost:8501`\n\n---\n\n## 🧭 Usage Guide\n\n1. **Upload File Tab**  \n   Upload your assignment file (PDF or DOCX) and process it.\n\n2. **Grade Assignments Tab**  \n   Define your grading rubric, enable optional plagiarism check, and submit for grading.\n\n3. **Results Tab**  \n   View AI-generated grade, feedback, and a plagiarism similarity score/report.\n\n---\n\n## 🛠️ Customization Options\n\n- **Rubric Adjustments**  \n  Modify the grading criteria directly through the interface before submitting assignments.\n\n- **API Configuration**  \n  Change API keys and model preferences in the sidebar settings or update the `.env` file.\n\n- **Model Switching**  \n  Default: Google Gemini 1.5 Pro  \n  Optional: OpenAI GPT (fallback if Gemini fails or not preferred)\n\n---\n\n## ❗ Troubleshooting\n\n| Issue                       | Solution                                                                 |\n|----------------------------|--------------------------------------------------------------------------|\n| File not uploading         | Ensure it's a valid PDF or DOCX and not password-protected               |\n| API errors                 | Check API keys and network connectivity                                  |\n| Backend not responding     | Ensure `server.py` is running on `http://localhost:8000`                 |\n| Gemini/OpenAI issues       | Ensure respective API keys are correct and your quota is not exhausted   |\n\n---\n\n## 📂 Folder Structure\n\n```\nassignment-grader/\n├── .env                    # API credentials\n├── .gitignore              # Git ignored files\n├── .python-version         # Python version for environment\n├── app.py                  # Streamlit frontend application\n├── server.py               # FastAPI backend server\n├── requirements.txt        # Project dependencies\n├── pyproject.toml          # Python project config\n├── uv.lock                 # uv dependency lock file\n└── README.md               # Project documentation\n```\n\n---\n\n## 📄 License\n\nThis project is licensed under the **MIT License**.  \nSee the [LICENSE](LICENSE) file for more information.\n\n---\n\n## 🙋‍♂️ Contributing\n\nPull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidhyaashu%2Fassignment-grader-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidhyaashu%2Fassignment-grader-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidhyaashu%2Fassignment-grader-x/lists"}