Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.2.0
HuggingFace Submission Checklist
π¦ Files Included
Core Files (Required)
-
agent.py- Main agent implementation -
deep_research_tool.py- Multi-source research tool -
app.py- Gradio UI for HuggingFace Space -
system_prompt.txt- Optimized system prompt -
requirements.txt- Python dependencies -
setup_chromadb.py- Vector database setup -
metadata.jsonl- Training data (217 KB)
Documentation
-
README.md- Project overview and quick start -
USAGE.md- Detailed usage guide -
.env.example- Environment variables template -
.gitignore- Git ignore rules -
.gitattributes- Git attributes (from original)
NOT Included (Intentionally)
-
.env- Contains sensitive API keys (use .env.example) -
chroma_db/- Generated locally by setup script -
__pycache__/- Python cache -
supabase_docs.csv- Large file (2.7 MB), not needed - Educational docs - Available in main repository
β Pre-Submission Checklist
1. Code Quality
- No hardcoded API keys in code
- All imports are in requirements.txt
- Code is properly commented
- No debug print statements (except intentional ones)
2. Documentation
- README.md is clear and concise
- USAGE.md covers common scenarios
- .env.example lists all required keys
- Links to main repository (if applicable)
3. Testing
- Tested with HuggingFace provider
- Tested deep_research tool
- Verified ChromaDB setup works
- Gradio UI loads correctly
4. Configuration
- system_prompt.txt is optimized
- Default provider is set to "huggingface"
- Reasonable defaults in deep_research_tool.py
5. File Sizes
- metadata.jsonl: 217 KB β
- No files > 10 MB
- Total size < 50 MB β
π Submission Steps
Step 1: Create HuggingFace Space
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Fill in:
- Name:
gaia-agent-deep-research(or your choice) - License: MIT
- SDK: Gradio
- Hardware: CPU (free tier)
- Visibility: Public
- Name:
Step 2: Upload Files
Option A: Git Push (Recommended)
cd hf_submission
# Initialize git if needed
git init
# Add HuggingFace Space as remote
git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
# Add and commit files
git add .
git commit -m "Initial submission: GAIA Agent with Deep Research"
# Push to HuggingFace
git push hf main
Option B: Web Upload
- Go to your Space's "Files" tab
- Click "Add file" β "Upload files"
- Drag and drop all files from
hf_submission/ - Click "Commit changes"
Step 3: Configure Secrets
In your Space settings, add secrets:
HUGGINGFACEHUB_API_TOKENTAVILY_API_KEY
(Secrets are more secure than .env for public Spaces)
Step 4: Wait for Build
- HuggingFace will automatically build your Space
- Check logs for any errors
- First build takes ~5-10 minutes
Step 5: Test
- Visit your Space URL
- Log in with HuggingFace OAuth
- Try submitting a test question
- Verify the agent works correctly
π§ Post-Submission
If Build Fails
Common issues:
Missing dependencies
# Check requirements.txt includes all needed packagesImport errors
# Make sure all imports are at the top of files # Check for circular importsAPI key errors
# Verify secrets are set in Space settings # Use .env.example as reference
If Agent Doesn't Work
- Check logs in the Space's "Logs" tab
- Test locally first:
python agent.py - Verify ChromaDB setup:
python setup_chromadb.py
Updating the Space
# Make changes
git add .
git commit -m "Description of changes"
git push hf main
HuggingFace will automatically rebuild.
π Performance Tips
For Faster Response
- Use Groq provider (if you have API key)
- Reduce deep_research max_docs
- Use smaller embedding model
For Better Results
- Keep current settings (balanced)
- Monitor and iterate on system_prompt.txt
- Add domain-specific tools if needed
π Optional Enhancements
After successful submission, consider:
- Add examples to README
- Create demo video
- Add performance benchmarks
- Link to detailed docs in main repo
- Add citation if used in paper
π Submission Summary
Project: GAIA Agent with Deep Research Type: Gradio Space Hardware: CPU (free tier) Main Features:
- Multi-source research (Wikipedia + Web + Arxiv)
- RAG with ChromaDB
- Optimized system prompt
- Smart tool selection
Key Innovation: Deep Research tool that combines multiple sources for comprehensive answers
βοΈ Final Notes
- Keep
.env.exampleupdated if you add new keys - Update README if you add features
- Monitor Space usage (HuggingFace has fair use limits)
- Respond to issues/questions from users
Good luck with your submission! π