wikipedia-ja-20231030 / Generate.md
hotchpotch's picture
Add script to generate embeddings from datasets
07119c3
|
raw
history blame
No virus
823 Bytes
# create embeddings
### multilingual-e5-small + passage
```
python datasets_to_embs.py \
--target="data" \
--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" \
--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: "
``````