logo
Browse Source

Update README

Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
Jael Gu 3 years ago
parent
commit
5912292935
  1. 11
      README.md

11
README.md

@ -39,19 +39,12 @@ dc.stream(["Hello, world."])
.show() .show()
``` ```
## Factory Constructor
Create the operator via the following factory method
***ops.text_embedding.dpr(model_name)***
## Factory Constructor ## Factory Constructor
Create the operator via the following factory method Create the operator via the following factory method
***text_embedding.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base")***
***text_embedding.dpr(model_name="")***
**Parameters:** **Parameters:**
@ -59,7 +52,7 @@ Create the operator via the following factory method
​ The model name in string. ​ The model name in string.
The default value is "facebook/dpr-ctx_encoder-single-nq-base". The default value is "facebook/dpr-ctx_encoder-single-nq-base".
You can get the list of supported model names by calling `get_model_list` from [auto_transformers.py](https://towhee.io/text-embedding/transformers/src/branch/main/auto_transformers.py).
You can get the list of supported model names by calling `get_model_list` from [dpr.py](https://towhee.io/text-embedding/dpr/src/branch/main/dpr.py).
## Interface ## Interface

Loading…
Cancel
Save