Skip to content

Promise Tracker | AI Promise extraction prompt logic fine-tuning | Split Multi-Promise Text into Unique Atomic Records #538

@RalphOwah

Description

@RalphOwah

Split Multi-Promise Text into Separate Unique Promise Records

Problem
The current AI extraction logic combines multiple distinct promises into a single output record when they appear within the same paragraph or compound sentence.

This prevents accurate tracking of individual promises (e.g., a university project, TVET construction, and an internship programme being grouped as one record).

Goal

  1. Ensure the AI outputs one unique record per actionable promise, even when multiple promises appear in the same sentence, paragraph, or category.
  2. Each promise should be independently trackable in the system.
  3. Expected Behaviour
  4. Each promise must be extracted as a separate, standalone record.
  5. If a sentence or paragraph contains multiple commitments, they must be split into distinct outputs.
  6. Compound statements should be broken down so that each primary action (e.g., Build, Establish, Set up, Launch, Construct, Recruit, Allocate, Implement) results in a new promise record.
  7. No merging of multiple deliverables into a single field.
  8. No aggregation of distinct commitments.

Acceptance Criteria

  1. Multiple promises within a single paragraph are split into separate records.
  2. Each record contains only one actionable promise.
  3. No compound deliverables exist within a single output field.
  4. Existing single-promise behaviour remains unchanged.

Suggested additional rules to the existing AI prompt logic

  1. Extract one record per actionable promise.
  2. If a sentence or paragraph contains multiple commitments, split them into separate records.
  3. Each primary action verb (e.g., Build, Establish, Set up, Launch, Construct, Recruit, Allocate, Implement) must produce a new record.
  4. Do not combine multiple projects or deliverables into one output.
  5. Do not summarise or aggregate promises.

Link to the example issue on Check Media
https://checkmedia.org/pesacheck-promise-tracker/media/3439740?listQuery=%7B%22sort%22%3A%22recent_activity%22%7D&listIndex=3&tab=articles

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🚧 In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions