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
print inputs
Browse files- handler.py +3 -1
handler.py
CHANGED
@@ -16,9 +16,11 @@ class EndpointHandler:
|
|
16 |
# get inputs
|
17 |
inputs: dict = data.pop("inputs", data)
|
18 |
|
|
|
|
|
19 |
# add instruction
|
20 |
query = [['Retrieve documents that can help answer the question:',
|
21 |
-
inputs
|
22 |
|
23 |
# encode
|
24 |
embedding = self.model.encode(query)
|
|
|
16 |
# get inputs
|
17 |
inputs: dict = data.pop("inputs", data)
|
18 |
|
19 |
+
print(inputs)
|
20 |
+
|
21 |
# add instruction
|
22 |
query = [['Retrieve documents that can help answer the question:',
|
23 |
+
inputs]]
|
24 |
|
25 |
# encode
|
26 |
embedding = self.model.encode(query)
|