feat: Restructure Rerankers so both NVIDIA and Cohere work properly (#5933)

* Removing reference to nonexistent method

* Restructuring rerankers to inherit from BaseDocumentCompressor. Adding Voyage AI reranker.

* Removing Voyage AI component and dependency.

* [autofix.ci] apply automated fixes

* feat: Add method to compress documents as DataFrame in LCCompressorComponent

* Changing description of abstract build_compressor method

* [autofix.ci] apply automated fixes

* Adding top_n as an argument to the NVIDIA reranker

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
brian-ogrady 2025-02-05 13:29:29 -05:00 committed by GitHub
commit 8bf7048485
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 117 additions and 716 deletions

640
uv.lock generated

File diff suppressed because it is too large Load diff