File size: 1,146 Bytes
07119c3 4646a6d 07119c3 0fb0a80 07119c3 0fb0a80 07119c3 4646a6d 0fb0a80 4646a6d 0fb0a80 4646a6d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
## create embeddings
### multilingual-e5-small + passage
```
python datasets_to_embs.py \
--target="data" \ # data or chunked
--model_name="intfloat/multilingual-e5-small" \
--output_name="multilingual-e5-small-passage" \
--input_prefix="passage: "
python datasets_to_embs.py \
--target="chunked" \
--model_name="intfloat/multilingual-e5-small" \
--output_name="multilingual-e5-small-passage" \
--input_prefix="passage: "
```
### multilingual-e5-small + query
```
python datasets_to_embs.py \
--target="data" \ # data or chunked
--model_name="intfloat/multilingual-e5-small" \
--output_name="multilingual-e5-small-query" \
--input_prefix="query: "
python datasets_to_embs.py \
--target="chunked" \
--model_name="intfloat/multilingual-e5-small" \
--output_name="multilingual-e5-small-query" \
--input_prefix="query: "
```
## create faiss indexes
```
python embs_to_faiss.py \
--target="data" \ # data or chunked
--input_name="multilingual-e5-small-passage" \
--use_gpu
```
### generate all by ./embs/
```
python all_embs_to_faiss.py --use_gpu
```
# XXX
- εγ output γγγ£γγ skip γγ |