Ask a question to get started
Enter to sendā¢Shift+Enter new line
LLMChainFilter()
BaseDocumentCompressor
LLM wrapper to use for filtering documents. The chain prompt is expected to have a BooleanOutputParser.
Callable for constructing the chain input from the query and a Document.
Filter down documents based on their relevance to the query.
Create a LLMChainFilter from a language model.
Filter that drops documents that aren't relevant to the query.