Skip to content

Commit 5d295f4

Browse files
committed
3.0.19
Signed-off-by: Praneeth Bedapudi <[email protected]>
1 parent 4d0f45c commit 5d295f4

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

recipes/text_embeddings/example.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
example = [
2+
"This is a test sentence which is a bit longer than the others and also very long than normal and some more words here and some more words here and some more there",
3+
"This is another test sentence",
4+
"This is a third test sentence"
5+
]

recipes/text_embeddings/predictor.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from sentence_transformers import SentenceTransformer
2+
3+
sentences = ['That is a happy person', 'That is a very happy person']
4+
5+
model = SentenceTransformer('Alibaba-NLP/gte-base-en-v1.5', trust_remote_code=True)
6+
7+
from time import time
8+
9+
def predictor(input_list, batch_size=16):
10+
return model.encode(input_list, convert_to_numpy=True, normalize_embeddings=True, show_progress_bar=False, batch_size=batch_size)
11+
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sentence-transformers

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
1919
AUTHOR = "BEDAPUDI PRANEETH"
2020
REQUIRES_PYTHON = ">=3.6.0"
21-
VERSION = "3.0.18"
21+
VERSION = "3.0.19"
2222

2323
# What packages are required for this module to be executed?
24-
REQUIRED = ["falcon", "liteindex", "zstandard", "gunicorn[gevent]", "msgpack"]
24+
REQUIRED = ["falcon", "liteindex==0.0.3.2.dev4", "zstandard", "gunicorn[gevent]", "msgpack"]
2525

2626
# What packages are optional?
2727
EXTRAS = {

0 commit comments

Comments
 (0)