Sentence Similarity
sentence-transformers
PyTorch
Transformers
English
t5
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
prompt-retrieval
text-reranking
feature-extraction
English
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
Eval Results
Inference Endpoints
updated handler.py
Browse files- __pycache__/handler.cpython-310.pyc +0 -0
- handler.py +7 -1
__pycache__/handler.cpython-310.pyc
ADDED
Binary file (926 Bytes). View file
|
|
handler.py
CHANGED
@@ -10,4 +10,10 @@ class EndpointHandler():
|
|
10 |
document = data.get("document", "")
|
11 |
embedding = self.model.encode([[instruction, document]]).flatten()
|
12 |
|
13 |
-
return [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
document = data.get("document", "")
|
11 |
embedding = self.model.encode([[instruction, document]]).flatten()
|
12 |
|
13 |
+
return [
|
14 |
+
{
|
15 |
+
"embedding": embedding,
|
16 |
+
"instruction": instruction,
|
17 |
+
"document": document
|
18 |
+
}
|
19 |
+
]
|