Spaces:
Running
Running
π HackRx 6.0 - Testing Guide
β WORKING URLs
Your app is now successfully deployed and accessible at:
Main App URLs:
- Root: https://Manjesh501-hackrx.hf.space
- Health Check: https://Manjesh501-hackrx.hf.space/health
- Test Endpoint: https://Manjesh501-hackrx.hf.space/test
- API Documentation: https://Manjesh501-hackrx.hf.space/docs
API Endpoints:
- Main Query: https://Manjesh501-hackrx.hf.space/api/v1/hackrx/run
- Legacy Query: https://Manjesh501-hackrx.hf.space/hackrx/run
- Detailed Query: https://Manjesh501-hackrx.hf.space/api/v1/hackrx/run/detailed
- Analyze Document: https://Manjesh501-hackrx.hf.space/api/v1/analyze-document
- Summarize Document: https://Manjesh501-hackrx.hf.space/api/v1/summarize-document
π§ͺ Testing Steps
1. Basic Endpoint Tests
Test Root Endpoint:
curl https://Manjesh501-hackrx.hf.space/
Expected Response:
{
"message": "HackRx 6.0 - Intelligent Query-Retrieval System",
"version": "1.0.0",
"status": "running",
"endpoints": {
"main": "api/v1/hackrx/run",
"legacy": "hackrx/run",
"detailed": "api/v1/hackrx/run/detailed",
"health": "health",
"docs": "docs",
"test": "test"
}
}
Test Health Endpoint:
curl https://Manjesh501-hackrx.hf.space/health
Expected Response:
{
"status": "healthy",
"message": "HackRx 6.0 is running",
"services": {
"query_service": true,
"embedding_service": true,
"llm_service": true,
"pinecone_service": false
}
}
Test Endpoint:
curl https://Manjesh501-hackrx.hf.space/test
Expected Response:
{
"message": "Test endpoint working!",
"status": "success",
"app_loaded": true,
"mode": "app.py"
}
2. API Documentation Test
Visit: https://Manjesh501-hackrx.hf.space/docs
You should see:
- β Interactive API documentation
- β All endpoints listed
- β Request/response schemas
- β "Try it out" functionality
3. Main API Tests
Test Main Query Endpoint:
curl -X POST "https://Manjesh501-hackrx.hf.space/api/v1/hackrx/run" \
-H "Content-Type: application/json" \
-d '{
"documents": "https://example.com/document.pdf",
"questions": ["What is the main topic?"]
}'
Test Legacy Query Endpoint:
curl -X POST "https://Manjesh501-hackrx.hf.space/hackrx/run" \
-H "Content-Type: application/json" \
-d '{
"query": "What is the main topic?",
"document_url": "https://example.com/document.pdf"
}'
4. Browser Testing
Open these URLs in your browser:
Main App: https://Manjesh501-hackrx.hf.space
- Should show app information and available endpoints
Health Check: https://Manjesh501-hackrx.hf.space/health
- Should show healthy status
Test Endpoint: https://Manjesh501-hackrx.hf.space/test
- Should show test success message
API Docs: https://Manjesh501-hackrx.hf.space/docs
- Should show interactive API documentation
π― What to Test
β Basic Functionality:
- Root endpoint returns app info
- Health endpoint shows healthy status
- Test endpoint works
- API documentation loads
- All endpoints are accessible
β API Functionality:
- Main query endpoint accepts requests
- Legacy query endpoint works
- Document analysis endpoint functions
- Summarization endpoint works
- Error handling works properly
β Performance:
- Response times are reasonable
- No timeout errors
- Memory usage is stable
- Services initialize correctly
π How to Use Your App
For Users:
- Visit: https://Manjesh501-hackrx.hf.space
- Read the documentation: https://Manjesh501-hackrx.hf.space/docs
- Test the API: Use the interactive docs to try endpoints
- Integrate: Use the API endpoints in your applications
For Developers:
- API Base URL:
https://Manjesh501-hackrx.hf.space
- Documentation: Available at
/docs
- Health Check: Available at
/health
- Main Endpoint:
POST /api/v1/hackrx/run
π Success Metrics
Your deployment is successful if:
- β All URLs return 200 OK
- β API documentation loads completely
- β Health endpoint shows all services as healthy
- β No 404 or 500 errors
- β Container logs show successful startup
π Congratulations!
Your HackRx 6.0 app is now:
- β Successfully deployed on Hugging Face Spaces
- β All endpoints working correctly
- β API documentation accessible
- β Ready for use by users and developers
Your app is live and working perfectly! π