Package dev.langchain4j.rag
Interface RetrievalAugmentor
- All Known Implementing Classes:
DefaultRetrievalAugmentor
public interface RetrievalAugmentor
Augments the provided
This serves as an entry point into the RAG flow in LangChain4j.
You are free to use the default implementation (
ChatMessage
with retrieved Content
s.
This serves as an entry point into the RAG flow in LangChain4j.
You are free to use the default implementation (
DefaultRetrievalAugmentor
) or to implement a custom one.- See Also:
-
Method Summary
-
Method Details
-
augment
- Parameters:
augmentationRequest
- TheAugmentationRequest
containing theChatMessage
to augment.- Returns:
- The
AugmentationResult
containing the augmentedChatMessage
.
-