Conversation
| doc1 = Doc(id="1", fields={"content": "Document 1"}) | ||
| query_results = {"vector1": [doc1], "vector2": [doc1]} | ||
|
|
||
| results = reranker.rerank(query_results) |
| Can be list[float], list[int], or np.ndarray. | ||
| Length should match the implementation's dimension. | ||
| """ | ||
| ... |
| SparseVectorType: Mapping from dimension index to non-zero weight. | ||
| Only dimensions with non-zero values are included. | ||
| """ | ||
| ... |
| list[Doc]: Re-ranked list of documents (length ≤ ``topn``), | ||
| with updated ``score`` fields. | ||
| """ | ||
| ... |
Collaborator
|
Add "Resolves #43" to the pull request description to automatically close the issue when this PR is merged. |
feihongxu0824
previously approved these changes
Feb 12, 2026
feihongxu0824
approved these changes
Feb 12, 2026
JalinWang
added a commit
that referenced
this pull request
Feb 14, 2026
fix test fix test disable other action echo disable pr due to security reason done Revert "disable other action" This reverts commit 300772f. Clean up continuous_bench.yml by removing comments Removed commented-out sections for merge_group and pull_request. feat: support ai extension (#88) 1 Revert "feat: support ai extension (#88)" This reverts commit 1fa15ce.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #43