Tom Aarsen
commited on
Commit
·
6cf3bfe
1
Parent(s):
c58c14f
Following SFR-Embedding-Mistral, set max seq length to 4096
Browse files- README.md +0 -3
- sentence_bert_config.json +1 -1
README.md
CHANGED
@@ -2013,9 +2013,6 @@ from sentence_transformers import SentenceTransformer
|
|
2013 |
|
2014 |
model = SentenceTransformer("Salesforce/SFR-Embedding-2_R")
|
2015 |
|
2016 |
-
# Reduce the max length if desired
|
2017 |
-
model.max_seq_length = 4096
|
2018 |
-
|
2019 |
def get_detailed_instruct(task_description: str, query: str) -> str:
|
2020 |
return f'Instruct: {task_description}\nQuery: {query}'
|
2021 |
|
|
|
2013 |
|
2014 |
model = SentenceTransformer("Salesforce/SFR-Embedding-2_R")
|
2015 |
|
|
|
|
|
|
|
2016 |
def get_detailed_instruct(task_description: str, query: str) -> str:
|
2017 |
return f'Instruct: {task_description}\nQuery: {query}'
|
2018 |
|
sentence_bert_config.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
{
|
2 |
-
"max_seq_length":
|
3 |
"do_lower_case": false
|
4 |
}
|
|
|
1 |
{
|
2 |
+
"max_seq_length": 4096,
|
3 |
"do_lower_case": false
|
4 |
}
|