diff --git a/backend/src/services/llmSchemas.ts b/backend/src/services/llmSchemas.ts index ce901db..ce2e1ec 100644 --- a/backend/src/services/llmSchemas.ts +++ b/backend/src/services/llmSchemas.ts @@ -13,6 +13,7 @@ export const cimReviewSchema = z.object({ reviewers: z.string().describe("Reviewer(s)"), cimPageCount: z.string().describe("CIM Page Count"), statedReasonForSale: z.string().describe("Stated Reason for Sale (if provided)"), + employeeCount: z.string().describe("Number of employees (if stated in document)"), }).describe("Deal Overview section"), businessDescription: z.object({ diff --git a/backend/src/services/llmService.ts b/backend/src/services/llmService.ts index 62c0616..1df1be8 100644 --- a/backend/src/services/llmService.ts +++ b/backend/src/services/llmService.ts @@ -334,7 +334,8 @@ Please correct these errors and generate a new, valid JSON object. Pay close att "dateReviewed": "Date Reviewed", "reviewers": "Reviewer(s)", "cimPageCount": "CIM Page Count", - "statedReasonForSale": "Stated Reason for Sale (if provided)" + "statedReasonForSale": "Stated Reason for Sale (if provided)", + "employeeCount": "Number of employees (if stated in document)" }, "businessDescription": { "coreOperationsSummary": "Core Operations Summary (3-5 sentences)", diff --git a/backend/src/services/optimizedAgenticRAGProcessor.ts b/backend/src/services/optimizedAgenticRAGProcessor.ts index 60518f1..aab7773 100644 --- a/backend/src/services/optimizedAgenticRAGProcessor.ts +++ b/backend/src/services/optimizedAgenticRAGProcessor.ts @@ -499,6 +499,9 @@ export class OptimizedAgenticRAGProcessor { if (analysisData.dealOverview.geography) { summary += `**Geography:** ${analysisData.dealOverview.geography}\n\n`; } + if (analysisData.dealOverview.employeeCount) { + summary += `**Employee Count:** ${analysisData.dealOverview.employeeCount}\n\n`; + } if (analysisData.dealOverview.dealSource) { summary += `**Deal Source:** ${analysisData.dealOverview.dealSource}\n\n`; } diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f71e30d..e9bc00e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -345,7 +345,7 @@ const Dashboard: React.FC = () => { // For revenue and ebitda, we'll take the most recent value from the financial summary. revenue: cimReviewData?.financialSummary?.financials?.ltm?.revenue || 'N/A', ebitda: cimReviewData?.financialSummary?.financials?.ltm?.ebitda || 'N/A', - employees: cimReviewData?.businessDescription?.customerBaseOverview?.customerConcentrationRisk || 'Not specified', + employees: cimReviewData?.dealOverview?.employeeCount || 'Not specified', founded: 'Not specified', // This field is not in the new schema location: cimReviewData?.dealOverview?.geography || 'Not specified', summary: cimReviewData?.preliminaryInvestmentThesis?.keyAttractions || 'No summary available', diff --git a/frontend/src/components/CIMReviewTemplate.tsx b/frontend/src/components/CIMReviewTemplate.tsx index dbf7402..f6991e6 100644 --- a/frontend/src/components/CIMReviewTemplate.tsx +++ b/frontend/src/components/CIMReviewTemplate.tsx @@ -15,6 +15,7 @@ interface CIMReviewData { reviewers: string; cimPageCount: string; statedReasonForSale: string; + employeeCount: string; }; // Business Description @@ -440,6 +441,7 @@ const CIMReviewTemplate: React.FC = ({ {renderField('Date Reviewed', 'dealOverview.dateReviewed', 'date')} {renderField('Reviewer(s)', 'dealOverview.reviewers')} {renderField('CIM Page Count', 'dealOverview.cimPageCount')} + {renderField('Employee Count', 'dealOverview.employeeCount')} {renderField('Stated Reason for Sale (if provided)', 'dealOverview.statedReasonForSale', 'textarea', 'Enter the stated reason for sale...', 4)}