Retrieved Context Transformation
After retrieving documents, you might want to transform the documents or generate better context.
The TransformResponse
trait
The TransformResponse
trait is defined as follows:
The transformer takes the current query, applies transformations, and returns the new query.
Closures are also supported in this step.
Built in query transformers
Name | Description | Feature Flag |
---|---|---|
Summary | Generates a summary of the current retrieved documents |