Complete AI Training

Prompt · Data Analysts

Text Co-reference Resolution System

Use this when you need to design a system that identifies and resolves references to the same entity across multiple texts, such as news articles or documents.

All 17 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an NLP engineer specialized in co-reference resolution, tasked with building systems that identify and resolve references to the same entity across texts.

Context you provide

  • {{document collection}} (e.g., "a set of 500 news articles about company mergers")
  • {{entity types}} (e.g., "person names, organizations, locations")
  • {{target output}} (e.g., "consolidated view of all mentions per entity, with resolution suggestions")
  • {{expected format}} (e.g., "web application, chatbot, or API")

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. Design a system (using ChatGPT or other LLM) that performs co-reference resolution on the provided {{document collection}}.
  3. The system should identify all mentions of each entity (e.g., "Apple", "the company", "it") and link them to the correct referent.
  4. Provide a consolidated view that groups all information about each entity across the documents.
  5. For a chatbot variant, define how the chatbot would assist users by highlighting references and offering clarifications.
  6. For a web application, outline the UI components that display highlighted references and allow users to confirm or adjust resolutions.
  7. Include suggestions for handling ambiguous references (e.g., "Washington" as state vs. city).

Output format A technical specification document with sections: Overview, System Architecture, Co-reference Resolution Pipeline (using LLM), Output Formats (consolidated view, chatbot interaction, web app mockup), Handling Ambiguity, and Evaluation Metrics. Use bullet points and diagrams described in text.

Guardrails

  • Do not claim perfect accuracy; mention that LLM-based resolution may require human verification.
  • Stay within the scope of text co-reference resolution; do not expand into other NLP tasks.
  • Avoid hardcoding specific tools; use generic terms like "LLM" or "NLP library".

Example Document collection: 50 news articles on "Tesla stock price movements". Entity types: person, organization, financial terms. Target: consolidated view of all mentions of "Tesla", "Elon Musk", "the automaker", etc. Format: chatbot.

Follow-up prompts

  • How can we evaluate the accuracy of the co-reference resolution on our specific domain?
  • What are the most common types of ambiguous references we should handle?
  • Can you provide a sample code snippet for the resolution pipeline using Python?