Interface RetrievalAugmentedEvent

All Superinterfaces:
AiServiceEvent
All Known Implementing Classes:
DefaultRetrievalAugmentedEvent

@Experimental public interface RetrievalAugmentedEvent extends AiServiceEvent
Invoked once per invocation of an AI Service that uses retrieval-augmented generation (RAG), configured with contentRetriever(...) or retrievalAugmentor(...), after the contents to add to the user message were retrieved, also when nothing was retrieved. It carries the user message that was used for the retrieval (the chat message given to the RetrievalAugmentor) and the final contents, after all queries, retrievers, aggregation and re-ranking. To observe each ContentRetriever call separately, with the query it received, use a ContentRetrieverListener.
Since:
1.23.0