Spaces:
Sleeping
Sleeping
Update retriever.py
Browse files- retriever.py +1 -2
retriever.py
CHANGED
|
@@ -86,8 +86,7 @@ examples = [
|
|
| 86 |
#)
|
| 87 |
|
| 88 |
def encode_query(perspective):
|
| 89 |
-
payload = {"model": "BAAI/bge-en-icl",
|
| 90 |
-
"inputs": perspective,
|
| 91 |
"parameters": {"instruction": "Retrieve foundations aligned with perspective.",
|
| 92 |
"examples": examples}}
|
| 93 |
response = client.feature_extraction(**payload)
|
|
|
|
| 86 |
#)
|
| 87 |
|
| 88 |
def encode_query(perspective):
|
| 89 |
+
payload = {"model": "BAAI/bge-en-icl",
|
|
|
|
| 90 |
"parameters": {"instruction": "Retrieve foundations aligned with perspective.",
|
| 91 |
"examples": examples}}
|
| 92 |
response = client.feature_extraction(**payload)
|