hotchpotch
commited on
Commit
•
5570363
1
Parent(s):
c1ebd09
Update datasets_to_embs.py and embs_to_faiss.py
Browse files- Generate.md +17 -3
Generate.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
|
6 |
```
|
7 |
python datasets_to_embs.py \
|
8 |
-
--target="data" \
|
9 |
--model_name="intfloat/multilingual-e5-small" \
|
10 |
--output_name="multilingual-e5-small-passage" \
|
11 |
--input_prefix="passage: "
|
@@ -20,7 +20,7 @@ python datasets_to_embs.py \
|
|
20 |
|
21 |
```
|
22 |
python datasets_to_embs.py \
|
23 |
-
--target="data" \
|
24 |
--model_name="intfloat/multilingual-e5-small" \
|
25 |
--output_name="multilingual-e5-small-query" \
|
26 |
--input_prefix="query: "
|
@@ -31,12 +31,26 @@ python datasets_to_embs.py \
|
|
31 |
--input_prefix="query: "
|
32 |
```
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
## create faiss indexes
|
36 |
|
37 |
```
|
38 |
python embs_to_faiss.py \
|
39 |
-
--target="data" \
|
40 |
--input_name="multilingual-e5-small-passage" \
|
41 |
--use_gpu
|
42 |
```
|
|
|
5 |
|
6 |
```
|
7 |
python datasets_to_embs.py \
|
8 |
+
--target="data" \
|
9 |
--model_name="intfloat/multilingual-e5-small" \
|
10 |
--output_name="multilingual-e5-small-passage" \
|
11 |
--input_prefix="passage: "
|
|
|
20 |
|
21 |
```
|
22 |
python datasets_to_embs.py \
|
23 |
+
--target="data" \
|
24 |
--model_name="intfloat/multilingual-e5-small" \
|
25 |
--output_name="multilingual-e5-small-query" \
|
26 |
--input_prefix="query: "
|
|
|
31 |
--input_prefix="query: "
|
32 |
```
|
33 |
|
34 |
+
## GLuCoSE-base-ja
|
35 |
+
|
36 |
+
```
|
37 |
+
python datasets_to_embs.py \
|
38 |
+
--target="data" \
|
39 |
+
--model_name="pkshatech/GLuCoSE-base-ja" \
|
40 |
+
--output_name="GLuCoSE-base-ja"
|
41 |
+
python datasets_to_embs.py \
|
42 |
+
--target="chunked" \
|
43 |
+
--model_name="pkshatech/GLuCoSE-base-ja" \
|
44 |
+
--output_name="GLuCoSE-base-ja"
|
45 |
+
```
|
46 |
+
|
47 |
+
|
48 |
|
49 |
## create faiss indexes
|
50 |
|
51 |
```
|
52 |
python embs_to_faiss.py \
|
53 |
+
--target="data" \
|
54 |
--input_name="multilingual-e5-small-passage" \
|
55 |
--use_gpu
|
56 |
```
|