mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Fix encoder model name to configure multilingual search in Readme
See comment in issue #98 for stale model name comment
This commit is contained in:
parent
b351cfb8a0
commit
a9b81975f2
1 changed files with 2 additions and 2 deletions
|
@ -281,11 +281,11 @@ pip install --upgrade --pre khoj-assistant
|
||||||
### Search across Different Languages
|
### Search across Different Languages
|
||||||
To search for notes in multiple, different languages, you can use a [multi-lingual model](https://www.sbert.net/docs/pretrained_models.html#multi-lingual-models).<br />
|
To search for notes in multiple, different languages, you can use a [multi-lingual model](https://www.sbert.net/docs/pretrained_models.html#multi-lingual-models).<br />
|
||||||
For example, the [paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) supports [50+ languages](https://www.sbert.net/docs/pretrained_models.html#:~:text=we%20used%20the%20following%2050%2B%20languages), has good search quality and speed. To use it:
|
For example, the [paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) supports [50+ languages](https://www.sbert.net/docs/pretrained_models.html#:~:text=we%20used%20the%20following%2050%2B%20languages), has good search quality and speed. To use it:
|
||||||
1. Manually update `search-type > asymmetric > encoder` to `sentence-transformer/paraphrase-multilingual-MiniLM-L12-v2` in your `~/.khoj/khoj.yml` file for now. See diff of `khoj.yml` below for illustration:
|
1. Manually update `search-type > asymmetric > encoder` to `paraphrase-multilingual-MiniLM-L12-v2` in your `~/.khoj/khoj.yml` file for now. See diff of `khoj.yml` below for illustration:
|
||||||
```diff
|
```diff
|
||||||
asymmetric:
|
asymmetric:
|
||||||
- encoder: "sentence-transformers/multi-qa-MiniLM-L6-cos-vi"
|
- encoder: "sentence-transformers/multi-qa-MiniLM-L6-cos-vi"
|
||||||
+ encoder: "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
|
+ encoder: "paraphrase-multilingual-MiniLM-L12-v2"
|
||||||
cross-encoder: "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
cross-encoder: "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
||||||
model_directory: "~/.khoj/search/asymmetric/"
|
model_directory: "~/.khoj/search/asymmetric/"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue