PyTerrier Integration#79
Open
seanmacavaney wants to merge 44 commits into
Open
Conversation
explicitely -> explicitly
minor fix
* inference_mode instead of no_grad * cleaner verbosity * add image prep * add image documents * monovlm ranker * version bump * update pyproject * wip * wip * example fully functional
…also fixed tests as Document has doc_id and not id. Last, add .conda/ to .gitignore (AnswerDotAI#44)
* Adding Pinecone support * Adding documentation
* remove pydantic * remove tqdm * readme and project * readme & version * update broken test (pydantic)
Changed import paths: - vicuna_reranker.py -> listwise/vicuna_reranker.py - zephyr_reranker.py -> listwise/zephyr_reranker.py - rank_gpt.py -> listwise/rank_gpt.py
* wip * modify prompt
* support TWOLAR * support ecorank * upr * no ecorank for now * update reranker * update init * add flashrank kwargs * add monobert support
Target for llms-ctx.txt
* fix rankedrsults for transformer ranker * add mxbai reranker v2 (qwen-based) * version bump
* fix: removed no longer existent argument from call * feat: add support for Isaacus reranking API
* v1 * Remove header * cleaning up (model) kwargs
* updated rankllm implementation along with new arguments * small change * updated integration with new fields * updated integration with new fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for using
rerankersin PyTerrier pipelines. It adds an optional[pyterrier]dependency and is constructed using a new.as_pyterrier_transformer()method (following the convention from LangChain).The integration allows
rerankersto be composed into larger retrieval experimental pipelines, e.g.,:The
pt_docs/index.rstis the documentation that will be pulled through to the PyTerrier documentation.@Mandeep-Rathee (who co-authored it) and I have been using it for a while, and it's working great. We figure it would be helpful for others too.