Skip to content

Commit 0638c01

Browse files
chore: Added license for all models (#364)
* chore: Added license for all models * chore: added license as key value pair * chore: Updated clip models text/image license
1 parent eaecf7d commit 0638c01

16 files changed

+76
-32
lines changed

fastembed/image/image_embedding.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def list_supported_models(cls) -> List[Dict[str, Any]]:
2525
"model": "Qdrant/clip-ViT-B-32-vision",
2626
"dim": 512,
2727
"description": "CLIP vision encoder based on ViT-B/32",
28+
"license": "mit",
2829
"size_in_GB": 0.33,
2930
"sources": {
3031
"hf": "Qdrant/clip-ViT-B-32-vision",

fastembed/image/onnx_embedding.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"model": "Qdrant/clip-ViT-B-32-vision",
1414
"dim": 512,
1515
"description": "Image embeddings, Multimodal (text&image), 2021 year",
16+
"license": "mit",
1617
"size_in_GB": 0.34,
1718
"sources": {
1819
"hf": "Qdrant/clip-ViT-B-32-vision",
@@ -23,6 +24,7 @@
2324
"model": "Qdrant/resnet50-onnx",
2425
"dim": 2048,
2526
"description": "Image embeddings, Unimodal (image), 2016 year",
27+
"license": "apache-2.0",
2628
"size_in_GB": 0.1,
2729
"sources": {
2830
"hf": "Qdrant/resnet50-onnx",
@@ -33,6 +35,7 @@
3335
"model": "Qdrant/Unicom-ViT-B-16",
3436
"dim": 768,
3537
"description": "Image embeddings (more detailed than Unicom-ViT-B-32), Multimodal (text&image), 2023 year",
38+
"license": "apache-2.0",
3639
"size_in_GB": 0.82,
3740
"sources": {
3841
"hf": "Qdrant/Unicom-ViT-B-16",
@@ -43,6 +46,7 @@
4346
"model": "Qdrant/Unicom-ViT-B-32",
4447
"dim": 512,
4548
"description": "Image embeddings, Multimodal (text&image), 2023 year",
49+
"license": "apache-2.0",
4650
"size_in_GB": 0.48,
4751
"sources": {
4852
"hf": "Qdrant/Unicom-ViT-B-32",

fastembed/late_interaction/colbert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"model": "colbert-ir/colbertv2.0",
1818
"dim": 128,
1919
"description": "Late interaction model",
20+
"license": "mit",
2021
"size_in_GB": 0.44,
2122
"sources": {
2223
"hf": "colbert-ir/colbertv2.0",
@@ -27,6 +28,7 @@
2728
"model": "answerdotai/answerai-colbert-small-v1",
2829
"dim": 96,
2930
"description": "Text embeddings, Unimodal (text), Multilingual (~100 languages), 512 input tokens truncation, 2024 year",
31+
"license": "apache-2.0",
3032
"size_in_GB": 0.13,
3133
"sources": {
3234
"hf": "answerdotai/answerai-colbert-small-v1",

fastembed/late_interaction/late_interaction_text_embedding.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ def list_supported_models(cls) -> List[Dict[str, Any]]:
2626
```
2727
[
2828
{
29-
"model": "prithvida/SPLADE_PP_en_v1",
30-
"vocab_size": 30522,
31-
"description": "Independent Implementation of SPLADE++ Model for English",
32-
"size_in_GB": 0.532,
29+
"model": "colbert-ir/colbertv2.0",
30+
"dim": 128,
31+
"description": "Late interaction model",
32+
"license": "mit",
33+
"size_in_GB": 0.44,
3334
"sources": {
34-
"hf": "qdrant/SPLADE_PP_en_v1",
35+
"hf": "colbert-ir/colbertv2.0",
3536
},
36-
}
37+
"model_file": "model.onnx",
38+
},
3739
]
3840
```
3941
"""

fastembed/rerank/cross_encoder/onnx_text_cross_encoder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"model_file": "onnx/model.onnx",
1818
"description": "MiniLM-L-6-v2 model optimized for re-ranking tasks.",
19+
"license": "apache-2.0",
1920
},
2021
{
2122
"model": "Xenova/ms-marco-MiniLM-L-12-v2",
@@ -25,6 +26,7 @@
2526
},
2627
"model_file": "onnx/model.onnx",
2728
"description": "MiniLM-L-12-v2 model optimized for re-ranking tasks.",
29+
"license": "apache-2.0",
2830
},
2931
{
3032
"model": "BAAI/bge-reranker-base",
@@ -34,6 +36,7 @@
3436
},
3537
"model_file": "onnx/model.onnx",
3638
"description": "BGE reranker base model for cross-encoder re-ranking.",
39+
"license": "mit",
3740
},
3841
]
3942

fastembed/rerank/cross_encoder/text_cross_encoder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def list_supported_models(cls) -> List[Dict[str, Any]]:
2828
},
2929
"model_file": "onnx/model.onnx",
3030
"description": "MiniLM-L-6-v2 model optimized for re-ranking tasks.",
31+
"license": "apache-2.0",
3132
}
3233
]
3334
```

fastembed/sparse/bm25.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
{
5353
"model": "Qdrant/bm25",
5454
"description": "BM25 as sparse embeddings meant to be used with Qdrant",
55+
"license": "apache-2.0",
5556
"size_in_GB": 0.01,
5657
"sources": {
5758
"hf": "Qdrant/bm25",

fastembed/sparse/bm42.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"model": "Qdrant/bm42-all-minilm-l6-v2-attentions",
2222
"vocab_size": 30522,
2323
"description": "Light sparse embedding model, which assigns an importance score to each token in the text",
24+
"license": "apache-2.0",
2425
"size_in_GB": 0.09,
2526
"sources": {
2627
"hf": "Qdrant/all_miniLM_L6_v2_with_attentions",

fastembed/sparse/sparse_text_embedding.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def list_supported_models(cls) -> List[Dict[str, Any]]:
2929
"model": "prithvida/SPLADE_PP_en_v1",
3030
"vocab_size": 30522,
3131
"description": "Independent Implementation of SPLADE++ Model for English",
32+
"license": "apache-2.0",
3233
"size_in_GB": 0.532,
3334
"sources": {
3435
"hf": "qdrant/SPLADE_PP_en_v1",

fastembed/sparse/splade_pp.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
{
1515
"model": "prithivida/Splade_PP_en_v1",
1616
"vocab_size": 30522,
17-
"description": "Independent Implementation of SPLADE++ Model for English",
17+
"description": "Independent Implementation of SPLADE++ Model for English.",
18+
"license": "apache-2.0",
1819
"size_in_GB": 0.532,
1920
"sources": {
2021
"hf": "Qdrant/SPLADE_PP_en_v1",
@@ -24,7 +25,8 @@
2425
{
2526
"model": "prithvida/Splade_PP_en_v1",
2627
"vocab_size": 30522,
27-
"description": "Independent Implementation of SPLADE++ Model for English",
28+
"description": "Independent Implementation of SPLADE++ Model for English.",
29+
"license": "apache-2.0",
2830
"size_in_GB": 0.532,
2931
"sources": {
3032
"hf": "Qdrant/SPLADE_PP_en_v1",

0 commit comments

Comments
 (0)