Interface DocumentPostProcessor

All Superinterfaces:
BiFunction<Query,List<Document>,List<Document>>

public interface DocumentPostProcessor extends BiFunction<Query,List<Document>,List<Document>>
A component for post-processing retrieved documents based on a query, addressing challenges such as "lost-in-the-middle", context length restrictions from the model, and the need to reduce noise and redundancy in the retrieved information.

For example, it could rank documents based on their relevance to the query, remove irrelevant or redundant documents, or compress the content of each document to reduce noise and redundancy.

Since:
1.0.0
Author:
Thomas Vitale