Перейти к содержимому

Заказ на фриланс · Разработка и IT › Создание сайта

Document Evaluation Platform

  • Бюджет: 33 605 ₽ – 67 209 ₽
  • Раздел: Разработка и IT › Создание сайта
  • Опубликован: (МСК)

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.

Похожие заказы

Заказы на разработку сайтов · Все свежие заказы