Spaces:
Sleeping
Sleeping
Refactor examples section in app.py to include a specific employment product example with a sample PDF file. Removed redundant example definitions for invoices and travel products.
8d744a2
| # Example 1: Invoice-focused products | |
| invoice_products = { | |
| "invoice": { | |
| "name": "Invoice", | |
| "description": "A commercial document requesting payment for goods or services rendered. Contains billing information, itemized charges, tax amounts, payment terms, due dates, vendor details, and total amounts owed.", | |
| "keywords": [ | |
| "invoice", | |
| "bill", | |
| "payment", | |
| "amount", | |
| "due", | |
| "tax", | |
| "total", | |
| "vendor", | |
| "customer", | |
| "charges", | |
| ], | |
| }, | |
| "receipt": { | |
| "name": "Receipt", | |
| "description": "A proof of payment document showing completed transaction details, payment confirmation, and purchase information.", | |
| "keywords": [ | |
| "receipt", | |
| "payment", | |
| "transaction", | |
| "purchase", | |
| "paid", | |
| "confirmation", | |
| "total", | |
| ], | |
| }, | |
| "quote": { | |
| "name": "Quote/Estimate", | |
| "description": "A preliminary pricing document providing cost estimates for goods or services before purchase.", | |
| "keywords": [ | |
| "quote", | |
| "estimate", | |
| "pricing", | |
| "cost", | |
| "proposal", | |
| "preliminary", | |
| "before purchase", | |
| ], | |
| }, | |
| } | |
| # Example 2: Travel-focused products | |
| travel_products = { | |
| "flight_ticket": { | |
| "name": "Flight Ticket", | |
| "description": "Airline ticket or booking confirmation with passenger details, flight information, and travel itinerary.", | |
| "keywords": [ | |
| "flight", | |
| "airline", | |
| "ticket", | |
| "booking", | |
| "passenger", | |
| "itinerary", | |
| "departure", | |
| "arrival", | |
| ], | |
| }, | |
| "hotel_reservation": { | |
| "name": "Hotel Reservation", | |
| "description": "Hotel booking confirmation with accommodation details, check-in/out dates, and room information.", | |
| "keywords": [ | |
| "hotel", | |
| "reservation", | |
| "booking", | |
| "accommodation", | |
| "check-in", | |
| "check-out", | |
| "room", | |
| ], | |
| }, | |
| "travel_insurance": { | |
| "name": "Travel Insurance", | |
| "description": "Insurance policy document covering travel-related risks, coverage details, and policy terms.", | |
| "keywords": [ | |
| "insurance", | |
| "policy", | |
| "coverage", | |
| "travel", | |
| "risk", | |
| "terms", | |
| "protection", | |
| ], | |
| }, | |
| } | |
| # Example 3: Employment-focused products | |
| employment_products = { | |
| "cv_resume": { | |
| "name": "CV/Resume", | |
| "description": "Document summarizing education, work experience, skills, and qualifications for employment.", | |
| "keywords": [ | |
| "resume", | |
| "cv", | |
| "experience", | |
| "education", | |
| "skills", | |
| "employment", | |
| "qualifications", | |
| ], | |
| }, | |
| "job_offer": { | |
| "name": "Job Offer", | |
| "description": "Employment offer letter with position details, salary, benefits, and employment terms.", | |
| "keywords": [ | |
| "job offer", | |
| "employment", | |
| "position", | |
| "salary", | |
| "benefits", | |
| "terms", | |
| "offer letter", | |
| ], | |
| }, | |
| "employment_contract": { | |
| "name": "Employment Contract", | |
| "description": "Legal employment agreement with terms, conditions, responsibilities, and employment rights.", | |
| "keywords": [ | |
| "contract", | |
| "employment", | |
| "terms", | |
| "conditions", | |
| "responsibilities", | |
| "rights", | |
| "agreement", | |
| ], | |
| }, | |
| } |