metadata
title: AndesOps AI Backend
emoji: π€
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
startup_duration_timeout: 30m
python_version: 3.11
AndesOps AI - Backend API
Real-time Chilean public procurement market intelligence with AI-powered analysis.
π Features
- Real-time Market Data: Access Mercado PΓΊblico (Chile's public procurement) API
- Purchase Orders (OC): Monitor purchase orders across Chilean government agencies
- Tender Analysis: AI-powered tender matching and recommendation
- LLM Integration: Powered by Google Gemini, Groq, and Featherless AI
- REST API: Full-featured FastAPI backend
π Environment Variables Required
Add these in Settings β Secrets on Hugging Face:
MERCADO_PUBLICO_TICKET=99B4CA8C-C1DF-4E3F-B5CF-C1672D432A91
GEMINI_API_KEY=your_gemini_api_key
GROQ_API_KEY=your_groq_api_key
FEATHERLESS_API_KEY=your_featherless_key
DATABASE_URL=sqlite:///./andesops.db
GEMINI_MODEL=gemini-2.5-flash
π API Endpoints
GET /api/health- Health checkGET /api/tenders?keyword=...- Search tendersGET /api/tenders/scrape?keyword=...- Scrape Compra ΓgilGET /api/purchase-orders?date=ddmmaaaa- Get purchase ordersPOST /api/analyze- Analyze tender with AIPOST /api/company-profile- Save company profile
π CORS Configuration
Automatically enabled for frontend at: https://{user}-andesai-frontend.hf.space
π¦ Backend Stack
- Framework: FastAPI 0.109.0
- Database: SQLite (local) / MySQL (production)
- AI Models: Google Gemini, Groq, Featherless
- Web Scraping: httpx, BeautifulSoup4
- Validation: Pydantic v2
π¦ Status
- β Mercado PΓΊblico API integration
- β Real-time purchase order monitoring
- β Tender scraping (Compra Γgil)
- β AI-powered analysis
- β CORS configured for frontend integration
π Support
Part of AndesOps AI - a complete platform for Chilean public procurement intelligence.
Connect with the frontend space for the full application experience.