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
|
|
@ -27,12 +27,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.realm(model_name="google/realm-cc-news-pretrained-embedder") \ |
|
|
|
.to_list() |
|
|
|
towhee.dc(["Hello, world."]) \ |
|
|
|
.text_embedding.realm(model_name="google/realm-cc-news-pretrained-embedder") |
|
|
|
``` |
|
|
|
|
|
|
|
<br /> |
|
|
|