Browse Source
Update README
Signed-off-by: Jael Gu <mengjia.gu@zilliz.com>
main
1 changed files with
3 additions and
5 deletions
-
README.md
|
|
@ -33,12 +33,10 @@ to generate a text embedding for the sentence "Hello, world.". |
|
|
|
*Write the pipeline*: |
|
|
|
|
|
|
|
```python |
|
|
|
from towhee import dc |
|
|
|
import towhee |
|
|
|
|
|
|
|
|
|
|
|
dc.stream(["Hello, world."]) \ |
|
|
|
.text_embedding.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base") \ |
|
|
|
.to_list() |
|
|
|
towhee.dc(["Hello, world."]) \ |
|
|
|
.text_embedding.dpr(model_name="facebook/dpr-ctx_encoder-single-nq-base") |
|
|
|
``` |
|
|
|
|
|
|
|
<br /> |
|
|
|