Skip to content

feat: support ai extension#88

Merged
Cuiyus merged 29 commits intomainfrom
feat/support_ai_extension
Feb 12, 2026
Merged

feat: support ai extension#88
Cuiyus merged 29 commits intomainfrom
feat/support_ai_extension

Conversation

@Cuiyus
Copy link
Collaborator

@Cuiyus Cuiyus commented Feb 10, 2026

Resolves #43

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.
"""
...
"""Test handling of ModelScope import error."""
mock_st = Mock()

def require_module_side_effect(module_name):
@feihongxu0824
Copy link
Collaborator

Add "Resolves #43" to the pull request description to automatically close the issue when this PR is merged.

feihongxu0824
feihongxu0824 previously approved these changes Feb 12, 2026
@feihongxu0824 feihongxu0824 self-requested a review February 12, 2026 09:41
@Cuiyus Cuiyus merged commit 1fa15ce into main Feb 12, 2026
7 of 8 checks passed
@Cuiyus Cuiyus deleted the feat/support_ai_extension branch February 12, 2026 10:33
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.
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.

[Feature]: embedding/rerank module for rag

2 participants