Interface QueryAugmenter
- All Superinterfaces:
BiFunction<Query,List<org.springframework.ai.document.Document>, Query>
- All Known Implementing Classes:
ContextualQueryAugmenter
public interface QueryAugmenter
extends BiFunction<Query,List<org.springframework.ai.document.Document>,Query>
A component for augmenting an input query with additional data, useful to provide a
large language model with the necessary context to answer the user query.
- Since:
- 1.0.0
- Author:
- Thomas Vitale
-
Method Summary
Methods inherited from interface java.util.function.BiFunction
andThen
-
Method Details
-
augment
Augments the user query with contextual data.- Parameters:
query- The user query to augmentdocuments- The contextual data to use for augmentation- Returns:
- The augmented query
-
apply
- Specified by:
applyin interfaceBiFunction<Query,List<org.springframework.ai.document.Document>, Query>
-