Filter that uses an LLM to rerank documents listwise and select top-k.
Document compressor that uses Zero-Shot Listwise Document Reranking.
Adapted from: https://arxiv.org/pdf/2305.02156.pdf
LLMListwiseRerank uses a language model to rerank a list of documents based on
their relevance to a query.
Requires that underlying model implement with_structured_output.