BidRadar 🇦🇺: AI bid intelligence on Australian Government contracts
Ask questions about Australian Government contracts in plain English, and get a re-tender radar: contracts like yours that are about to expire, who holds them now, and what they're worth.
It runs locally on a Mac (Apple Silicon) using open-source models and free public data (the AusTender OCDS API, which needs no key). No data leaves your machine.
"Which agencies spent the most on IT services this financial year, and who won?" "We're a Canberra data analytics firm. Which contracts like ours expire in the next 9 months?" "What market share does Accenture have in each UNSPSC family?"
Install
pip install bidradar # core: pipeline, agent, API, CLI
pip install "bidradar[eval]" # + Inspect AI and DeepEval evaluations
pip install "bidradar[mlx]" # + MLX fine-tuning and serving (Apple Silicon)
pip install "bidradar[all]"
You also need Ollama and Docker (OrbStack or Docker Desktop). Python 3.11 or later.
Quickstart
bidradar init ~/bidradar && cd ~/bidradar # creates docker-compose.yml, LiteLLM config, SQL schema, .env
bidradar models # pull qwen2.5-coder:7b + nomic-embed-text into Ollama
bidradar up # Postgres+pgvector, LiteLLM, Phoenix, Open WebUI
bidradar ingest --days 180 # contracts published in the last 180 days
bidradar expiring --months 12 # contracts ending in the next 12 months
bidradar embed # vectors for semantic search and the radar
bidradar ask "Top 5 agencies by total contract value this financial year"
bidradar serve # agent API (keep running), then open http://localhost:3000
bidradar health # check every service, the data and the models
In Open WebUI choose the model bidradar. Traces are at http://localhost:6006, in the bidradar project.
Commands
| Command | What it does |
|---|---|
init [dir] |
Create a workspace (Docker Compose, LiteLLM config, SQL schema, .env) |
up / down |
Start and stop the Docker services |
models |
Pull the local models into Ollama |
ingest --days N |
Load contracts published in the last N days (4 days fetched in parallel) |
expiring --months N |
Load contracts ending in the next N months |
incremental |
Load new and amended notices since the last run |
embed |
Embed contracts that don't have a vector yet (resumable) |
daily / schedule / unschedule |
Daily refresh, and run it every morning via launchd |
ask "…" |
Ask the agent a question in the terminal, with a step-by-step log |
serve |
OpenAI-compatible API for the agent (model id bidradar) |
health |
Check Ollama, LiteLLM, Phoenix, Open WebUI, the API, Postgres and the models |
eval sql --model sql-base |
Inspect AI: text-to-SQL execution accuracy on 20 held-out questions |
eval agent |
DeepEval: answer groundedness and relevance, judged by a local model |
finetune data | train | serve |
Synthetic NL→SQL data from your warehouse, MLX LoRA training, serving on :8081 |
bench --models sql-base sql-ft |
Serving benchmark (latency and throughput) through the gateway |
Architecture
AusTender OCDS API (CC BY 3.0 AU) ──▶ pipeline: bronze (raw JSON) → silver (contracts) → gold (FY views)
│ embeddings → pgvector (HNSW)
▼
LangGraph agent: route → write SQL → guard → read-only run (repair ×2) │ vector search / radar → grounded answer
│ OpenAI-compatible API (bidradar serve) traces → Phoenix
▼
Open WebUI ── LiteLLM gateway ── Ollama (Qwen) · mlx_lm.server (fine-tuned) · vllm-metal (optional)
- Safe SQL in three layers: a guard (single read-only SELECT/WITH, blocked keywords and schemas, forced LIMIT), a read-only Postgres role, and a read-only transaction with a timeout.
- Grounded answers: answers come only from the rows retrieved, show the SQL that ran, cite contract IDs, and state the date range the data covers.
- Local-first: every model runs on your Mac through LiteLLM aliases, so engines can be swapped without code changes.
Configuration
Settings are read from .env in the current directory (the workspace created by bidradar init):
database DSNs, the LiteLLM URL and key, the model aliases (CHAT_MODEL, SQL_MODEL, EMBED_MODEL), the embedding
dimension and the tracing endpoint. Model aliases map to engines in litellm/config.yaml.
Development
git clone <repo> && cd bidradar
pip install -e ".[dev]"
pytest -q && ruff check .
python -m build && twine check dist/*
Data and licence
AusTender material is from the Department of Finance, licensed under CC BY 3.0 AU. BidRadar is not affiliated with or endorsed by the Department of Finance. Verify all details at www.tenders.gov.au. The code is MIT-licensed.
Metadata
Release files for bidradar 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bidradar-0.1.0.tar.gz | 40.1 kB | Without provenance | Details for bidradar-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bidradar-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bidradar-0.1.0-py3-none-any.whl |
Total release size: 83.5 kB
Release files / bidradar-0.1.0.tar.gz
| Download URL | bidradar-0.1.0.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78e91d048f3e57a18049e1986a1f11c0e4905860ba62353ad5d548b191ade59c
|
|
BLAKE2b-256 checksum How to use checksums |
83734bd737d1c379b8bd1eb12e1c1a619fa87f7bcb55b8a1f3c6ecfca9bd2bca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.16
|
Release files / bidradar-0.1.0-py3-none-any.whl
| Download URL | bidradar-0.1.0-py3-none-any.whl |
|---|---|
| Size | 43.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62f7b70b77db786fde665b4c327ec62ad95b493ea9a83431f66a900749cae329
|
|
BLAKE2b-256 checksum How to use checksums |
bbe758d1bfa6b0aba497a36c610425ec0be54bc32facf5f54a906c7fea3501a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.16
|
Security for bidradar 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.