Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cohere rerank integration with token usage logging #3478

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

morganmcg1
Copy link
Member

This PR adds support for Cohere rerank integration with token usage logging. The changes include:

  1. Added rerank wrappers (sync and async) with token usage logging
  2. Added rerank patchers to the MultiPatcher
  3. Added test cases for both sync and async rerank operations

The token usage logging follows the same format as OpenAI and existing Cohere integrations, making it compatible with Weave UI display requirements.

@morganmcg1 morganmcg1 requested a review from a team as a code owner January 23, 2025 13:20
Copy link
Contributor

CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request

@circle-job-mirror
Copy link

circle-job-mirror bot commented Jan 23, 2025

@morganmcg1 morganmcg1 marked this pull request as draft January 23, 2025 13:21
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