AI Agent UC Berkeley
AI Agent UC Berkeley
o Time limits
o No personalized guidance
Ensure the agent remains interactive without providing full solutions (to avoid
academic dishonesty).
Model Selection:
Data Sources:
Fine-Tuning Strategy:
o Create synthetic data for rare algorithm types and edge cases.
4. Define the System Architecture
Frontend:
o Web-based interface
Backend:
Data Pipeline:
o Common mistakes
o Hint quality
o Debugging accuracy
o Performance improvement
Peer Comparison: Compare the user’s solution with top competitor solutions.
AI Code Review: Provide detailed feedback on code style, efficiency, and readability.
✅ AST (Abstract Syntax Trees) in Python – For analyzing and debugging code structures.
✅ PyLint – For identifying syntax and logical errors.
✅ Tree-sitter – For parsing code and identifying structural issues.
✅ Hypothesis (Python library) – For generating edge cases and corner cases.
✅ Fuzzing Tools – For stress testing the code (e.g., Atheris for Python).
🚀 Post-Release Features
💻 Code Versioning:
📂 Data Management:
💡 LLM Optimization:
✅ Start lightweight → Use FastAPI, PostgreSQL, and React.js for the MVP.
✅ Optimize for latency → Use ONNX and vLLM for fast inference.
✅ Scale with Kubernetes → Start small, then scale using Kubernetes and Cloudflare.
✅ Monitor continuously → Use Sentry and CloudWatch for real-time issue tracking.
✅ Lambda
1. Model Training and Fine-Tuning – Run RLHF and other fine-tuning on Lambda’s
GPUs.
2. Integration and User Experience – Deploy backend models for IDE integration.
✅ Hugging Face
1. Model Training and Fine-Tuning – Access pre-trained models and fine-tune them.
5. Scale and Improve – Add new models and adjust endpoints as needed.
✅ Mistral AI
1. Model Training and Fine-Tuning – Fine-tune models for competitive coding use
cases.
🔥 Summary:
Solution:
o Fast execution with low latency through Lambda and Hugging Face
endpoints.
o Use Gemini to break down problem statements into clear, simple steps.
Solution:
Problem: Many competitive coding platforms don’t provide enough test cases,
leading to "hidden bugs."
Solution:
Problem: Submitting a working solution isn’t enough — you need to optimize for
time and space complexity.
Solution:
Solution:
Solution:
Problem: Most competitive coding platforms don’t adapt to a user’s strengths and
weaknesses.
Solution:
Problem: High user traffic during contests can cause slow responses or system
crashes.
Solution:
o Efficient resource management using Hugging Face and Mistral for quick
inference.