How sanika717/bid-analyser works
TCE Universal Bid Comparison Engine accepts authenticated bid-analysis jobs, extracts vendor data from PDFs against an Excel template, ranks profiles, and returns a comparison workbook. The main runtime is the FastAPI application and the newer pipeline; the source also contains a separate legacy analysis engine. The README is empty, so capability coverage and relationships here rely on the sampled source and SOURCE INDEX; unsampled legacy internals are not expanded.
Main entry points: orchestrator.py Job pipeline · jobs.py Job routes · main.py FastAPI app · auth.py Auth service
Components 21
API and access
- FastAPI app
app/main.py - Auth routes
app/api/auth.py - Job routes
app/api/jobs.py - Auth service
app/auth.py - App config
app/core/config.py
Bid analysis
- Job pipeline
engine/pipeline/orchestrator.py - PDF text reader
engine/extraction/pdf_reader.py - Structured extraction
engine/extraction/structured.py - Label extraction
engine/extraction/semi_structured.py - Unstructured extraction
engine/extraction/unstructured.py - Template requirements
engine/template/template_parser.py - Confidence scoring
engine/scoring/confidence.py - Vendor ranking
engine/scoring/ranking.py - Ollama client
engine/llm/ollama_client.py
Results and storage
- Auth SQLite
app/auth.py - Job SQLite
app/db/sqlite_db.py - Workbook writer
engine/excel/writer.py
Legacy engine
- Legacy bid engine
engine1/engine.py - Legacy entry points
app_legacy.py
Other components
- Authenticated user
- Ollama service
Connections 24
- Authenticated user → FastAPI app: uses
- FastAPI app → Auth routes: mounts
app/main.py - FastAPI app → Job routes: mounts
app/main.py - FastAPI app → Job SQLite: initializes
app/main.py - FastAPI app → Auth service: initializes
app/main.py - Auth routes → Auth service: calls
app/api/auth.py - Auth service → Auth SQLite: reads/writes
app/auth.py - Auth routes → App config: reads config
app/api/auth.py - Auth service → App config: reads config
app/auth.py - Job routes → Auth service: requires auth
app/api/jobs.py - Job routes → App config: reads config
app/api/jobs.py - Job routes → Job SQLite: reads/writes
app/api/jobs.py - Job routes → Job pipeline: runs job
app/api/jobs.py - Job routes → Ollama client: asks assistant
app/api/jobs.py - Ollama client → Ollama service: HTTP request
engine/llm/ollama_client.py - Job pipeline → PDF text reader: reads PDF
engine/pipeline/orchestrator.py - Job pipeline → Structured extraction: extracts fields
engine/pipeline/orchestrator.py - Job pipeline → Label extraction: extracts fields
engine/pipeline/orchestrator.py - Job pipeline → Unstructured extraction: extracts fields
engine/pipeline/orchestrator.py - Label extraction → Template requirements: loads requirements
engine/extraction/semi_structured.py - Job pipeline → Confidence scoring: scores profile
engine/pipeline/orchestrator.py - Job pipeline → Vendor ranking: ranks vendors
engine/pipeline/orchestrator.py - Job pipeline → Workbook writer: writes workbook
engine/pipeline/orchestrator.py - Legacy entry points → Legacy bid engine: imports engine
app_legacy.py