Compras Públicas AI: AI tender matching
A live web app that helps small business owners find Chilean public tenders (Mercado Público) their company can bid on. They describe the business in their own words, see the open tenders that match and, for each one, an analysis of how bids are scored, which documents and guarantees are required and what the red flags are, grounded in the official tender page and Law 19.886.
- Semantic search over ~4,700 open tenders: Voyage embeddings and pgvector (HNSW index) on PostgreSQL.
- On-demand analysis with Claude: structured output validated with Pydantic and cached per company profile, so the same analysis is never paid for twice.
- RAG assistant over the law with article citations: custom parser for the LeyChile XML, query rewriting, small-to-big retrieval and a 36-question evaluation set in LangSmith.
- Nightly sync on AWS (Step Functions + Lambda) with the official API, within its rate limits and allowed time window, with SNS and CloudWatch alerts.
- Serverless deploy: FastAPI on Lambda, RDS PostgreSQL and a static Next.js site on S3 + CloudFront with a custom domain. Personal-data filter, 125 tests and CI.
- Python
- FastAPI
- Claude API
- pgvector
- LangSmith
- Next.js
- AWS Lambda
- Step Functions
Measured results
- ~4.700open tenders, refreshed every night
- ~US$0,05measured cost per tender analysis
- 87%retrieval coverage of the law assistant
- 33/36answers faithful to the law, per LLM judge