run-llama / llama_parse

Parse files for optimal RAG
https://www.llamaindex.ai
MIT License
1.79k stars 157 forks source link

md either misses text/words or formats wrong at times #240

Open sagarvadodaria opened 2 weeks ago

sagarvadodaria commented 2 weeks ago

The value in 'text' field for a page looks correct and has better information compared to 'md'. Look at page 18 of this attached pdf. policy.pdf

The 'text' field starts correctly with 'Hospital accommodation' .... but the 'md' field ommits it completely and starts with 'Charges for .....' . Also, the formatting in 'md' for rest of the text is messed up and not to mention spelling mistakes etc.

All that to say that the 'text' looks correct, its just conversion to 'md' that is wrong at time and hence unreliable when using both 'LlamaParseJsonNodeParser' or 'MarkdownElementNodeParser'.

image

image

Page 18: Text 'Hospital accommodation\nCharges for a standard or semi-private hospital room accommodation, not a private room or suite, or for outpatient\nservices provided by an active treatment hospital in an emergency while travelling outside your province or territory of\nresidence. These charges must be more than the amount paid by your government health insurance plan.\n\n\nHospital expenses\nPayment of up to $100 per emergency hospital stay while travelling, to cover incidental expenses. You must provide paid\noriginal receipts with your claim.\n\n\nMeals and accommodation\nWe’ll pay up to $150 per day, to a maximum of $1,500 per policy, for your commercial accommodation and meals when\nreturn to your province or territory of residence is delayed beyond your scheduled return date due to illness or injury to\nyourself or a travelling companion. An attending physician or nurse practitioner must provide a written statement that you\nor your travelling companion are unable to travel due to the illness or injury. Claims must be supported with detailed\noriginal receipts from commercial organizations and medical reports.\n\n\nMedical appliances\nThe cost of splints, casts, crutches, canes, slings, trusses, walkers, or the temporary rental of a wheelchair when\nprescribed by an attending physician or nurse practitioner, obtained outside your province or territory of residence, and\nrequired due to an accident or unexpected illness.\n\n\nParamedical services\nCharges up to $300 for services provided by a licensed or registered: physiotherapist, chiropractor, chiropodist, podiatrist\nor osteopath, including x-rays, when required for emergency treatment.\n\n\nPrescription drugs\nDrugs, serums and injectables prescribed by a physician, nurse practitioner or dentist and supplied by a licensed\npharmacist, physician, nurse practitioner or hospital. This doesn’t include vitamins, patent or proprietary products, when\nrequired for emergency treatment. You must submit original, paid receipts for claim purposes.\n\n\nPrivate registered nurse\nCoverage to a maximum of $3,000 for charges of a licensed, private registered nurse, who isn’t an immediate family\nmember, who performs registered nursing duties, during and immediately following hospitalization, when ordered by the\nattending physician or nurse practitioner.\n\n\nRelief of dental pain\nTreatment for the emergency relief of dental pain, other than accidental dental, is covered to a maximum of $200.\nTreatment must be performed at a location at least 200 km from your province or territory of residence.\n\n\nReturn of deceased\nA maximum of $3,000 towards the cost of preparation and transportation to the province or territory of residence of aS A M P L E\ndeceased insured person, excluding the cost of a coffin, or up to $2,500 towards the cost of cremation or burial at the\nplace of death, outside the province or territory of residence of the deceased insured person.\n\n\nTreatments - blood\nThe cost of whole blood, blood plasma or specialized treatments using radium and radioisotopes are covered, when\nprovided due to emergency hospitalization.\n\n\nMF_FlexCare_With_Vitality_Contract_E_0521 Page 18 of 32'

Page 18: MD '#\nCharges for a standard or semi-private hospital room accommodation, not a private room or suite, or for outpatient services provided by an active treatment hospital in an emergency while travelling outside your province or territory of residence. These charges must be more pan pe amount paid by your government healp insurance plan.\n\nPayment of up to $100 per emergency hospital stay while travelling, to cover incidental expenses. You must provide paid original receipts wip your claim.\n\n\nWe’ll pay up to $150 per day, to a maximum of $1,500 per policy, for your commercial accommodation and meals when return to your province or territory of residence is delayed beyond your scheduled return date due to illness or injury to yourself or a travelling companion. An attending physician or nurse practitioner must provide a written statement pat you or your travelling companion are unable to travel due to pe illness or injury. Claims must be supported wip detailed original receipts from commercial organizations and medical reports.\n\n\nThe cost of splints, casts, crutches, canes, slings, trusses, walkers, or pe temporary rental of a wheelchair when prescribed by an attending physician or nurse practitioner, obtained outside your province or territory of residence, and required due to an accident or unexpected illness.\n\nCharges up to $300 for services provided by a licensed or registered: physioperapist, chiropractor, chiropodist, podiatrist or osteopap, including x-rays, when required for emergency treatment.\n\nDrugs, serums and injectables prescribed by a physician, nurse practitioner or dentist and supplied by a licensed pharmacist, physician, nurse practitioner or hospital. This doesn’t include vitamins, patent or proprietary products, when required for emergency treatment. You must submit original, paid receipts for claim purposes.\n\nCoverage to a maximum of $3,000 for charges of a licensed, private registered nurse, who isn’t an immediate family member, who performs registered nursing duties, during and immediately following hospitalization, when ordered by pe attending physician or nurse practitioner.\n\n\nTreatment for pe emergency relief of dental pain, oper pan accidental dental, is covered to a maximum of $200. Treatment must be performed at a location at least 200 km from your province or territory of residence.\n\n\nA maximum of $3,000 towards pe cost of preparation and transportation to pe province or territory of residence of a deceased insured person, excluding pe cost of a coffin, or up to $2,500 towards pe cost of cremation or burial at pe place of deap, outside pe province or territory of residence of pe deceased insured person.\n\n<treatments - blood>\nThe cost of whole blood, blood plasma or specialized treatments using radium and radioisotopes are covered, when provided due to emergency hospitalization.'

hexapode commented 2 weeks ago

Hi!

It seems your document run into a bug, we will adress it.

(for some reason the text in your layout is not extracted correctly)

sagarvadodaria commented 2 weeks ago

Thank you, if you can please reply to this thread whenever the bug is fixed, that would be much appreciated.On Jun 18, 2024, at 3:53 AM, Pierre-Loic Doulcet @.***> wrote: Hi! It seems your document run into a bug, we will adress it. (for some reason the text in your layout is not extracted correctly)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>