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

cohere[minor]: Add cohere rerank #4380

Merged
merged 9 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cohere[minor]: Add cohere rerank
  • Loading branch information
bracesproul committed Feb 12, 2024
commit f1ad1d2bb1bdcb93fa2b1d38fd1765542d86aef3
12 changes: 12 additions & 0 deletions libs/langchain-cohere/src/cohere_rerank.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { BaseDocumentCompressor } from "@langchain/core/retrievers/document_compressors/base";

export interface CohereRerankArgs {};

/**
* Document compressor that uses `Cohere Rerank API`.
*/
export class CohereRerank extends BaseDocumentCompressor {
constructor() {
super();
}
}
Loading