Skip to content

Allow rerank kwargs on compress#139

Open
Tyler Britten (tybritten) wants to merge 1 commit intolangchain-ai:mainfrom
tybritten:main
Open

Allow rerank kwargs on compress#139
Tyler Britten (tybritten) wants to merge 1 commit intolangchain-ai:mainfrom
tybritten:main

Conversation

@tybritten

AWS Bedrock Cohere requires max_tokens_per_doc on the rerank call- cannot be Null. self.rerank allows configuration of it, but it doesn't make it to compress_document function. This allows kwargs to be passed to rerank to allow that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants