diff --git a/routes/ai_summary.py b/routes/ai_summary.py index 6597365..95406ef 100644 --- a/routes/ai_summary.py +++ b/routes/ai_summary.py @@ -198,42 +198,90 @@ _SYSTEM_PROMPT = ( # Stage 1 — extraction prompt (always sent). _EXTRACTION_PROMPT = """\ -The user has provided {n} document(s). Treat all provided content as a single combined source \ -— do not analyze each file individually. Extract the following information once, \ -consolidating details from all documents. +Analyze the {n} document(s) below as one combined source. Do not analyze files individually. +Write "Not specified in the document." for any field not found — never guess. +Our office address (use as origin for all travel estimates): {office} -IMPORTANT — Our office is located at: - {office} -Use this as the ORIGIN address for all driving distance and travel time calculations in field #9 below. +--- -Extract and clearly label the following fields (write "N/A" if not found): +## Solicitation Details - 1. Solicitation Number - 2. Solicitation Type (e.g. RFP, RFQ, IFB, etc.) - 3. Set-Aside (e.g. Small Business, 8(a), N/A) - 4. Description / Scope of Work - 5. Work Site / Location(s) - 6. Pre-Proposal Conference / Site-Visit (date, time, full address) - 7. Point of Contact (POC) (name, phone, email) - 8. Total Square Footage (if applicable) - 9. Driving Distance & Travel Time - - Origin: {office} - - Destination: Pre-Proposal Conference or primary Work Site address - - Provide your best estimate of driving distance (miles) and typical driving time using major highways - - Note that these are AI estimates; actual times may vary with traffic - 10. Last Day to Submit Questions - 11. Due Date & Time - 12. Any other notable requirements or deadlines +| Field | Value | +|---|---| +| Solicitation Number | | +| Solicitation Type | (RFP / RFQ / IFB / IDIQ / BPA / etc.) | +| Set-Aside | (Small Business / 8(a) / SDVOSB / HUBZone / WOSB / Unrestricted / etc.) | +| Issuing Agency / Office | | +| Contract Type | (FFP / T&M / Cost-Plus / IDIQ / etc.) | +| Contract Period | | +| NAICS Code | | +| Estimated Value | | +| Work Site / Location(s) | | +| Total Square Footage | | +| Last Day to Submit Questions | | +| **Proposal Due Date & Time** | | +| Award / Period of Performance Start | | -Then provide a detailed OVERALL SUMMARY covering: +--- - A. Scope of Work - B. Contract Period - C. Proposal Submission Requirements - D. Key Deadlines & Action Items +## Pre-Proposal Conference / Site Visit -Be precise, detailed, and use bullet points throughout. -If information is not explicitly stated in the documents, note it as "Not specified in the document." +| Field | Value | +|---|---| +| Date & Time | | +| Full Address | | +| Attendance | (Mandatory / Optional / N/A) | +| RSVP Required | | + +--- + +## Point of Contact + +| Field | Value | +|---|---| +| Name & Title | | +| Phone | | +| Email | | +| Questions Submission Method | | + +--- + +## Travel Estimate + +| Field | Value | +|---|---| +| Origin | {office} | +| Destination | (Pre-Proposal Conference address or primary work site) | +| Estimated Driving Distance | | +| Estimated Drive Time | | + +*(AI estimates — verify with a mapping service before scheduling.)* + +--- + +## Scope of Work + +*(Detail the required services, deliverables, and performance standards. Use bullet points.)* + +--- + +## Notable Requirements + +*(Security clearances, bonding, certifications, teaming restrictions, tight timelines, incumbent indicators, or other bid/no-bid risk factors. Use bullet points.)* + +--- + +## Overall Summary + +**A. Scope of Work:** + +**B. Contract Period & Value:** + +**C. Proposal Submission Requirements:** + +**D. Key Deadlines & Action Items:** + +--- DOCUMENTS: {documents}"""