Skip to content

feat: add async support for rerank and compress_documents#134

Open
Dahee Kim (daily-kim) wants to merge 1 commit intolangchain-ai:mainfrom
daily-kim:async_rerank
Open

feat: add async support for rerank and compress_documents#134
Dahee Kim (daily-kim) wants to merge 1 commit intolangchain-ai:mainfrom
daily-kim:async_rerank

Conversation

@daily-kim
Copy link

@daily-kim Dahee Kim (daily-kim) commented Apr 5, 2025

Hi.
I’ve been using it and found it really helpful. While integrating it into an async workflow, I noticed the need for asynchronous support in some parts, so I worked on adding it.

  • Added method for asynchronous (arerank) reranking of documents using Cohere's API.
  • Included _document_to_str_async helper methods for document serialization with async manner.
  • Added acompress_documents methods to asynchronously compress documents.

Let me know if there's anything I can improve or adjust — happy to make changes!

@daily-kim
Copy link
Author

Hi, just following up on this PR.
Please let me know if any adjustments are needed or if there’s anything I can do to help move it forward.
Thanks again for all your work on this project!

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.

1 participant