No description
  • Rust 98.2%
  • TypeScript 0.7%
  • CSS 0.4%
  • Shell 0.3%
  • Python 0.3%
Find a file
2025-11-25 23:07:35 +00:00
.bmad-core Fix more issues so that clippy passes on the whole project. Update bmad configuration 2025-10-23 17:09:20 +01:00
.claude/commands/BMad ADD BMAD-METHOD v4.44.1 CORE FILES AND CONFIGURATION 2025-10-11 23:55:45 +01:00
.cursor/rules/bmad Fix more issues so that clippy passes on the whole project. Update bmad configuration 2025-10-23 17:09:20 +01:00
.gemini/commands/BMad Add gemini cli support 2025-10-17 19:21:14 +01:00
.github Story 8.1 implement 2025-11-14 03:48:10 +00:00
.qwen/bmad-method Fix more issues so that clippy passes on the whole project. Update bmad configuration 2025-10-23 17:09:20 +01:00
.serena Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
.windsurf/workflows ADD BMAD-METHOD v4.44.1 CORE FILES AND CONFIGURATION 2025-10-11 23:55:45 +01:00
benches Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
claudedocs Fix clippy warnings across workspace 2025-11-25 21:56:28 +00:00
crates Merge pull request 'coverage' (#7) from coverage into master 2025-11-25 23:07:35 +00:00
docs Add extra provider support 2025-11-25 13:44:53 +00:00
examples Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
frontend/src/components/consistency Begin epic 6 implementation 2025-10-19 20:15:07 +01:00
scripts Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
tools Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
.env.local Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
.envrc Fix direnv 2025-10-13 21:03:07 +01:00
.gitignore Fix direnv 2025-10-13 21:03:07 +01:00
.kilocodemodes ADD BMAD-METHOD v4.44.1 CORE FILES AND CONFIGURATION 2025-10-11 23:55:45 +01:00
.pre-commit-config.yaml Add extra provider support 2025-11-25 13:44:53 +00:00
ADD_PROVIDER_FIX_SUMMARY.md Fix AI providers 2025-11-14 19:10:57 +00:00
ADD_PROVIDER_FLOW_DIAGRAM.md Fix AI providers 2025-11-14 19:10:57 +00:00
add_reasoning_field.py Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
AGENTS.md Fix more issues so that clippy passes on the whole project. Update bmad configuration 2025-10-23 17:09:20 +01:00
AI_INTEGRATION_IMPLEMENTATION_SUMMARY.md Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
Cargo.toml Implement QA suggestions on epic 7.2 2025-10-25 19:44:22 +01:00
compilation_progress_report.md Complete Story 4.2: Context-Aware Evaluation Synthesis & Fix Test Compilation 2025-10-16 20:06:49 +01:00
DEVELOPMENT_SHORTCUTS.md Fix tests 2025-10-18 01:48:16 +01:00
EPIC4_COMPLETION_STATUS.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
EPIC4_REAL_DATA_INTEGRATION_COMPLETE.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
EPIC4_REAL_DATA_INTEGRATION_SUMMARY.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
EPIC4_REAL_DATA_STATUS.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
EPIC4_STATUS.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
EPIC5_PERFORMANCE_BENCHMARKS.md Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
EPIC5_STATUS_REPORT.md More work on epic 5 2025-10-17 19:17:08 +01:00
EPIC6_IMPLEMENTATION_COMPLETE.md More epic 6 work after QA failure 2025-10-25 02:07:02 +01:00
EPIC7_STORY71_IMPLEMENTATION_SUMMARY.md epic 7.1 partial implementation 2025-10-25 04:03:44 +01:00
EPIC8_ADD_PROVIDER_FIX.md Fix AI providers 2025-11-14 19:10:57 +00:00
EPIC8_IMPLEMENTATION_STATUS.md Fix AI providers 2025-11-14 19:10:57 +00:00
error_analysis.md Complete Story 4.2: Context-Aware Evaluation Synthesis & Fix Test Compilation 2025-10-16 20:06:49 +01:00
final_status_report.md Complete Story 4.2: Context-Aware Evaluation Synthesis & Fix Test Compilation 2025-10-16 20:06:49 +01:00
fix_plan.md Complete Story 4.2: Context-Aware Evaluation Synthesis & Fix Test Compilation 2025-10-16 20:06:49 +01:00
fix_reasoning.py Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
fix_reasoning.sh Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
fix_reasoning_tokens.sh Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
flake.lock Configure duckdb in nix development environment 2025-11-25 21:19:08 +00:00
flake.nix Configure duckdb in nix development environment 2025-11-25 21:19:08 +00:00
opencode.jsonc ADD BMAD-METHOD v4.44.1 CORE FILES AND CONFIGURATION 2025-10-11 23:55:45 +01:00
PERFORMANCE_OPTIMIZATION_SUMMARY.md Fixes: all tests now pass again 2025-10-17 03:24:31 +01:00
PLACEHOLDER_FINDINGS_REPORT.md Fix 86+ placeholder implementations across Epic 8 codebase 2025-11-17 01:47:15 +00:00
PLACEHOLDER_FIXES_SUMMARY.md Fix 86+ placeholder implementations across Epic 8 codebase 2025-11-17 01:47:15 +00:00
QUICK_REFERENCE_TESTING.md Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
README.md Initial commit: Add AI grading application with Rust workspace and fix pre-commit hooks 2025-10-12 21:18:56 +01:00
REAL_DATA_INTEGRATION_DEPLOYMENT_GUIDE.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
REAL_DATA_INTEGRATION_STATUS.md Begin overhauling system to use real data 2025-10-24 01:27:10 +01:00
REAL_PARALLEL_PROCESSING_IMPLEMENTATION.md Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
S0.5_COMPLETION_SUMMARY.md S0.5 complete 2025-10-25 03:29:17 +01:00
STORY_8_1_IMPLEMENTATION_SUMMARY.md Story 8.1 implement 2025-11-14 03:48:10 +00:00
STORY_8_5_IMPLEMENTATION_SUMMARY.md Implement story 8.5 2025-11-14 17:35:00 +00:00
test_ai_integration.rs Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
test_enhanced_synthesis.py Implement urgent Epic 4 improvements based on QA assessment 2025-10-15 16:08:39 +01:00
test_parallel Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
test_parallel.rs Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
test_performance.rs Fixes: all tests now pass again 2025-10-17 03:24:31 +01:00
test_real_parallel_processing.rs Implement complete Epic 5 batch processing system with enterprise-grade features 2025-10-18 22:56:13 +01:00
test_regex.js Get more tests passing 2025-10-16 23:39:38 +01:00
test_simple.rs Fixes: all tests now pass again 2025-10-17 03:24:31 +01:00
test_story_4_2_core_synthesis_report.md Complete Story 4.2: Context-Aware Evaluation Synthesis & Fix Test Compilation 2025-10-16 20:06:49 +01:00
TESTING_AND_ERROR_HANDLING_REVIEW.md Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
TESTING_REVIEW_INDEX.md Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00
TESTING_REVIEW_SUMMARY.md Fix pre-existing compilation and async/sync issues 2025-11-25 21:52:06 +00:00

AI Grading Application

A desktop application built with Rust and Dioxus for grading documents using multiple AI providers.

Features

  • Multi-provider AI integration (OpenAI, Anthropic, Google, Custom)
  • Batch processing of documents
  • Fallback and error recovery mechanisms
  • Rate limiting and resource management
  • Multi-modal pipeline with result aggregation
  • Local SQLite database for data persistence
  • Cross-platform desktop application

Requirements

  • Rust 1.70 or higher
  • Node.js and npm (for building frontend assets)
  • SQLite 3 (included with the application)

Installation

The easiest way to set up the development environment is using Nix with flakes and direnv:

  1. Install Nix with flakes enabled
  2. Install direnv and the nix-direnv extension
  3. Clone the repository:
    git clone https://github.com/your-username/ai-grading-app.git
    cd ai-grading-app
    
  4. Allow direnv to load the environment:
    direnv allow
    

For detailed instructions, see docs/NIX_SETUP.md.

Option 2: Traditional Setup

  1. Clone the repository:

    git clone https://github.com/your-username/ai-grading-app.git
    cd ai-grading-app
    
  2. Install Rust dependencies:

    cargo build --release
    

Running the Application

Development Mode

To run the application in development mode with hot reloading:

cargo run

Release Mode

To run the optimized release version:

cargo run --release

Building a Distribution Package

To build a distributable package for your platform:

cargo bundle --release

This will create a platform-specific package in the target/release/bundle/ directory:

  • macOS: .app bundle
  • Windows: .msi installer
  • Linux: .deb package

Configuration

The application stores its configuration and data in the following locations:

  • Windows: %APPDATA%/ai-grading-app/
  • macOS: ~/Library/Application Support/ai-grading-app/
  • Linux: ~/.local/share/ai-grading-app/

API Keys

To use AI providers, you need to configure your API keys:

  1. Open the application
  2. Navigate to AI Configuration in the sidebar
  3. Add your providers and API keys
  4. Save the configuration

Development

Project Structure

ai-grading-app/
├── Cargo.toml              # Workspace configuration
├── flake.nix               # Nix flake configuration
├── .envrc                  # direnv configuration
├── README.md               # This file
├── crates/                 # Rust crates
│   ├── app/               # Main application
│   ├── shared/            # Shared types and utilities
│   ├── document_processing/ # Document content extraction
│   ├── ai_integration/    # AI provider integration
│   ├── rate_limiting/     # Rate limiting functionality
│   ├── fallback_manager/  # Error recovery mechanisms
│   ├── batch_processing/  # Batch processing logic
│   ├── multimodal_pipeline/ # Multi-modal analysis
│   ├── data_storage/      # Database abstraction
│   └── testing/           # Testing utilities
├── docs/                  # Documentation
└── target/                # Build output

Running Tests

To run all tests:

cargo test

To run tests for a specific crate:

cargo test -p shared

Linting

To run Clippy for code quality checks:

cargo clippy -- -D warnings

Formatting

To format the code according to Rust standards:

cargo fmt

Architecture

The application follows a modular architecture with separate crates for different concerns:

  • app: The main Dioxus desktop application
  • shared: Common types and utilities used across crates
  • document_processing: Extracts content from various document formats
  • ai_integration: Handles communication with AI providers
  • rate_limiting: Manages API rate limits
  • fallback_manager: Implements error recovery strategies
  • batch_processing: Coordinates batch operations
  • multimodal_pipeline: Orchestrates multi-model analysis
  • data_storage: Provides database abstraction
  • testing: Contains testing utilities and mocks

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Troubleshooting

Build Issues

If you encounter build issues, try:

  1. Using the Nix development environment (recommended)
  2. Updating Rust: rustup update
  3. Cleaning the build cache: cargo clean
  4. Rebuilding: cargo build --release

OpenSSL Issues

If you encounter OpenSSL-related errors:

  1. Use the Nix development environment (recommended)
  2. Install OpenSSL development packages for your system
  3. Set the appropriate environment variables

Database Issues

If you encounter database-related errors:

  1. The application uses SQLite, which should work out of the box
  2. Database files are stored in the application data directory
  3. You can reset the database by deleting the database.db file in the data directory

Nix Environment Issues

If you encounter issues with the Nix environment:

  1. Make sure Nix is installed with flakes enabled
  2. Check that direnv is properly configured
  3. Run direnv allow in the project directory
  4. See docs/NIX_SETUP.md for detailed troubleshooting