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