pwcGraphRAG / cache /claim_extraction /chat-35a8144ac0548c336670f7655b57ffa8
cordwainersmith
Add project files and Docker setup
c917d47
{"result": "(EL AL<|>NONE<|>BAGGAGE MEASUREMENTS AND WEIGHT LIMITS<|>TRUE<|>NONE<|>NONE<|>Transport costs for animals weighing up to 9 kg with their cage are $100 for Europe and Middle East and $150 for North America and Far East. Animals weighing between 9 and 50 kg with their cage cost $200 for Europe and Middle East and $250 for North America and Far East. Animals weighing between 50 and 100 kg with their cage cost $400 for Europe and Middle East and $450 for North America and Far East. Animals weighing more than 100 kg with their cage cannot be transported as baggage and will be handled by the Cargo Division.<|>Transport costs as baggage: Europe and Middle East Animals weighing up to 9 kg with their cage $100 $150 Animals weighing between 9 and 50 kg with their cage $200 $250 Animals weighing between 50 and 100 kg with their cage $400 $450 Animals weighing more than 100 kg with their cage cannot be transported as baggage and will be handled by the Cargo Division.)\n<|COMPLETE|>", "input": "\n-Target activity-\nYou are an intelligent assistant that helps a human analyst to analyze claims against certain entities presented in a text document.\n\n-Goal-\nGiven a text document that is potentially relevant to this activity, an entity specification, and a claim description, extract all entities that match the entity specification and all claims against those entities.\n\n-Steps-\n1. Extract all named entities that match the predefined entity specification. Entity specification can either be a list of entity names or a list of entity types.\n2. For each entity identified in step 1, extract all claims associated with the entity. Claims need to match the specified claim description, and the entity should be the subject of the claim.\nFor each claim, extract the following information:\n- Subject: name of the entity that is subject of the claim, capitalized. The subject entity is one that committed the action described in the claim. Subject needs to be one of the named entities identified in step 1.\n- Object: name of the entity that is object of the claim, capitalized. The object entity is one that either reports/handles or is affected by the action described in the claim. If object entity is unknown, use **NONE**.\n- Claim Type: overall category of the claim, capitalized. Name it in a way that can be repeated across multiple text inputs, so that similar claims share the same claim type\n- Claim Status: **TRUE**, **FALSE**, or **SUSPECTED**. TRUE means the claim is confirmed, FALSE means the claim is found to be False, SUSPECTED means the claim is not verified.\n- Claim Description: Detailed description explaining the reasoning behind the claim, together with all the related evidence and references.\n- Claim Date: Period (start_date, end_date) when the claim was made. Both start_date and end_date should be in ISO-8601 format. If the claim was made on a single date rather than a date range, set the same date for both start_date and end_date. If date is unknown, return **NONE**.\n- Claim Source Text: List of **all** quotes from the original text that are relevant to the claim.\n\nFormat each claim as (<subject_entity><|><object_entity><|><claim_type><|><claim_status><|><claim_start_date><|><claim_end_date><|><claim_description><|><claim_source>)\n\n3. Return output in English as a single list of all the claims identified in steps 1 and 2. Use **##** as the list delimiter.\n\n4. When finished, output <|COMPLETE|>\n\n-Examples-\nExample 1:\nEntity specification: organization\nClaim description: red flags associated with an entity\nText: According to an article on 2022/01/10, Company A was fined for bid rigging while participating in multiple public tenders published by Government Agency B. The company is owned by Person C who was suspected of engaging in corruption activities in 2015.\nOutput:\n\n(COMPANY A<|>GOVERNMENT AGENCY B<|>ANTI-COMPETITIVE PRACTICES<|>TRUE<|>2022-01-10T00:00:00<|>2022-01-10T00:00:00<|>Company A was found to engage in anti-competitive practices because it was fined for bid rigging in multiple public tenders published by Government Agency B according to an article published on 2022/01/10<|>According to an article published on 2022/01/10, Company A was fined for bid rigging while participating in multiple public tenders published by Government Agency B.)\n<|COMPLETE|>\n\nExample 2:\nEntity specification: Company A, Person C\nClaim description: red flags associated with an entity\nText: According to an article on 2022/01/10, Company A was fined for bid rigging while participating in multiple public tenders published by Government Agency B. The company is owned by Person C who was suspected of engaging in corruption activities in 2015.\nOutput:\n\n(COMPANY A<|>GOVERNMENT AGENCY B<|>ANTI-COMPETITIVE PRACTICES<|>TRUE<|>2022-01-10T00:00:00<|>2022-01-10T00:00:00<|>Company A was found to engage in anti-competitive practices because it was fined for bid rigging in multiple public tenders published by Government Agency B according to an article published on 2022/01/10<|>According to an article published on 2022/01/10, Company A was fined for bid rigging while participating in multiple public tenders published by Government Agency B.)\n##\n(PERSON C<|>NONE<|>CORRUPTION<|>SUSPECTED<|>2015-01-01T00:00:00<|>2015-12-30T00:00:00<|>Person C was suspected of engaging in corruption activities in 2015<|>The company is owned by Person C who was suspected of engaging in corruption activities in 2015)\n<|COMPLETE|>\n\n-Real Data-\nUse the following input for your answer.\nEntity specification: ['organization', 'person', 'geo', 'event']\nClaim description: Extract baggage measurements, weight limits, and restrictions from airline documentation.\nText: that the animal will be transported with a bill of lading (cargo), please follow the guidelines for transporting pets as cargo. If the permit states that the animal will be transported as baggage, update the EL AL Service Center or the travel agent through which you made the booking.\nMake sure to bring with you all of the documents and authorizations; you will be asked to present them at check-in. Without this authorization, a pet will not be accepted on the flight and EL AL may not be held responsible for this.\nAdditional requirements for obtaining authorization to transport a pet as cargo with a bill of lading\nIn cases where the Veterinary Services Department determines that the animal may be transported with a bill of lading (usually when the pet weighs more than 9 kg), this service will be offered through the Cargo Division. Email the following address: [email protected]​ and attach the following documents in a single PDF file:\n\nAuthorization from the Veterinary Services Department.\nExport license.\nBill of lading.\nCertificate of good health.\nLaboratory results for rabies antibodies.\nName of customs brokerage company (if necessary).\nBring the Veterinary Service authorization with you to the airport and present it at the check-in counter.\n\nWhere do you pick up animals after landing in Israel?\nWhen the animal is transported as baggage, it will be released in the Ben Gurion Airport Arrivals Hall.\nWhen the animal is transported as cargo, it will be released in the Ben Gurion Airport cargo terminal.\nFor questions and clarifications please contact our Cargo Division: (import tracing):\[email protected]\[email protected]\nTelephone: +972-3-9716589/592\nThe costs of transporting animals\nTransport costs as baggage:\n \t​Europe and Middle East\tNorth America and Far East\nAnimals weighing up to 9 kg with their cage\t$100\t $150\nAnimals weighing between 9 and 50 kg with their cage\t$200\t$250\nAnimals weighing between 50 and 100 kg with their cage\t$400\t$450\nAnimals weighing more than 100 kg with their cage cannot be transported as baggage and will be handled by the Cargo Division.\n\nTransport costs as cargo:\nTransport costs depend on a number of factors. To clarify costs, please contact the Cargo Division at:\n+972-3-9716679\n\nCosts – What you need to know:\nThe cost\nOutput:", "parameters": {"model": "gpt-4o-mini", "temperature": 0.0, "frequency_penalty": 0.0, "presence_penalty": 0.0, "top_p": 1.0, "max_tokens": 4000, "n": 1}, "history": null}