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

feat(community): Incorporate BM25 score in the results #7236

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

felipediel
Copy link
Contributor

In the BM25Retriever, include the score in each document's metadata.

The score is useful for performing reranking, combining BM25 with other algorithms.

Copy link

vercel bot commented Nov 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Nov 22, 2024 5:31am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Nov 22, 2024 5:31am

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs labels Nov 20, 2024
@felipediel felipediel changed the title Include BM25 score in the metadata Incorporate BM25 score in the results Nov 20, 2024
@jacoblee93 jacoblee93 changed the title Incorporate BM25 score in the results feat(community): Incorporate BM25 score in the results Nov 22, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Nov 22, 2024
@jacoblee93
Copy link
Collaborator

Let's actually make it configurable to really avoid disrupting anyone

@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label Nov 22, 2024
@jacoblee93 jacoblee93 merged commit 4d2bd63 into langchain-ai:main Nov 25, 2024
32 checks passed
FilipZmijewski pushed a commit to FilipZmijewski/langchainjs that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:nit Small modifications/deletions, fixes, deps or improvements to existing code or docs lgtm PRs that are ready to be merged as-is size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants