職位描述
Scope of Work – Document Evaluation Platform
Overview
We need a freelance full-stack developer to build a secure web application for a government tender evaluation team. Officers upload a tender document (NIT) and the bids received. The AI extracts the eligibility criteria from the NIT, checks every bid against every criterion, and shows each finding with the value found and a clickable page reference. Officers review and override findings, every action is logged, and the team downloads a committee report.
The application runs on the client's own Linux server. The AI model is called through AWS Bedrock (Mumbai region), so all data stays in India.
Stack: React (TypeScript), Python FastAPI, PostgreSQL with pgvector, Celery with Redis, Docker Compose, Nginx.
Load: about 50 tenders a year, up to 15 bids each, about 300 pages per bid, many scanned.
All code goes into our GitHub repository from day one. Development uses only sample or anonymised documents; real documents are shared only after an NDA.
Task 1: Set-up and architecture
- GitHub repo with clear structure (front end, backend, worker, deployment).
- FastAPI backend with config from environment variables; React front end with routing and API client.
- PostgreSQL + pgvector with Alembic migrations; Redis + Celery for background jobs.
- Docker Compose to start all services with one command.
- Core schema: users, roles, tenders, documents, pages, chunks, criteria, findings, overrides, reports, audit events.
- Architecture note, CI (lint, type checks, tests), staging for demos.
Task 2: Upload, text extraction and OCR
- Upload NIT and bids (one folder per bidder, multiple PDFs); safe file-type and size checks.
- Store originals on encrypted local storage with checksums.
- Page-by-page text extraction (PyMuPDF/pdfplumber) keeping exact page numbers.
- OCR only scanned pages (Tesseract/PaddleOCR) with a confidence score per page.
- Extract tables (e.g. CA turnover certificates) keeping rows and columns readable.
- Background jobs with progress shown in the UI; test on at least 5 sample PDFs.
Task 3: Criteria extraction from the NIT
- Find eligibility and technical qualification sections; send only those to the AI.
- AI returns structured JSON per criterion: description, type, threshold, unit, period, source page.
- Validate JSON against a schema; check quoted source text exists on the stated page.
- Editable criteria table; start from saved templates (civil, electrical, consultancy).
- Officer must confirm and lock the checklist before evaluation; logged in audit trail.
- Prompts kept in versioned files; test on at least 3 sample NITs.
Task 4: Evidence search in bids
- Chunk bid text tagged with bidder, file and page; embeddings stored in pgvector.
- Hybrid search: keyword + vector, so terms like "turnover" or "work order" are found reliably.
- Never mix data across bidders or tenders; handle bids up to 500 pages; cache embeddings.
- Embedding model must run in India (Bedrock Mumbai or local model).
- Log retrieved pages per check; measure retrieval quality on sample bids.
Task 5: AI compliance check
- For each bidder and criterion, send retrieved pages to the model; it returns JSON with the value found, unit, page and exact quoted line.
- "Not found" or "Review needed" instead of guessing.
- One internal model interface (Bedrock now, vLLM/open-source later).
- Parallel runs with retries; record tokens and cost per tender.
- Overall recommendation per bidder (Qualified / Not qualified / Clarification needed) computed by rules in code, not the model.
- Re-run per cell, bidder or tender; store every AI input and output.
- A 10-bid tender evaluated within about 1 hour.
Task 6: Verification and calculation layer (critical)
- Check in code that every quoted line really appears on the stated page; otherwise "Review needed".
- Unit conversion (rupees, lakhs, crores), averages and "best 3 of last 5 years" calculations in code.
- Verdict set by comparing the calculated value with the threshold in code.
- Date checks (certificate validity, completion dates, required period).
- Flag group-company/JV figures and low OCR confidence pages.
- Show the calculation for every value, e.g. "(4.1 + 5.2 + 6.0) / 3 = 5.1 Cr".
- All rules in one well-tested module, with unit tests for tricky cases.
Task 7: Compliance matrix and review screen
- Criteria as rows, bidders as columns; each cell shows verdict, value and page link (colour plus text).
- Page link opens the PDF at that page in a side panel, with the quote highlighted.
- Officer override with mandatory reason; original AI finding stays visible.
- Committee remarks and approval; status flow Draft → Criteria ready → Evaluating → Under review → Approved, locked after approval.
- Fast with 15 bidders × 20 criteria; filters such as "flags only" or "Not met only".
Task 8: Users, roles and login
- Username/password with optional email OTP; bcrypt/Argon2; lockout after failed logins.
- Roles: Admin, Evaluation officer, Committee member, Viewer/auditor, enforced on every API endpoint.
- Users see only assigned tenders; admin user management; secure sessions with auto-logout.
- Ready for SSO (Keycloak) later.
Task 9: Audit trail
- Log every key action (login, upload, AI run, edits, overrides, approvals, downloads, user changes) with who, what, when, and old/new values.
- Append-only records with a tamper check (hash chain).
- Audit screen with filters and export to Excel/PDF; model name and prompt version recorded per run.
Task 10: Committee report
- PDF and Excel report: tender details, confirmed criteria, full matrix with values, page references and quotes.
- All overrides with reasons, AI recommendation, committee remarks, summary page and signature block.
- Clear note that AI findings are recommendations and the committee decides.
- A4 printable layout; pre-approval reports marked "Draft"; downloads logged.
Task 11: Admin, templates and knowledge base
- Versioned criteria templates per tender type.
- Upload knowledge base documents (procurement manual, rules, past reports), kept separate from bids and cited when used.
- Settings screen (model, file size, OTP, retention); usage screen (tenders, pages, AI cost per month).
- Complete deletion of a tender's data on request, with a deletion record; admin guide.
Task 12: Security
- HTTPS via Nginx, encrypted files and backups, no secrets in code.
- Server-side validation and OWASP Top 10 protection; malware scan of uploads (ClamAV); rate limits.
- Outbound access limited to Bedrock Mumbai; no client data leaves India.
- Support the CERT-In VAPT audit and fix all reported issues.
Task 13: Deployment
- Docker images with a single install command on the client's Ubuntu VM (about 16 vCPU, 64 GB RAM, 2 TB; no GPU).
- One documented settings file; step-by-step install guide for the client's IT team.
- Install remotely over VPN or on site in Chennai; configure SSL, firewall and Bedrock access.
- Daily backups with a tested restore; monitoring with email alerts; update and rollback procedure.
Task 14: Testing and accuracy
- Unit, API and end-to-end tests for the full journey.
- Accuracy test set with known correct answers; report accuracy per criterion type.
- False "Meets" findings reported separately (most serious error).
- Re-run accuracy after every prompt or model change; performance test with a 10-bid tender.
- Fix all critical and high bugs before each milestone demo.
Task 15: Documentation, handover and support
- README, OpenAPI docs, schema and data-flow diagrams.
- User manual for officers and committee; admin manual.
- 3 months of bug-fix support included; then a monthly retainer of about 20 hours.
- We must be able to build and deploy without you using only the repo and documents.
Milestones (payment after a working demo on staging and our acceptance; weekly live demo mandatory; indicative timeline 6–8 weeks)
- M1 Foundation (20%): Task 1, Task 2 upload/storage, Task 8, dashboard. Accepted when: login with all 4 roles, create a tender and upload files on staging.
- M2 Criteria (20%): Task 2 extraction/OCR, Task 3. Accepted when: criteria extracted and editable on 3 sample NITs, with an accuracy note.
- M3 Evaluation (25%): Tasks 4–7. Accepted when: compliance matrix with page links and verified values on 3 sample tenders.
- M4 Review and reports (20%): Tasks 9, 10, 11, 14. Accepted when: overrides, audit trail, reports, admin screens and an accuracy report.
- M5 Go-live (15%): Tasks 12, 13, 15. Accepted when: installed on the client's server, backups tested, VAPT issues closed, documents handed over.
How to quote
Please give a fixed price per milestone, estimated hours per task, your monthly support retainer rate, relevant past work (OCR, RAG or document AI projects), and anything you would do differently or think is missing.
---
來源:Freelancer.com | 出價次數:6 | 剩餘時間:6 日 | 專案類型:固定預算