Skip to content

Coreference in RAG

Definition

Coreference in RAG — a class of errors that occur during Chunking when a chunk contains pronouns or anaphoric references whose resolution requires context outside the chunk. As a result, the chunk embedding loses its semantic connection to the original entity.

Example

Original text:

Company Acme released model X. It supports a context of 128k tokens.

After chunking, the second chunk contains only «It supports a context of 128k tokens» — without specifying what «it» refers to.

Mitigation Methods

Method Description
Coreference Resolution Before Chunking replacing pronouns with entities
Contextual Headers adding metadata to the chunk
Parent Chunks searching in the child, returning the parent
Contextual Retrieval generating contextual annotation

See Also