This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: improve embedding page * chore: add changelog * docs: update wording Co-authored-by: George Mastrapas <[email protected]> * test: replace ecommerce model from hf --------- Co-authored-by: George Mastrapas <[email protected]>
- Loading branch information
1 parent
65f3bb1
commit c387752
Showing
3 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import pytest | ||
|
||
from finetuner import get_model | ||
from finetuner import build_model | ||
|
||
|
||
@pytest.mark.parametrize( | ||
'model', | ||
[ | ||
'https://huggingface.co/jinaai/ecommerce-sbert-model', | ||
'jinaai/ecommerce-sbert-model', | ||
'jinaai/jina-embedding-s-en-v1', | ||
], | ||
) | ||
def test_get_model(model): | ||
model = get_model(model) | ||
def test_build_model(model): | ||
model = build_model(name=model) | ||
assert model |