Skip to content

Commit

Permalink
tests: Add jina clip vision test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hh-space-invader committed Nov 20, 2024
1 parent 42bc449 commit 86287ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/test_image_onnx_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"Qdrant/Unicom-ViT-B-32": np.array(
[0.0418, 0.0550, 0.0003, 0.0253, -0.0185, 0.0016, -0.0368, -0.0402, -0.0891, -0.0186]
),
"jinaai/jina-clip-v1": np.array(
[-0.029, 0.0216, 0.0396, 0.0283, -0.0023, 0.0151, 0.011, -0.0235, 0.0251, -0.0343]
),
}


Expand Down
2 changes: 1 addition & 1 deletion tests/test_text_onnx_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_embedding():

dim = model_desc["dim"]

model = TextEmbedding(model_name=model_desc["model"], cache_dir="models")
model = TextEmbedding(model_name=model_desc["model"])
docs = ["hello world", "flag embedding"]
embeddings = list(model.embed(docs))
embeddings = np.stack(embeddings, axis=0)
Expand Down

0 comments on commit 86287ef

Please sign in to comment.