05/24 Enhance AI analyze function, treat multiple documents as one
This commit is contained in:
@@ -186,13 +186,13 @@ _OFFICE_ADDRESS = "2815 Hartland Road, Falls Church, VA 22043, USA"
|
|||||||
|
|
||||||
# Stage 1 — extraction prompt (always sent)
|
# Stage 1 — extraction prompt (always sent)
|
||||||
_EXTRACTION_PROMPT = """You are an expert government procurement analyst.
|
_EXTRACTION_PROMPT = """You are an expert government procurement analyst.
|
||||||
The user has provided {n} document(s). Your job is to extract specific information from each document and present it in a clean, structured format.
|
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.
|
||||||
|
|
||||||
IMPORTANT — Our office is located at:
|
IMPORTANT — Our office is located at:
|
||||||
{office}
|
{office}
|
||||||
Use this as the ORIGIN address for all driving distance and travel time calculations in field #9 below.
|
Use this as the ORIGIN address for all driving distance and travel time calculations in field #9 below.
|
||||||
|
|
||||||
For EACH document, extract and clearly label the following fields (write "N/A" if a field is not found):
|
Extract and clearly label the following fields (write "N/A" if not found):
|
||||||
|
|
||||||
1. Solicitation Number
|
1. Solicitation Number
|
||||||
2. Solicitation Type (e.g. RFP, RFQ, IFB, etc.)
|
2. Solicitation Type (e.g. RFP, RFQ, IFB, etc.)
|
||||||
@@ -211,7 +211,7 @@ For EACH document, extract and clearly label the following fields (write "N/A" i
|
|||||||
11. Due Date & Time
|
11. Due Date & Time
|
||||||
12. Any other notable requirements or deadlines
|
12. Any other notable requirements or deadlines
|
||||||
|
|
||||||
After the per-document breakdown, provide a detailed OVERALL SUMMARY covering:
|
Then provide a detailed OVERALL SUMMARY covering:
|
||||||
|
|
||||||
A. Scope of Work
|
A. Scope of Work
|
||||||
B. Contract Period
|
B. Contract Period
|
||||||
|
|||||||
Reference in New Issue
Block a user