Interface ContentAggregator
-
- All Implemented Interfaces:
public interface ContentAggregatorAggregates all Contents retrieved from all ContentRetrievers using all Querys. The goal is to ensure that only the most relevant and non-redundant Contents are presented to the LLM. Some effective approaches include:
- Re-ranking (see ReRankingContentAggregator) - Reciprocal Rank Fusion (see ReciprocalRankFuser, utilized in both DefaultContentAggregator and ReRankingContentAggregator)
-
-
Method Summary
-
-
Method Detail
-
aggregate
abstract List<Content> aggregate(Map<Query, Collection<List<Content>>> queryToContents)
Aggregates all Contents retrieved by all ContentRetrievers using all Querys. The Contents, both on input and output, are sorted by relevance, with the most relevant Contents appearing at the beginning of
List<Content>.
-
-
-
-